robotdance/php-json-schema

View on GitHub
src/JsonSchema/Entity/JsonPointer.php

Summary

Maintainability
A
0 mins
Test Coverage

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

            throw new \InvalidArgumentException('Ref value must be a string');
Severity: Minor
Found in src/JsonSchema/Entity/JsonPointer.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 'encodePath'.
Open

    private function encodePath($path)
    {
        return strtr($path, array('/' => '~1', '~' => '~0', '%' => '%25'));
    }
Severity: Minor
Found in src/JsonSchema/Entity/JsonPointer.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