CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

Method sendAuth has 71 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function sendAuth($domain="w1.mercurypay.com")
    {
        // initialize
        $dbTrans = PaycardLib::paycard_db();
        if (!$dbTrans) {
Severity: Major
Found in pos/is4c-nf/plugins/Paycards/MercuryE2E.php - About 2 hrs to fix

    Method sort has 71 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function sort(array $rowset)
        {
            $tax = false;
            $discount = false;
            $total = false;
    Severity: Major
    Found in pos/is4c-nf/lib/ReceiptBuilding/Sort/DefaultReceiptSort.php - About 2 hrs to fix

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

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

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

            function form_content(){
                $dbc = $this->connection;
                $dbc->selectDB($this->config->get('OP_DB'));
                $depts = array();
                $q = $dbc->prepare("SELECT dept_no,dept_name FROM departments ORDER BY dept_no");
        Severity: Major
        Found in fannie/reports/MonthOverMonth/MonthOverMonthReport.php - About 2 hrs to fix

          Method javascriptContent has 71 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function javascriptContent()
              {
                  if ($this->report_format != 'html') {
                      return;
                  }
          Severity: Major
          Found in fannie/reports/EquitySales/EquitySalesReport.php - About 2 hrs to fix

            Method draw_table has 71 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function draw_table($storeName, $storeID)
                {
                    $dbc = FannieDB::get($this->config->get('OP_DB'));
                    $params = array();
                    $prep = $dbc->prepare("SELECT * FROM MovementTrackerParams");
            Severity: Major
            Found in fannie/admin/labels/MovementTagTracker.php - About 2 hrs to fix

              Method generateMirrorTagSquareTags12 has 71 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function generateMirrorTagSquareTags12($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
              {
                  $upc = isset($row['upc']) ? $row['upc'] : '';
                  $desc = isset($row['description']) ? $row['description'] : '';
                  $size = isset($row['size']) ? $row['size'] : '';
              Severity: Major
              Found in fannie/admin/labels/pdf_layouts/New_WFC_Deli_SquareTags.php - About 2 hrs to fix

                Method generateServiceCaseTag has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function generateServiceCaseTag($x, $y, $guide, $width, $height, $pdf, $row, $dbc)
                {
                    $upc = $row['upc'];
                    $desc = $row['description'];
                    $showPrice = FormLib::get('showPrice', false);
                Severity: Major
                Found in fannie/admin/labels/pdf_layouts/WFC_Dark_ServiceCase_12UP.php - About 2 hrs to fix

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

                      public function run()
                      {
                          global $FANNIE_OP_DB, $FANNIE_PLUGIN_SETTINGS, $argv;
                          $dbc = FannieDB::get($FANNIE_OP_DB);
                          $this->custdata = new CustdataModel($dbc);
                  Severity: Major
                  Found in fannie/modules/plugins2.0/MailChimpSync/MailChimpTask.php - About 2 hrs to fix

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

                        public function fetch_report_data()
                        {
                            $editCSS = FannieAuth::validateUserQuiet('hr_editor') ? '' : 'collapse';
                            $settings = $this->config->get('PLUGIN_SETTINGS');
                            $dbc = FannieDB::get($settings['HrWebDB']);
                    Severity: Major
                    Found in fannie/modules/plugins2.0/HrWeb/IllnessReport/IllnessLogReport.php - About 2 hrs to fix

                      File ViewsheetPage.php has 285 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      include(dirname(__FILE__).'/../../../config.php');
                      if (!class_exists('FannieAPI')) {
                          include_once(__DIR__ . '/../../../classlib2.0/FannieAPI.php');
                      }
                      Severity: Minor
                      Found in fannie/modules/plugins2.0/TimesheetPlugin/ViewsheetPage.php - About 2 hrs to fix

                        Method sort has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function sort(array $rowset)
                            {
                                $tax = false;
                                $discount = false;
                                $total = false;
                        Severity: Major
                        Found in fannie/modules/plugins2.0/EReceipt/EReceiptSort.php - About 2 hrs to fix

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

                              protected function get_view()
                              {
                                  $store = FormLib::get('store', COREPOS\Fannie\API\lib\Store::getIdByIp());
                          
                                  $ts = time();
                          Severity: Major
                          Found in fannie/modules/plugins2.0/RP/RpDailyPage.php - About 2 hrs to fix

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

                                protected function get_view()
                                {
                                    return <<<HTML
                            <ul>
                                <li>Daily Tools
                            Severity: Major
                            Found in fannie/modules/plugins2.0/RP/RpMenu.php - About 2 hrs to fix

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

                                  protected function get_view()
                                  {
                                      $ret = '<table class="table table-bordered table-striped small">
                                          <thead><tr>
                                              <th>Coding</th>
                              Severity: Major
                              Found in fannie/purchasing/ScanTransferPage.php - About 2 hrs to fix

                                Method drawItem has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected function drawItem($pdf, $item, $row, $column)
                                    {
                                        $item['description'] = preg_replace("/[^\x01-\x7F]/"," ", $item['description']);
                                        $item['description'] = str_replace("  ", " ", $item['description']);
                                        $effective_width = $this->width - $this->left;
                                Severity: Major
                                Found in fannie/classlib2.0/item/signage/Signage12UpL.php - About 2 hrs to fix

                                  Method drawItem has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      protected function drawItem($pdf, $item, $row, $column)
                                      {
                                          $item['description'] = preg_replace("/[^\x01-\x7F]/"," ", $item['description']);
                                          $item['description'] = str_replace("  ", " ", $item['description']);
                                          $effective_width = $this->width - $this->left;
                                  Severity: Major
                                  Found in fannie/classlib2.0/item/signage/Compact12UpL.php - About 2 hrs to fix

                                    Method readItemsFromFile has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        static public function readItemsFromFile($filename)
                                        {
                                            $dbc = \FannieDB::get(\FannieConfig::factory()->get('OP_DB'));
                                    
                                            $product = new \ProductsModel($dbc);
                                    Severity: Major
                                    Found in fannie/classlib2.0/item/HobartDgwLib.php - About 2 hrs to fix

                                      Method searchForm has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private function searchForm()
                                          {
                                              $FANNIE_URL = $this->config->get('URL');
                                              $ret = '';
                                              $vars = array(
                                      Severity: Major
                                      Found in fannie/item/ItemEditorPage.php - About 2 hrs to fix

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

                                            public function get_id_view()
                                            {
                                                $dbc = FannieDB::get($this->config->get('OP_DB'));
                                        
                                                $prep = $dbc->prepare("
                                        Severity: Major
                                        Found in fannie/item/vendors/UnitBreakdownPage.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language