DependencyInjection/NWRequestLimitExtension.php
Call to method setParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$container->setParameter('nw_request_limit.restriction_time', $restrictionTime);
- Exclude checks
Call to method setParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$container->setParameter('nw_request_limit.provider_type', $providerType);
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Loader\XmlFileLoader
Open
Open
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- Exclude checks
Call to method load
from undeclared class \Symfony\Component\DependencyInjection\Loader\XmlFileLoader
Open
Open
$loader->load('services.xml');
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\DependencyInjection\NWRequestLimitExtension::processConfiguration
Open
Open
$config = $this->processConfiguration($configuration, $configs);
- Exclude checks
Parameter $container
has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
public function load(array $configs, ContainerBuilder $container)
- Exclude checks
Call to method setParameter
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$container->setParameter('nw_request_limit.provider_configuration', $providerConfiguration);
- Exclude checks
Class extends undeclared class \Symfony\Component\HttpKernel\DependencyInjection\Extension
Open
Open
class NWRequestLimitExtension extends Extension
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\Config\FileLocator
Open
Open
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- Exclude checks
Avoid excessively long variable names like $providerConfiguration. Keep variable name length under 20. Open
Open
$providerConfiguration = $config['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++ ) {
}
}
}