lib/Macaroons/Packet.php
Missing class import via use statement (line '49', column '17'). Open
Open
throw new \InvalidArgumentException('Data is too long for a binary packet.');
- 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
Avoid unused private methods such as 'mapPacketsCallback'. Open
Open
private function mapPacketsCallback($key, $data)
{
return $this->encode($key, $data);
}
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}