CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

File CardReader.php has 260 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace COREPOS\pos\plugins\Paycards\card;

use \Exeception;
Severity: Minor
Found in pos/is4c-nf/plugins/Paycards/card/CardReader.php - About 2 hrs to fix

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

        function body_content() {
            $stem = MiscLib::baseURL() . 'graphics/';
            ?>
            <div class="baseHeight">
            <div class="centeredDisplay colored rounded">
    Severity: Major
    Found in pos/is4c-nf/gui-modules/adminlist.php - About 2 hrs to fix

      Method errorCheck has 56 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function errorCheck()
          {
              //force negative entered value when the total is negative.
              if (CoreLocal::get("amtdue") <0 && $this->amount >= 0) {
                  $this->amount = -1 * $this->amount;
      Severity: Major
      Found in pos/is4c-nf/lib/Tenders/TenderModule.php - About 2 hrs to fix

        Method process_file has 56 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function process_file($linedata, $indexes)
            {
                $dbc = $this->connection;
                $dbc->selectDB($this->config->get('OP_DB'));
                $vendorID = $this->getVendorID();
        Severity: Major
        Found in fannie/batches/UNFI/load-classes/CpwProduceUploadPage.php - About 2 hrs to fix

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

              function form_content()
              {
                  ob_start();
                  $codes = new LikeCodesModel($this->connection);
                  $opts = $codes->toOptions();
          Severity: Major
          Found in fannie/reports/LikeCodeMovement/LikeCodeMovementReport.php - About 2 hrs to fix

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

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

              File WFC_HerbNspice_3UP.php has 260 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              <?php
              use COREPOS\Fannie\API\FanniePlugin;
              if (!class_exists('FpdfWithBarcode')) {
                  include(dirname(__FILE__) . '/../FpdfWithBarcode.php');
              }
              Severity: Minor
              Found in fannie/admin/labels/pdf_layouts/WFC_HerbNspice_3UP.php - About 2 hrs to fix

                Method generateDeliNarrowMirrorTag has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

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

                  Method newMenuToOldMenu has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function newMenuToOldMenu($menu)
                  {
                      /**
                      OLD:
                      array(
                  Severity: Major
                  Found in fannie/src/navbar.dynamic.php - About 2 hrs to fix

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

                        protected function get_view()
                        {
                            $dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));
                            $emp_no = $this->form->tryGet('emp_no',0);
                    
                    
                    Severity: Major
                    Found in fannie/admin/Cashiers/CashierEditor.php - About 2 hrs to fix

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

                          public function run()
                          {
                              $settings = $this->config->get('PLUGIN_SETTINGS');
                              $dbc = FannieDB::get($settings['ScheduledEmailDB']);
                      
                      
                      Severity: Major
                      Found in fannie/modules/plugins2.0/WfcScheduledEmails/WfcAccessEmailTask.php - About 2 hrs to fix

                        Method post_id_principal_term_rate_loandate_handler has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function post_id_principal_term_rate_loandate_handler()
                            {
                                global $FANNIE_PLUGIN_SETTINGS, $FANNIE_OP_DB;
                                $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
                                $model = new GumLoanAccountsModel($dbc);
                        Severity: Major
                        Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumMainPage.php - About 2 hrs to fix

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

                              public function run()
                              {
                                  $settings = $this->config->get('PLUGIN_SETTINGS');
                                  $dbc = FannieDB::get($settings['StaffArPayrollDB']);
                                  $today = date('Y-m-d');
                          Severity: Major
                          Found in fannie/modules/plugins2.0/StaffArPayrollDeduction/StaffArAutoTask.php - About 2 hrs to fix

                            Method drawPDF has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function drawPDF()
                                {
                                    $pdf = $this->createPDF();
                                    $dbc = FannieDB::get(FannieConfig::config('OP_DB'));
                                    $basicP = $dbc->prepare("SELECT
                            Severity: Major
                            Found in fannie/modules/plugins2.0/CoopDealsSigns/LegacySmartSigns4UpL.php - About 2 hrs to fix

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

                                  protected function get_id_view()
                                  {
                                      $prod = new ProductsModel($this->connection);
                                      $infoP = $this->connection->prepare('
                                          SELECT *
                              Severity: Major
                              Found in fannie/purchasing/ScanTransferPage.php - About 2 hrs to fix

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

                                    protected function get_id_view()
                                    {
                                        $URL = $this->config->get('URL');
                                        $table = DTransactionsModel::selectDlog($this->__models['start'],$this->__models['end']);
                                        $monthYear = date('Ym',strtotime($this->__models['start']));
                                Severity: Major
                                Found in fannie/mem/MemPurchasesPage.php - About 2 hrs to fix

                                  Method itemList has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function itemList($orderID,$table="PendingSpecialOrder")
                                      {
                                          $dbc = $this->connection;
                                          $dbc->selectDB($this->config->get('OP_DB'));
                                          $TRANS = $this->config->get('TRANS_DB') . $dbc->sep();
                                  Severity: Major
                                  Found in fannie/ordering/OrderViewPage.php - About 2 hrs to fix

                                    Method helpContent has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function helpContent()
                                        {
                                            return '<p>Vendors are the entities the store purchases its 
                                                products from. The most important data associated with
                                                a vendor is their catalog of items. A product that the store
                                    Severity: Major
                                    Found in fannie/item/vendors/VendorIndexPage.php - About 2 hrs to fix

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

                                          public function get_view()
                                          {
                                              $config = FannieConfig::factory();
                                              $settings = $config->get('PLUGIN_SETTINGS');
                                              $inStr = '';
                                      Severity: Major
                                      Found in fannie/item/ScaleDiscrepancyCheck.php - About 2 hrs to fix

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

                                            public function get_view()
                                            {
                                                
                                                $dbc = FannieDB::get($this->config->get('OP_DB'));
                                                $item = array();
                                        Severity: Major
                                        Found in fannie/item/PriceDiscrepancyScanner/PriceDiscrepancyPage.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language