Jelle-S/TheSportsDb

View on GitHub

Showing 92 of 92 total issues

Missing class import via use statement (line '54', column '15').
Open

        : new \ReflectionClass($this->entityManager->getClass($entityType));
Severity: Minor
Found in src/Entity/Factory/Factory.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

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

    throw new \Exception('Could not fully load player with id ' . $this->properties->id . '.');
Severity: Minor
Found in src/Entity/Proxy/PlayerProxy.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

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

    $this->properties = new \stdClass();
Severity: Minor
Found in src/Entity/Proxy/Proxy.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

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

    $reflection = new \ReflectionClass(static::class);
Severity: Minor
Found in src/Entity/Proxy/Proxy.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

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

    $reflection = new \ReflectionClass($this);
Severity: Minor
Found in src/Entity/Entity.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

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

      throw new \Exception(ucfirst($type) . ' class for ' . $entityType . ' not registered.');
Severity: Minor
Found in src/Entity/EntityManager.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

Missing class import via use statement (line '175', column '19').
Open

    $mapped = new \stdClass();
Severity: Minor
Found in src/Entity/EntityManager.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

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

    $date = new \DateTime($value);
Severity: Minor
Found in src/Entity/Entity.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

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

      throw new \Exception('Class ' . $realClass . ' not found.');
Severity: Minor
Found in src/Entity/EntityManager.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

Missing class import via use statement (line '138', column '26').
Open

      $proxyClass = (new \ReflectionClass($realClass))->getNamespaceName() . '\\Proxy\\' . ucfirst($entityType) . 'Proxy';
Severity: Minor
Found in src/Entity/EntityManager.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

Missing class import via use statement (line '193', column '21').
Open

    $reversed = new \stdClass();
Severity: Minor
Found in src/Entity/EntityManager.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

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

    $reflection = new \ReflectionClass($namespace . substr($selfReflection->getShortName(), 0, -5));
Severity: Minor
Found in src/Entity/Proxy/Proxy.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

Missing class import via use statement (line '67', column '15').
Open

    throw new \Exception('Request to ' . $url . ' failed: ' . $response->getStatusCode() . ' ' . $response->getReasonPhrase() . '.');
Severity: Minor
Found in src/Http/TheSportsDbClient.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

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

    throw new \Exception('Could not fully load event with id ' . $this->properties->id . '.');
Severity: Minor
Found in src/Entity/Proxy/EventProxy.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

Missing class import via use statement (line '129', column '25').
Open

      $this->_raw = new \stdClass();
Severity: Minor
Found in src/Entity/Proxy/Proxy.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

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

    $reflection = new \ReflectionClass($this);
Severity: Minor
Found in src/Entity/Proxy/Proxy.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

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

      throw new \Exception('No repository registered for ' . $entityType);

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

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

      throw new \InvalidArgumentException('Each transform function should have a reverse function and vice versa.');
Severity: Minor
Found in src/PropertyMapper/PropertyMap.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

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

      throw new \Exception('No factory registered for ' . $entityType . ' and no default factory configured.');

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

The method __construct has a boolean flag argument $isArray, which is a certain sign of a Single Responsibility Principle violation.
Open

  public function __construct($name, $entityType = NULL, $isArray = FALSE) {

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

Severity
Category
Status
Source
Language