CORE-POS/IS4C

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

Summary

Maintainability
A
2 hrs
Test Coverage
F
57%

Method logUpdate has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function logUpdate($type='UNKNOWN', $user=false)
    {
        if (!$user) {
            $user = FannieAuth::getUID(FannieAuth::checkLogin());
        }
Severity: Minor
Found in fannie/classlib2.0/data/models/op/ProdUpdateModel.php - About 1 hr to fix

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

        public function logManyUpdates($upcs, $type='UNKNOWN', $user=false)
        {
            if (count($upcs) == 0) {
                // nothing to log
                return true;
    Severity: Minor
    Found in fannie/classlib2.0/data/models/op/ProdUpdateModel.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status