CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

Method fetch_report_data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function fetch_report_data()
    {
        try {
            $date1 = $this->form->date1;
            $date2 = $this->form->date2;
Severity: Major
Found in fannie/reports/Store-Specific/WFC/PayOffs/PayOffsReport.php - About 2 hrs to fix

    Method fetch_report_data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function fetch_report_data()
        {
            $dbc = $this->connection;
            $dbc->selectDB($this->config->get('OP_DB'));
    
    
    Severity: Major
    Found in fannie/reports/OpenRings/OpenRingsReport.php - About 2 hrs to fix

      Method fetch_report_data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function fetch_report_data()
          {
              $dbc = $this->connection;
              try {
                  $date1 = $this->form->date1;
      Severity: Major
      Found in fannie/reports/Accounting/TenderByDay.php - About 2 hrs to fix

        Method form_content has 55 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function form_content()
            {
                $dbc = $this->connection;
                $dbc->selectDB($this->config->get('OP_DB'));
                $deptsQ = $dbc->prepare("select dept_no,dept_name from departments order by dept_no");
        Severity: Major
        Found in fannie/reports/NonMovement/NonMovementReport.php - About 2 hrs to fix

          Method form_content has 55 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function form_content()
              {
                  $this->addScript('../../item/autocomplete.js');
                  $vendor = new VendorsModel($this->connection);
                  ob_start();
          Severity: Major
          Found in fannie/reports/VendorMovement/VendorMovementReport.php - About 2 hrs to fix

            Method generateMirrorTag has 55 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function generateMirrorTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
            {
                $upc = isset($row['upc']) ? $row['upc'] : '';
                $sku = isset($row['sku']) ? $row['sku'] : '';
                if (strlen($sku) < 1)
            Severity: Major
            Found in fannie/admin/labels/pdf_layouts/WFC_Dark_Extended_24UP.php - About 2 hrs to fix

              Method generateDeliShortMirrorTag has 55 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function generateDeliShortMirrorTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
              {
                  $upc = isset($row['upc']) ? $row['upc'] : '';
                  $sku = isset($row['sku']) ? $row['sku'] : '';
                  if (strlen($sku) < 1)
              Severity: Major
              Found in fannie/admin/labels/pdf_layouts/WFC_Deli_Short_24UP.php - About 2 hrs to fix

                Method get_id_handler has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function get_id_handler()
                    {
                        $ret = array(
                            'registers' => array(
                                '0.01' => 0,
                Severity: Major
                Found in fannie/modules/plugins2.0/OverShortTools/OsMonthEndPage.php - About 2 hrs to fix

                  Method get_id_view has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function get_id_view()
                      {
                          $dateID = date('Ymd', strtotime($this->id));
                          $storeID = FormLib::get('store');
                          $empID = FormLib::get('emp');
                  Severity: Major
                  Found in fannie/modules/plugins2.0/OverShortTools/OsEmpCountsPage.php - About 2 hrs to fix

                    Method body_content has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function body_content(){
                            global $FANNIE_PLUGIN_SETTINGS, $FANNIE_OP_DB;
                            $ts_db = FannieDB::get($FANNIE_PLUGIN_SETTINGS['TimesheetDatabase']);
                    
                            ob_start();
                    Severity: Major
                    Found in fannie/modules/plugins2.0/TimesheetPlugin/TimesheetGeneralReport.php - About 2 hrs to fix

                      Method css_content has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function css_content()
                          {
                              return '
                                  .redtext {
                                      color: red;
                      Severity: Major
                      Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumMainPage.php - About 2 hrs to fix

                        Method refresh_data has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function refresh_data($trans_db, $month, $year, $day=False){
                                global $FANNIE_OP_DB;
                                list($start_id, $start_date, $end_id, $end_date) = $this->dates($month, $year, $day);
                        
                                $config = FannieConfig::factory();

                          Method get_view has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              protected function get_view()
                              {
                                  $timePeriods = array();
                                  $ts = mktime(0,0,0,date('n'),1,date('Y'));
                                  for ($i=0; $i<4; $i++) {
                          Severity: Major
                          Found in fannie/modules/plugins2.0/RP/RpFarmSchedule.php - About 2 hrs to fix

                            Method addItemForm has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function addItemForm($storeID)
                                {
                                    $vendors = new VendorsModel($this->connection);
                                    $vOpts = $vendors->toOptions();
                                    $catP = $this->connection->prepare("SELECT deliCategoryID, name FROM DeliCategories WHERE storeID=? ORDER BY name");
                            Severity: Major
                            Found in fannie/modules/plugins2.0/DeliInventory/DIPage.php - About 2 hrs to fix

                              Method addItemForm has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private function addItemForm($storeID)
                                  {
                                      $vendors = new VendorsModel($this->connection);
                                      $vOpts = $vendors->toOptions();
                                      $catP = $this->connection->prepare("SELECT deliCategoryID, name FROM DeliCategories WHERE storeID=? ORDER BY name");
                              Severity: Major
                              Found in fannie/modules/plugins2.0/DeliInventory/DIPage2.php - About 2 hrs to fix

                                Method run has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function run()
                                    {
                                        $dbc = FannieDB::get($this->config->get('OP_DB'));
                                        $dtrans = $this->config->get('TRANS_DB') . $dbc->sep() . 'dtransactions';
                                        $settings = $this->config->get('PLUGIN_SETTINGS');
                                Severity: Major
                                Found in fannie/modules/plugins2.0/FoodDudes/FdTask.php - About 2 hrs to fix

                                  Method css_content has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function css_content(){
                                          ob_start();
                                          ?>
                                  #bdiv {
                                      width: 768px;
                                  Severity: Major
                                  Found in fannie/modules/plugins2.0/ShelfAudit/SaReportPage.php - About 2 hrs to fix

                                    Method parseWFC has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function parseWFC($fp, $dbc)
                                        {
                                            $limit = '
                                                SELECT MAX(tdate) AS tdate
                                                FROM EmailUsageLog
                                    Severity: Major
                                    Found in fannie/modules/plugins2.0/EmailReporting/EmailLogParseTask.php - About 2 hrs to fix

                                      Method get_id_view has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function get_id_view()
                                          {
                                              global $FANNIE_OP_DB;
                                              $dbc = FannieDB::get($FANNIE_OP_DB);
                                              $patronage = new PatronageModel($dbc);
                                      Severity: Major
                                      Found in fannie/mem/patronage/AddPatronageEntryPage.php - About 2 hrs to fix

                                        Method get_view has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            public function get_view()
                                            {
                                                global $FANNIE_OP_DB;
                                                $dbc = FannieDB::get($FANNIE_OP_DB);
                                                ob_start();
                                        Severity: Major
                                        Found in fannie/mem/patronage/CreatePatronageSnapshot.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language