skqr/hateoas

View on GitHub
Metadata/Resource/MetadataMiner.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '48', column '30').
Open

        $resourceClass = new \ReflectionClass(self::DEFAULT_RESOURCE_CLASS);
Severity: Minor
Found in Metadata/Resource/MetadataMiner.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 "null" but found "NULL"
Open

    public function stub($type, $subtype = NULL)

Only one argument is allowed per line in a multi-line function call
Open

            $type, $subtype, $resourceClass, $fields, $relationships, $pageSize

Only one argument is allowed per line in a multi-line function call
Open

            $type, $subtype, $resourceClass, $fields, $relationships, $pageSize

Only one argument is allowed per line in a multi-line function call
Open

            $type, $subtype, $resourceClass, $fields, $relationships, $pageSize

Only one argument is allowed per line in a multi-line function call
Open

            $type, $subtype, $resourceClass, $fields, $relationships, $pageSize

Only one argument is allowed per line in a multi-line function call
Open

            $type, $subtype, $resourceClass, $fields, $relationships, $pageSize

Inline control structures are not allowed
Open

        if (empty($type)) $subtype = $type;

There are no issues that match your filters.

Category
Status