CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

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

    protected function get_id_view()
    {
        $settings = $this->config->get('PLUGIN_SETTINGS');
        $prefix = $settings['CommentDB'] . $this->connection->sep();
        $ret = $this->get_view() . '<hr />
Severity: Major
Found in fannie/modules/plugins2.0/CommentTracker/SearchComments.php - About 2 hrs to fix

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

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

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

          public function process_file($linedata, $indexes)
          {
              $i = 0;
              $acc = array();
              $fuel = 0;
      Severity: Major
      Found in fannie/modules/plugins2.0/LBMX/LbmxFuelProrate.php - About 2 hrs to fix

        Method getIngredientList has 63 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function getIngredientList($dbc, $id)
            {
                /**
                 * Query notes:
                 *
        Severity: Major
        Found in fannie/modules/plugins2.0/ChefTec/CTRecipes.php - About 2 hrs to fix

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

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

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

                protected function post_view()
                {
                    try {
                        $from = $this->form->from;
                        $dest = $this->form->to;
            Severity: Major
            Found in fannie/purchasing/ScanTransferPage.php - About 2 hrs to fix

              Method listModules has 63 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  static public function listModules($base_class, $include_base=false, $debug=false)
                  {
                      // leading backslash is ignored
                      if ($base_class[0] == '\\') {
                          $base_class = substr($base_class, 1);
              Severity: Major
              Found in fannie/classlib2.0/FannieAPI.php - About 2 hrs to fix

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

                    public function run($args=array())
                    {
                        $ret = array();
                        $errored = $this->checkBasicErrors($args, $ret);
                        if ($errored !== false) {
                Severity: Major
                Found in fannie/classlib2.0/webservices/FannieEntity.php - About 2 hrs to fix

                  Method get_id_store_export_handler has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function get_id_store_export_handler()
                      {
                          $lcP = $this->connection->prepare('
                              SELECT l.likeCode
                              FROM LikeCodeActiveMap AS l
                  Severity: Major
                  Found in fannie/item/likecodes/LikeCodeSKUsPage.php - About 2 hrs to fix

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

                        public function get_view()
                        {
                            global $FANNIE_OP_DB;
                            $dbc = FannieDB::get($FANNIE_OP_DB);
                            $scales = new ServiceScalesModel($dbc);
                    Severity: Major
                    Found in fannie/item/hobartcsv/ScaleEditor.php - About 2 hrs to fix

                      Method get_id_store_export_handler has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          protected function get_id_store_export_handler()
                          {
                              $lcP = $this->connection->prepare('
                                  SELECT l.likeCode
                                  FROM LikeCodeActiveMap AS l
                      Severity: Major
                      Found in fannie/item/likecodes/LikeCodeBatchPage.php - About 2 hrs to fix

                        Method SetupReader has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                private void SetupReader(JsonReader reader, out CultureInfo previousCulture, out DateTimeZoneHandling? previousDateTimeZoneHandling, out DateParseHandling? previousDateParseHandling, out FloatParseHandling? previousFloatParseHandling, out int? previousMaxDepth, out string previousDateFormatString)
                                {
                                    if (_culture != null && !_culture.Equals(reader.Culture))
                                    {
                                        previousCulture = reader.Culture;

                          Method ReadNumberIntoBuffer has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  private void ReadNumberIntoBuffer()
                                  {
                                      int charPos = _charPos;
                          
                                      while (true)

                            Method HandleMsg has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public override void HandleMsg(string msg)
                                { 
                                    // optional predicate for "termSig" message
                                    // predicate string is displayed on sig capture screen
                                    if (msg.Length > 7 && msg.Substring(0, 7) == "termSig") {
                            Severity: Major
                            Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/SPH_Datacap_EMVX.cs - About 2 hrs to fix

                              File ObfWeekEntryPageV2.php has 271 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

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

                                File ObfTrendReport.php has 271 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

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

                                  UPC has 23 functions (exceeds 20 allowed). Consider refactoring.
                                  Open

                                  class UPC extends Parser 
                                  {
                                      /**
                                        Defines how the UPC was entered.
                                        Known good values are:
                                  Severity: Minor
                                  Found in pos/is4c-nf/parser/parse/UPC.php - About 2 hrs to fix

                                    Bitmap has 23 functions (exceeds 20 allowed). Consider refactoring.
                                    Open

                                    class Bitmap 
                                    {
                                        private $DIB1 = 12;
                                        private $DIB2 = 64;
                                        private $DIB3 = 40;
                                    Severity: Minor
                                    Found in pos/is4c-nf/lib/Bitmap.php - About 2 hrs to fix

                                      BaseItemModule has 23 functions (exceeds 20 allowed). Consider refactoring.
                                      Open

                                      class BaseItemModule extends \COREPOS\Fannie\API\item\ItemModule 
                                      {
                                          private function getBarcodeType($upc)
                                          {
                                              $trimmed = ltrim($upc, '0');
                                      Severity: Minor
                                      Found in fannie/item/modules/BaseItemModule.php - About 2 hrs to fix

                                        Class DynamicProxyMetaObject has 23 methods (exceeds 20 allowed). Consider refactoring.
                                        Open

                                            internal sealed class DynamicProxyMetaObject<T> : DynamicMetaObject
                                            {
                                                private readonly DynamicProxy<T> _proxy;
                                                private readonly bool _dontFallbackFirst;
                                        
                                        
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language