nbish11/FileInfo

View on GitHub

Showing 5 of 5 total issues

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class FileInfo
Severity: Minor
Found in src/FileInfo.php by phpcodesniffer

Missing class import via use statement (line '154', column '27').
Open

throw new Exception(sprintf('Undefined property: %s::$%s', __CLASS__, $key));
Severity: Minor
Found in src/FileInfo.php by phpmd

Avoid too many return statements within this method.
Open

return $this->getMediaType();
Severity: Major
Found in src/FileInfo.php - About 30 mins to fix

Missing class import via use statement (line '49', column '23').
Open

throw new InvalidArgumentException('FileInfo expects a string.');
Severity: Minor
Found in src/FileInfo.php by phpmd

Expected 0 spaces after opening bracket; 1 found
Open

if ( ! is_string($file)) {
Severity: Minor
Found in src/FileInfo.php by phpcodesniffer
Severity
Category
Status
Source
Language