CORE-POS/IS4C

View on GitHub
fannie/classlib2.0/data/models/op/VendorItemsModel.php

Summary

Maintainability
A
2 hrs
Test Coverage
A
95%

Method createIfMissing has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function createIfMissing($upc, $vendorID)
    {
        $aliasP = $this->connection->prepare("SELECT upc FROM VendorAliases WHERE vendorID=? AND upc=?");
        $aliased = $this->connection->getValue($aliasP, array($vendorID, $upc));
        if ($aliased) {
Severity: Minor
Found in fannie/classlib2.0/data/models/op/VendorItemsModel.php - About 1 hr to fix

    Method doc has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function doc()
        {
            return '
    Depends on:
    * vendors (table)
    Severity: Minor
    Found in fannie/classlib2.0/data/models/op/VendorItemsModel.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status