NovikovViktor/RequestLimitBundle

View on GitHub
Tests/AppKernel.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '18', column '30').
Open

            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
Severity: Minor
Found in Tests/AppKernel.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 '19', column '30').
Open

            $bundles[] = new NW\RequestLimitBundle\NWRequestLimitBundle();
Severity: Minor
Found in Tests/AppKernel.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

Class extends undeclared class \Symfony\Component\HttpKernel\Kernel
Open

class AppKernel extends Kernel
Severity: Critical
Found in Tests/AppKernel.php by phan

Parameter $loader has undeclared type \Symfony\Component\Config\Loader\LoaderInterface
Open

    public function registerContainerConfiguration(LoaderInterface $loader)
Severity: Minor
Found in Tests/AppKernel.php by phan

Call to undeclared method \AppKernel::getEnvironment
Open

        if (in_array($this->getEnvironment(), ['test'])) {
Severity: Critical
Found in Tests/AppKernel.php by phan

Call to method __construct from undeclared class \Symfony\Bundle\FrameworkBundle\FrameworkBundle
Open

            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
Severity: Critical
Found in Tests/AppKernel.php by phan

Call to method load from undeclared class \Symfony\Component\Config\Loader\LoaderInterface
Open

        $loader->load(__DIR__ . '/config.yml');
Severity: Critical
Found in Tests/AppKernel.php by phan

Each class must be in a namespace of at least one level (a top-level vendor name)
Open

class AppKernel extends Kernel
Severity: Minor
Found in Tests/AppKernel.php by phpcodesniffer

There are no issues that match your filters.

Category
Status