Root/MapCollection.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '65', column '20').
Open

        return new \ArrayIterator($this->maps);
Severity: Minor
Found in Root/MapCollection.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

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

        return FALSE;
Severity: Minor
Found in Root/MapCollection.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
Open

            if ($map->has($name)) return TRUE;
Severity: Minor
Found in Root/MapCollection.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Open

        return NULL;
Severity: Minor
Found in Root/MapCollection.php by phpcodesniffer

Inline control structures are not allowed
Open

            if ($map->has($name)) return TRUE;
Severity: Minor
Found in Root/MapCollection.php by phpcodesniffer

Inline control structures are not allowed
Open

            if ($map->has($name)) return $map->get($name);
Severity: Minor
Found in Root/MapCollection.php by phpcodesniffer

There are no issues that match your filters.

Category
Status