immense/php-macaroons

View on GitHub
lib/Macaroons/Packet.php

Summary

Maintainability
A
0 mins
Test Coverage

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

      throw new \InvalidArgumentException('Data is too long for a binary packet.');
Severity: Minor
Found in lib/Macaroons/Packet.php by phpmd

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

  private function mapPacketsCallback($key, $data)
  {
    return $this->encode($key, $data);
  }
Severity: Minor
Found in lib/Macaroons/Packet.php by phpmd

UnusedPrivateMethod

Since: 0.2

Unused Private Method detects when a private method is declared but is unused.

Example

class Something
{
    private function foo() {} // unused
}

Source https://phpmd.org/rules/unusedcode.html#unusedprivatemethod

There are no issues that match your filters.

Category
Status