src/Schema.php
Missing class import via use statement (line '25', column '26'). Open
Open
$validator = new \Activerules\JsonGuard\Validator($data, $schema);
- 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
Possibly zero references to use statement for classlike/namespace Validator
(\Activerules\JsonGuard\Validator)
Open
Open
use Activerules\JsonGuard\Validator;
- Exclude checks
Parameter $schema
has undeclared type \Activerules\Nugget\type
Open
Open
public function meetsSchema(string $object, $schema)
- Exclude checks
Possibly zero references to use statement for classlike/namespace NuggetException
(\Activerules\Nugget\Exception\NuggetException)
Open
Open
use Activerules\Nugget\Exception\NuggetException;
- Exclude checks
Call to method __construct
from undeclared class \Activerules\JsonGuard\Validator
Open
Open
$validator = new \Activerules\JsonGuard\Validator($data, $schema);
- Exclude checks
Call to method fails
from undeclared class \Activerules\JsonGuard\Validator
Open
Open
return $validator->fails() ? false : true;
- Exclude checks
Parameter $schema
has undeclared type \Activerules\Nugget\type
Open
Open
public function limitToSchema(string $object, $schema)
- Exclude checks
Reference to instance property properties
from undeclared class \Activerules\Nugget\type
Open
Open
foreach (array_keys((array) $schema->properties) as $prop) {
- Exclude checks