Tests/AppKernel.php
Missing class import via use statement (line '18', column '30'). Open
Open
$bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
- 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
Missing class import via use statement (line '19', column '30'). Open
Open
$bundles[] = new NW\RequestLimitBundle\NWRequestLimitBundle();
- 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
Class extends undeclared class \Symfony\Component\HttpKernel\Kernel
Open
Open
class AppKernel extends Kernel
- Exclude checks
Parameter $loader
has undeclared type \Symfony\Component\Config\Loader\LoaderInterface
Open
Open
public function registerContainerConfiguration(LoaderInterface $loader)
- Exclude checks
Call to undeclared method \AppKernel::getEnvironment
Open
Open
if (in_array($this->getEnvironment(), ['test'])) {
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Bundle\FrameworkBundle\FrameworkBundle
Open
Open
$bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
- Exclude checks
Call to method load
from undeclared class \Symfony\Component\Config\Loader\LoaderInterface
Open
Open
$loader->load(__DIR__ . '/config.yml');
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class AppKernel extends Kernel
- Exclude checks