fannie/modules/plugins2.0/DeliInventory/DIScanner.php
Method post_id_handler
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function post_id_handler()
{
$store = COREPOS\Fannie\API\lib\Store::getIdByIp();
$dbc = $this->connection;
$prep = $dbc->prepare("
File DIScanner.php
has 268 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
include(dirname(__FILE__).'/../../../config.php');
if (!class_exists('FannieAPI')) {
include(__DIR__ . '/../../../classlib2.0/FannieAPI.php');
Method get_view
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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); });");