pug-php/pug-symfony

View on GitHub
src/Pug/PugSymfonyBundle/PugSymfonyBundle.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid using undefined variables such as '$propertyAccessor' which will lead to PHP notices.
Open

            $propertyAccessor->setValue($container, $services);

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

Avoid using undefined variables such as '$propertyAccessor' which will lead to PHP notices.
Open

            $services = static::getPrivateProperty($container, 'services', $propertyAccessor);

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

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

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

class PugSymfonyBundle extends Bundle

Parameter $container has undeclared type \Symfony\Component\DependencyInjection\ContainerInterface
Open

    public function setContainer(ContainerInterface $container = null)

Call to method get from undeclared class \Symfony\Component\DependencyInjection\ContainerInterface
Open

            $kernel = $container->get('kernel');

Reference to undeclared property \Pug\PugSymfonyBundle\PugSymfonyBundle->container (Did you mean $container)
Open

        $this->container = $container;

Possibly zero references to use statement for classlike/namespace KernelInterface (\Symfony\Component\HttpKernel\KernelInterface)
Open

use Symfony\Component\HttpKernel\KernelInterface;

Call to method addCommands from undeclared class \Symfony\Component\Console\Application
Open

            $application->addCommands([

Possibly zero references to use statement for classlike/namespace ReflectionProperty (\ReflectionProperty)
Open

use ReflectionProperty;

Parameter $application has undeclared type \Symfony\Component\Console\Application
Open

    public function registerCommands(Application $application)

Reference to undeclared property \Pug\PugSymfonyBundle\PugSymfonyBundle->container
Open

            $engine = $this->container->get(PugSymfonyEngine::class);

There are no issues that match your filters.

Category
Status