bourdeau/jdhm-api

View on GitHub
app/AppKernel.php

Summary

Maintainability
A
0 mins
Test Coverage

The class AppKernel has a coupling between objects value of 18. Consider to reduce the number of dependencies under 13.
Open

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
Severity: Minor
Found in app/AppKernel.php by phpmd

CouplingBetweenObjects

Since: 1.1.0

A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

Example

class Foo {
    /**
     * @var \foo\bar\X
     */
    private $x = null;

    /**
     * @var \foo\bar\Y
     */
    private $y = null;

    /**
     * @var \foo\bar\Z
     */
    private $z = null;

    public function setFoo(\Foo $foo) {}
    public function setBar(\Bar $bar) {}
    public function setBaz(\Baz $baz) {}

    /**
     * @return \SplObjectStorage
     * @throws \OutOfRangeException
     * @throws \InvalidArgumentException
     * @throws \ErrorException
     */
    public function process(\Iterator $it) {}

    // ...
}

Source https://phpmd.org/rules/design.html#couplingbetweenobjects

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

            new JMS\SerializerBundle\JMSSerializerBundle(),
Severity: Minor
Found in app/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 '20', column '17').
Open

            new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
Severity: Minor
Found in app/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 '15', column '17').
Open

            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
Severity: Minor
Found in app/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 '26', column '30').
Open

            $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
Severity: Minor
Found in app/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 '13', column '17').
Open

            new Symfony\Bundle\TwigBundle\TwigBundle(),
Severity: Minor
Found in app/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 '14', column '17').
Open

            new Symfony\Bundle\MonologBundle\MonologBundle(),
Severity: Minor
Found in app/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 '30', column '30').
Open

            $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
Severity: Minor
Found in app/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 '17', column '17').
Open

            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
Severity: Minor
Found in app/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 '18', column '17').
Open

            new FOS\RestBundle\FOSRestBundle(),
Severity: Minor
Found in app/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 '21', column '17').
Open

            new Nelmio\CorsBundle\NelmioCorsBundle(),
Severity: Minor
Found in app/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 '12', column '17').
Open

            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
Severity: Minor
Found in app/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 '22', column '17').
Open

            new JdhmApi\JdhmApi(),
Severity: Minor
Found in app/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 '27', column '30').
Open

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

            $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
Severity: Minor
Found in app/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 '11', column '17').
Open

            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
Severity: Minor
Found in app/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 '16', column '17').
Open

            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
Severity: Minor
Found in app/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 '29', column '30').
Open

            $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
Severity: Minor
Found in app/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

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 app/AppKernel.php by phpcodesniffer

There are no issues that match your filters.

Category
Status