NovikovViktor/RequestLimitBundle

View on GitHub
DependencyInjection/Compiler/StoragePass.php

Summary

Maintainability
A
0 mins
Test Coverage

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

    public function process(ContainerBuilder $container)

Call to method getParameter from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        $providerConfiguration   = $container->getParameter('nw_request_limit.provider_configuration');

Call to method getDefinition from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        $providerDefinition = $container->getDefinition($providerTypeServiceName);

Class implements undeclared interface \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Open

class StoragePass implements CompilerPassInterface

Call to method getParameter from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        $providerType            = $container->getParameter('nw_request_limit.provider_type');

Call to method getDefinition from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open

        $storageManagerDefinition = $container->getDefinition('nw.request_limit.storage_manager');

Avoid excessively long variable names like $storageManagerDefinition. Keep variable name length under 20.
Open

        $storageManagerDefinition = $container->getDefinition('nw.request_limit.storage_manager');

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $providerConfiguration. Keep variable name length under 20.
Open

        $providerConfiguration   = $container->getParameter('nw_request_limit.provider_configuration');

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

Avoid excessively long variable names like $providerTypeServiceName. Keep variable name length under 20.
Open

        $providerTypeServiceName = sprintf('nw.request_limit.%s.provider', $providerType);

LongVariable

Since: 0.2

Detects when a field, formal or local variable is declared with a long name.

Example

class Something {
    protected $reallyLongIntName = -3; // VIOLATION - Field
    public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
        $otherReallyLongName = -5; // VIOLATION - Local
        for ($interestingIntIndex = 0; // VIOLATION - For
             $interestingIntIndex < 10;
             $interestingIntIndex++ ) {
        }
    }
}

Source https://phpmd.org/rules/naming.html#longvariable

There are no issues that match your filters.

Category
Status