iranianpep/list-sorter

View on GitHub

Showing 4 of 4 total issues

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

            throw new \Exception('Invalid sortable item key : '.$key);
Severity: Minor
Found in src/ListSorter/ListSorter.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 '87', column '23').
Open

            throw new \Exception('Sortable item alias must be unique');
Severity: Minor
Found in src/ListSorter/AbstractListSorter.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 '83', column '23').
Open

            throw new \Exception('Sortable items can not be empty');
Severity: Minor
Found in src/ListSorter/AbstractListSorter.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 '40', column '23').
Open

            throw new \Exception('Sortable item key can not be empty');
Severity: Minor
Found in src/ListSorter/SortableItem.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

Severity
Category
Status
Source
Language