Showing 102 of 102 total issues
The variable $_memcached is not named in camelCase. Open
Open
public function configure($configuration)
{
$memcachedHost = $configuration['server'];
$memcachedPort = $configuration['port'];
$_memcached = new Memcached();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $_memcached is not named in camelCase. Open
Open
public function configure($configuration)
{
$memcachedHost = $configuration['server'];
$memcachedPort = $configuration['port'];
$_memcached = new Memcached();
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
Class extends undeclared class \Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Open
Open
class MySQLProviderSetupCommand extends ContainerAwareCommand
- 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 __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 addServer
from undeclared class \Memcached
Open
Open
$_memcached->addServer($memcachedHost, $memcachedPort);
- Exclude checks
Call to method load
from undeclared class \Symfony\Component\Config\Loader\LoaderInterface
Open
Open
$loader->load(__DIR__ . '/config.yml');
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::createMock
Open
Open
$storageManager = $this->createMock(
- Exclude checks
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::getContainer
Open
Open
$connection = $this->getContainer()->get('doctrine.orm.default_entity_manager')->getConnection();
- Exclude checks
Call to method root
from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open
Open
$rootNode = $treeBuilder->root('request_limit');
- 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
Call to method __construct
from undeclared class \Memcached
Open
Open
$_memcached = new Memcached();
- Exclude checks
@throws type of get
has undeclared type \Doctrine\DBAL\Exception
(Did you mean class \Exception) Open
Open
public function get($key)
- Exclude checks
Method \NW\RequestLimitBundle\Storage\Provider\MySQLProvider::set
is declared to return mixed
but has no return value Open
Open
public function set($key, $expiresAt)
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Bundle\FrameworkBundle\FrameworkBundle
Open
Open
$bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::assertEquals
Open
Open
$this->assertEquals('userId', $result);
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
@throws type of execute
has undeclared type \Doctrine\DBAL\DBALException
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Call to method getDefinition
from undeclared class \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
$providerDefinition = $container->getDefinition($providerTypeServiceName);
- Exclude checks