Showing 5 of 5 total issues
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class FileInfo
- Create a ticketCreate a ticket
- Exclude checks
Missing class import via use statement (line '49', column '23'). Open
Open
throw new InvalidArgumentException('FileInfo expects a string.');
- Read upRead up
- Create a ticketCreate a ticket
- 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 '154', column '27'). Open
Open
throw new Exception(sprintf('Undefined property: %s::$%s', __CLASS__, $key));
- Read upRead up
- Create a ticketCreate a ticket
- 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
Avoid too many return
statements within this method. Open
Open
return $this->getMediaType();
- Create a ticketCreate a ticket
Expected 0 spaces after opening bracket; 1 found Open
Open
if ( ! is_string($file)) {
- Create a ticketCreate a ticket
- Exclude checks