CORE-POS/IS4C

View on GitHub
fannie/admin/labels/EditShelfTags.php

Summary

Maintainability
A
3 hrs
Test Coverage
F
54%

Method delete_id_upc_view has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function delete_id_upc_view()
    {
        $dbc = FannieDB::getReadOnly($this->config->get('OP_DB'));

        $tag = new ShelftagsModel($dbc);
Severity: Minor
Found in fannie/admin/labels/EditShelfTags.php - About 1 hr to fix

    Method tagToRow has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function tagToRow($tag)
        {
            $ret = '<tr>';
            $ret .= "<td>" . $tag->upc() . "</td><input type=hidden name=upc[] value=\"" . $tag->upc() . "\" />";
            $ret .= "<td><input type=text name=desc[] value=\"" . $tag->description() . "\" 
    Severity: Minor
    Found in fannie/admin/labels/EditShelfTags.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status