CORE-POS/IS4C

View on GitHub

Showing 8,683 of 8,684 total issues

Method WFC_Dark_ServiceCase_12UP has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    Method WFC_Dark_HFM_12UP has 66 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

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

      Method drawKeyboard has 66 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function drawKeyboard()
          {
              $dbc = FannieDB::get(FannieConfig::config('OP_DB'));
      
              $prep = $dbc->prepare("SELECT * FROM PosKeys");
      Severity: Major
      Found in fannie/admin/PosKeyboards/PosKeyboard.php - About 2 hrs to fix

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

            public function javascriptContent()
            {
                $id = FormLib::get('id');
                return <<<HTML
        var id = {$id}
        Severity: Major
        Found in fannie/modules/plugins2.0/CustomerServiceLog/CustomerServiceLog.php - About 2 hrs to fix

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

              public function run()
              {
                  $dbc = FannieDB::get($this->config->get('TRANS_DB'));
          
                  $date = date('Y-m-d', strtotime('yesterday'));
          Severity: Major
          Found in fannie/modules/plugins2.0/VirtualPatronage/VirtualPatronageTask.php - About 2 hrs to fix

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

                public function get_view()
                {
                    $editCSS = FannieAuth::validateUserQuiet('hr_editor') ? '' : 'collapse';
                    $this->connection->selectDB($this->default_db);
                    $settings = $this->config->get('PLUGIN_SETTINGS');
            Severity: Major
            Found in fannie/modules/plugins2.0/HrWeb/Employee/EmployeesPage.php - About 2 hrs to fix

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

                  protected function get_id_view()
                  {
                      try {
                          $pDate = trim($this->form->date);
                          $transNum = trim($this->form->correctTrans);
              Severity: Major
              Found in fannie/modules/plugins2.0/PaycardFix/PaycardFixSale.php - About 2 hrs to fix

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

                    protected function get_id_view()
                    {
                        try {
                            $pDate = trim($this->form->date);
                            $transNum = trim($this->form->correctTrans);
                Severity: Major
                Found in fannie/modules/plugins2.0/PaycardFix/PaycardFixReturn.php - About 2 hrs to fix

                  Method get_id_setpaperwork_handler has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      protected function get_id_setpaperwork_handler()
                      {
                          global $FANNIE_OP_DB;
                          if (!FannieAuth::validateUserQuiet('editmembers') && !FannieAuth::validateUserQuiet('editmembers_csc'))
                              return $this->unknown_request_handler();
                  Severity: Major
                  Found in fannie/modules/plugins2.0/PIKiller/PISuspensionPage.php - About 2 hrs to fix

                    Method post_id_handler has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        public function post_id_handler()
                        {
                            $numbers = array("zero","one","two","three","four","five","six","seven",
                                    "eight","nine","ten","eleven","twelve","thirteen","fourteen",
                                    "fifteen","sixteen","seventeen","eighteen","nineteen","twenty");
                    Severity: Major
                    Found in fannie/modules/plugins2.0/StatementsPlugin/StatementsPluginTerm.php - About 2 hrs to fix

                      Method __construct has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function __construct($custdata, $meminfo, $amount, $memo='', $check_number=false, $date=false)
                          {
                              global $FANNIE_PLUGIN_SETTINGS;
                              $dbc = FannieDB::get($FANNIE_PLUGIN_SETTINGS['GiveUsMoneyDB']);
                              $settings = new GumSettingsModel($dbc);
                      Severity: Major
                      Found in fannie/modules/plugins2.0/GiveUsMoneyPlugin/GumCheckTemplate.php - About 2 hrs to fix

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

                            public function fetch_report_data()
                            {
                                try {
                                    $store = $this->form->store;
                                    $super = $this->form->super;
                        Severity: Major
                        Found in fannie/modules/plugins2.0/CoreWarehouse/reports/YOY/YOYDeptSales.php - About 2 hrs to fix

                          Method get_new_view has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              protected function get_new_view()
                              {
                                  $settings = $this->config->get('PLUGIN_SETTINGS');
                                  $prefix = $settings['IncidentDB'] . $this->connection->sep();
                          
                          
                          Severity: Major
                          Found in fannie/modules/plugins2.0/IncidentTracker/PosIncident.php - About 2 hrs to fix

                            Method receiveUnOrderedItem has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function receiveUnOrderedItem($dbc)
                                {
                                    echo '<div class="alert alert-danger">SKU not found in order</div>';
                                    echo '<table class="table table-bordered">';
                                    echo '<tr><th>SKU</th><th>UPC</th><th>Brand</th><th>Description</th>
                            Severity: Major
                            Found in fannie/purchasing/ViewPurchaseOrders.php - About 2 hrs to fix

                              Method post_handler has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Method get_date1_date2_mtype_stype_handler has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    protected function get_date1_date2_mtype_stype_handler()
                                    {
                                        global $FANNIE_TRANS_DB, $FANNIE_OP_DB;
                                        $dbc = FannieDB::get($FANNIE_TRANS_DB);
                                        include(__DIR__ . '/../../install/db.php');
                                Severity: Major
                                Found in fannie/mem/patronage/CreatePatronageSnapshot.php - About 2 hrs to fix

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

                                      public function get_id_view()
                                      {
                                          global $FANNIE_OP_DB;
                                          $dbc = FannieDB::get($FANNIE_OP_DB);
                                          $items = new VendorItemsModel($dbc);
                                  Severity: Major
                                  Found in fannie/item/vendors/EditVendorItems.php - About 2 hrs to fix

                                    Method SerializeInternal has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                            internal virtual void SerializeInternal(JsonWriter jsonWriter, object value, Type objectType)
                                            {
                                                ValidationUtils.ArgumentNotNull(jsonWriter, "jsonWriter");
                                    
                                                // set serialization options onto writer

                                      Method CreateDynamic has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              private object CreateDynamic(JsonReader reader, JsonDynamicContract contract, JsonProperty member, string id)
                                              {
                                                  IDynamicMetaObjectProvider newObject;
                                      
                                                  if (!contract.IsInstantiable)

                                        Method ManualEntryExp has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            protected byte[] ManualEntryExp(){
                                                byte[] ret = new byte[70];
                                        
                                                int pos = 0;
                                                ret[pos++] = 0x75;
                                        Severity: Major
                                        Found in pos/is4c-nf/scale-drivers/drivers/NewMagellan/SPH_SignAndPay_USB.cs - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language