Metadata/Resource/MetadataMiner.php
Missing class import via use statement (line '48', column '30'). Open
Open
$resourceClass = new \ReflectionClass(self::DEFAULT_RESOURCE_CLASS);
- Read upRead up
- Exclude checks
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
Open
public function stub($type, $subtype = NULL)
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$type, $subtype, $resourceClass, $fields, $relationships, $pageSize
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$type, $subtype, $resourceClass, $fields, $relationships, $pageSize
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$type, $subtype, $resourceClass, $fields, $relationships, $pageSize
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$type, $subtype, $resourceClass, $fields, $relationships, $pageSize
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
Open
$type, $subtype, $resourceClass, $fields, $relationships, $pageSize
- Exclude checks
Inline control structures are not allowed Open
Open
if (empty($type)) $subtype = $type;
- Exclude checks