src/Micrometa/Infrastructure/Parser/LinkType.php
Missing class import via use statement (line '69', column '22'). Open
Open
$xpath = new \DOMXPath($dom);
- 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
Missing class import via use statement (line '66', column '53'). Open
Open
$this->logger->info('Running parser: '.(new \ReflectionClass(__CLASS__))->getShortName());
- 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();
}