CORE-POS/IS4C

View on GitHub
fannie/modules/plugins2.0/DeliInventory/DIScanner.php

Summary

Maintainability
C
1 day
Test Coverage

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

    protected function post_id_handler()
    {
        $store = COREPOS\Fannie\API\lib\Store::getIdByIp();
        $dbc = $this->connection;
        $prep = $dbc->prepare("
Severity: Major
Found in fannie/modules/plugins2.0/DeliInventory/DIScanner.php - About 4 hrs to fix

    File DIScanner.php has 268 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    include(dirname(__FILE__).'/../../../config.php');
    if (!class_exists('FannieAPI')) {
        include(__DIR__ . '/../../../classlib2.0/FannieAPI.php');
    Severity: Minor
    Found in fannie/modules/plugins2.0/DeliInventory/DIScanner.php - About 2 hrs to fix

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

          protected function get_view()
          {
              $this->addScript('scanner.js?date=20190507');
              $this->addOnloadCommand("scanner.autocomplete('#upc');");
              $this->addOnloadCommand("\$('#upc').on('autocompleteselect', function(event, ui) { scanner.autosubmit(event, ui); });");
      Severity: Minor
      Found in fannie/modules/plugins2.0/DeliInventory/DIScanner.php - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status