CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

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

    function body_content()
    {
        $num_rows = $this->temp_num_rows;
        $result = $this->temp_result;
        $entered = $this->entered;
Severity: Major
Found in pos/is4c-nf/gui-modules/memlist_cards.php - About 2 hrs to fix

    Method ttl has 68 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    static public function ttl() 
    {
        $ret = true;
        if (CoreLocal::get("memberID") == "0") {
            return MiscLib::baseURL()."gui-modules/memlist.php";
    Severity: Major
    Found in pos/is4c-nf/lib/PrehLib.php - About 2 hrs to fix

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

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

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

            function fetch_report_data()
            {
                $dbc = $this->connection;
                $dbc->selectDB($this->config->get('OP_DB'));
                $bStart = FormLib::get_form_value('date1','');
        Severity: Major
        Found in fannie/reports/BatchBeforeAfter/BatchBeforeAfterReport.php - About 2 hrs to fix

          Method getQuery has 68 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              private function getQuery($groupby, $store, $dlog)
              {
                  switch ($groupby) {
                      case 'upc':
                      default:
          Severity: Major
          Found in fannie/reports/VendorMovement/VendorMovementReport.php - About 2 hrs to fix

            Method FPDF_EditPage has 68 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function FPDF_EditPage($data,$offset=0){
            
                $pdf=new FPDF_EditPage_PDF('P','mm','Letter'); //start new instance of PDF
                $pdf->Open(); //open new PDF Document
                $pdf->setTagDate(date("m/d/Y"));
            Severity: Major
            Found in fannie/admin/labels/pdf_layouts/FPDF_EditPage.php - About 2 hrs to fix

              Method generateDeliSpecialSign has 68 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function generateDeliSpecialSign($x, $y, $width, $height, $pdf, $row, $dbc)
              {
                  $upc = $row['upc'];
                  $name = $row['description'];
              
              
              Severity: Major
              Found in fannie/admin/labels/pdf_layouts/Deli_Big_Special_Signs_1UP.php - About 2 hrs to fix

                Method WFC_HerbNspice_Flat has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function WFC_HerbNspice_Flat($data,$offset=0,$showPrice=0)
                {
                    $dbc = FannieDB::get(FannieConfig::config('OP_DB'));
                    $pdf = new WFC_HerbNspice_Flat_PDF('L','mm','Letter');
                    $pdf->AddPage();
                Severity: Major
                Found in fannie/admin/labels/pdf_layouts/WFC_HerbNspice_Flat.php - About 2 hrs to fix

                  Method prepareStatements has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function prepareStatements($dbc)
                      {
                          /**
                            Look up sales for the week in a given category
                          */
                  Severity: Major
                  Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeeklyReport.php - About 2 hrs to fix

                    Method run has 68 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/WfcEquityEmailTask.php - About 2 hrs to fix

                      File ObfWeekEntryPage.php has 280 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      <?php
                      /*******************************************************************************
                      
                          Copyright 2014 Whole Foods Co-op
                      
                      
                      Severity: Minor
                      Found in fannie/modules/plugins2.0/OpenBookFinancing/ObfWeekEntryPage.php - About 2 hrs to fix

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

                            protected function get_view()
                            {
                                $res = $this->connection->query('
                                    SELECT obfCategoryID, name, storeID
                                    FROM ' . FannieDB::fqn('ObfCategories', 'plugin:ObfDatabaseV2') . '
                        Severity: Major
                        Found in fannie/modules/plugins2.0/OpenBookFinancingV2/ObfPlanPage.php - About 2 hrs to fix

                          Method getDetails has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function getDetails($date1, $date2, $store)
                              {
                                  $settings = $this->config->get('PLUGIN_SETTINGS');
                                  $dbc = $this->connection;
                                  $dbc->selectDB($settings['OverShortDatabase']);
                          Severity: Major
                          Found in fannie/modules/plugins2.0/OverShortTools/OsVarianceReport.php - About 2 hrs to fix

                            Method renderAsPDF has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function renderAsPDF($pdf)
                                {
                                    $margins = $pdf->GetMargins();
                                    // this was written BEFORE patching
                                    // fpdf to correctly return the top margin
                            Severity: Major
                            Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumCheckTemplate.php - About 2 hrs to fix

                              Method get_date1_date2_handler has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  protected function get_date1_date2_handler()
                                  {
                                      $date1 = date('Y-m-d', strtotime(FormLib::get('date1')));
                                      $date2 = date('Y-m-d', strtotime(FormLib::get('date2')));
                                      $args = array(FormLib::get('store'), $date1, $date2);
                              Severity: Major
                              Found in fannie/modules/plugins2.0/RP/RpDualPage.php - About 2 hrs to fix

                                Method get_date1_date2_handler has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected function get_date1_date2_handler()
                                    {
                                        $date1 = date('Y-m-d', strtotime(FormLib::get('date1')));
                                        $date2 = date('Y-m-d', strtotime(FormLib::get('date2')));
                                        $args = array(FormLib::get('store'), $date1, $date2);
                                Severity: Major
                                Found in fannie/modules/plugins2.0/RP/RpOrderPage.php - About 2 hrs to fix

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

                                      function process_file($linedata, $indexes)
                                      {
                                          $vendorID = 302;
                                          $baseLine = $linedata[1];
                                          $invoice = $baseLine[0];
                                  Severity: Major
                                  Found in fannie/purchasing/importers/FairhavenInvoiceImport.php - About 2 hrs to fix

                                    Method drawPage has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function drawPage()
                                        {
                                            if (!($this->config instanceof FannieConfig)) {
                                                $this->config = FannieConfig::factory();
                                            }
                                    Severity: Major
                                    Found in fannie/classlib2.0/FannieReportPage.php - About 2 hrs to fix

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

                                          public function run($args=array())
                                          {
                                              $ret = array();
                                              if (!property_exists($args, 'upc')) {
                                                  // missing required arguments
                                      Severity: Major
                                      Found in fannie/classlib2.0/webservices/FannieItemLaneSync.php - About 2 hrs to fix

                                        Method javascript_content has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                           public function javascript_content()
                                           {
                                               return <<<JAVASCRIPT
                                        $(document).ready(function(){
                                            $('tr').each(function(){
                                        Severity: Major
                                        Found in fannie/item/ProdLocationEditor.php - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language