rogervila/cart

View on GitHub
src/Item.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '73', column '23').
Open

            throw new \Exception('Item->quantity() expects an integer');
Severity: Minor
Found in src/Item.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '165', column '23').
Open

            throw new \Exception('Item->setFields() expects an array. Argument given: ' . json_encode($fields));
Severity: Minor
Found in src/Item.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

There are no issues that match your filters.

Category
Status