DependencyInjection/Compiler/StoragePass.php
Parameter $container
has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
public function process(ContainerBuilder $container)
- Exclude checks
Call to method getParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$providerConfiguration = $container->getParameter('nw_request_limit.provider_configuration');
- Exclude checks
Call to method getDefinition
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$providerDefinition = $container->getDefinition($providerTypeServiceName);
- Exclude checks
Class implements undeclared interface \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Open
Open
class StoragePass implements CompilerPassInterface
- Exclude checks
Call to method getParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$providerType = $container->getParameter('nw_request_limit.provider_type');
- Exclude checks
Call to method getDefinition
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$storageManagerDefinition = $container->getDefinition('nw.request_limit.storage_manager');
- Exclude checks
Avoid excessively long variable names like $storageManagerDefinition. Keep variable name length under 20. Open
Open
$storageManagerDefinition = $container->getDefinition('nw.request_limit.storage_manager');
- Read upRead up
- Exclude checks
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
Open
$providerConfiguration = $container->getParameter('nw_request_limit.provider_configuration');
- Read upRead up
- Exclude checks
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
Open
$providerTypeServiceName = sprintf('nw.request_limit.%s.provider', $providerType);
- Read upRead up
- Exclude checks
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++ ) {
}
}
}