CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

Method isSubscribed has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function isSubscribed($record, $columns, $chimp, $LISTID, $memlist)
    {
        list($card_no, $email, $fname, $lname, $changed) = $this->unpackRecord($record, $columns);
        $memlist .= sprintf('%d,', $card_no);
        $this->custdata->reset();
Severity: Major
Found in fannie/modules/plugins2.0/MailChimpSync/MailChimpTask.php - About 2 hrs to fix

    Method get_json_handler has 59 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function get_json_handler()
        {
            global $FANNIE_OP_DB;
            $dbc = FannieDB::get($FANNIE_OP_DB);
    
    
    Severity: Major
    Found in fannie/modules/plugins2.0/WfcClassRegistry/RegistryApply.php - About 2 hrs to fix

      Method getOtherStore has 59 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function getOtherStore($storeID, $weekID)
          {
              $dbc = $this->connection;
              $conf = $this->config->get('PLUGIN_SETTINGS');
              $dbc->selectDB($conf['ObfDatabaseV2']);
      Severity: Major
      Found in fannie/modules/plugins2.0/OpenBookFinancingV2/ObfWeeklyReportV2.php - About 2 hrs to fix

        Method post_id_view has 59 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function post_id_view()
            {
                $dbc = FannieDB::get($this->config->get('OP_DB'));
        
                $any = FormLib::get('any') ? 1 : 0;
        Severity: Major
        Found in fannie/modules/plugins2.0/HrWeb/Screening/ScreeningPage.php - About 2 hrs to fix

          Method getHeader has 59 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function getHeader() 
              {
                  global $FANNIE_URL;
                  $this->addCssFile('css/styles.css');
                  $this->addCssFile($FANNIE_URL . 'src/javascript/jquery-ui.css');
          Severity: Major
          Found in fannie/modules/plugins2.0/PIKiller/lib/PIKillerPage.php - About 2 hrs to fix

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

                public function get_view()
                {
                    $dbc = $this->connection;
                    $settings = $this->config->get('PLUGIN_SETTINGS');
                    $dbc->selectDB($settings['TimesheetDatabase']);
            Severity: Major
            Found in fannie/modules/plugins2.0/TimesheetPlugin/admin/TsEmployeesEditor.php - About 2 hrs to fix

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

                  protected function get_view()
                  {
              
                      return <<<HTML
              <form method="post" action="AccessSignupPage.php">
              Severity: Major
              Found in fannie/modules/plugins2.0/PIKiller/AccessSignupPage.php - About 2 hrs to fix

                Method post_view has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    protected function post_view()
                    {
                        $dbc = FannieDB::get($this->config->get('OP_DB'));
                        $fp = fopen($_FILES['apl']['tmp_name'], 'r');
                        if (!$fp) {
                Severity: Major
                Found in fannie/modules/plugins2.0/WIC/WicAplImport.php - About 2 hrs to fix

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

                      protected function get_view()
                      {
                          $backLink = isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'RpDirectPage.php')
                              ? 'RpDirectPage.php'
                              : 'RpOrderPage.php';
                  Severity: Major
                  Found in fannie/modules/plugins2.0/RP/RpSegmentation.php - About 2 hrs to fix

                    File FannieAutoComplete.php has 265 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    <?php
                    /*******************************************************************************
                    
                        Copyright 2014 Whole Foods Co-op
                    
                    
                    Severity: Minor
                    Found in fannie/classlib2.0/webservices/FannieAutoComplete.php - About 2 hrs to fix

                      Method listFromCurrentSale has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected function listFromCurrentSale($dbc)
                          {
                              $ids = '';
                              $args = array();
                              $s_def = $dbc->tableDefinition('SignProperties');
                      Severity: Major
                      Found in fannie/classlib2.0/item/FannieSignage.php - About 2 hrs to fix

                        Method getItemBySKU has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private static function getItemBySKU($sku)
                            {
                                $dbc = self::dbc();
                                // legacy behavior. + forces entry to be treated
                                // as a SKU instead of a UPC.
                        Severity: Major
                        Found in fannie/ordering/OrderItemLib.php - About 2 hrs to fix

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

                              public function drawPDF()
                              {
                                  $pdf = new \FPDF('P', 'mm', 'Letter');
                                  $pdf->SetMargins(6.35, 6.35, 6.35);
                                  $pdf->SetAutoPageBreak(false);
                          Severity: Major
                          Found in fannie/classlib2.0/item/signage/ItemList2UpP.php - About 2 hrs to fix

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

                                public function drawPDF()
                                {
                                    $pdf = new \FPDF('L', 'mm', 'Letter');
                                    $pdf->SetMargins(3.175, 3.175, 3.175);
                                    $pdf->SetAutoPageBreak(false);
                            Severity: Major
                            Found in fannie/classlib2.0/item/signage/Giganto4UpCoopBasics.php - About 2 hrs to fix

                              Method getView has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getView()
                                  {
                              
                                      global $FANNIE_OP_DB;
                                      $dbc = FannieDB::get($FANNIE_OP_DB);
                              Severity: Major
                              Found in fannie/item/MultiMerchEditor.php - About 2 hrs to fix

                                Method showEditForm has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function showEditForm($upc, $display_mode=1, $expand_mode=1)
                                    {
                                        $upc = BarcodeLib::padUPC($upc);
                                
                                        $ret = '<div id="ExtraInfoFieldset" class="panel panel-default">';
                                Severity: Major
                                Found in fannie/item/modules/ExtraInfoModule.php - About 2 hrs to fix

                                  Method getDeptDiscrepancies has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      private function getDeptDiscrepancies($dbc)
                                      {
                                          $itemA = array();
                                          $itemB = array();
                                  
                                  
                                  Severity: Major
                                  Found in fannie/item/DepartmentDiscrepancyPage.php - About 2 hrs to fix

                                    Method ParseAuthMessage has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        protected void ParseAuthMessage(byte[] msg)
                                        {
                                            System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
                                            
                                            // skipping 0 (stx), 1-3 (message #)

                                      Method ReadCallback has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          private void ReadCallback(IAsyncResult iar)
                                          {
                                              byte[] input = null;
                                              try {
                                                  input = (byte[])iar.AsyncState;
                                      Severity: Major
                                      Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/SPH_IngenicoRBA_USB.cs - About 2 hrs to fix

                                        Method FramesToMessage has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                private WsDataFrame FramesToMessage(byte[] frames)
                                                {
                                                    if (frames.Length < 2) {
                                                        throw new WsProtocolException("Invalid frame: too short (header)");
                                                    }
                                        Severity: Major
                                        Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/WebSocketServer.cs - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language