NovikovViktor/RequestLimitBundle

View on GitHub

Showing 102 of 102 total issues

Property \NW\RequestLimitBundle\Storage\Provider\MemcachedProvider->_memcached has undeclared type \Memcached
Open

    private $_memcached;
Severity: Minor
Found in Storage/Provider/MemcachedProvider.php by phan

Call to method __construct from undeclared class \Memcached
Open

        $_memcached = new Memcached();
Severity: Critical
Found in Storage/Provider/MemcachedProvider.php by phan

Call to method __construct from undeclared class \Symfony\Bundle\FrameworkBundle\FrameworkBundle
Open

            $bundles[] = new Symfony\Bundle\FrameworkBundle\FrameworkBundle();
Severity: Critical
Found in Tests/AppKernel.php by phan

Parameter $output has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open

    protected function execute(InputInterface $input, OutputInterface $output)
Severity: Minor
Found in Command/MySQLProviderSetupCommand.php by phan

Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::getContainer
Open

        $connection = $this->getContainer()->get('doctrine.orm.default_entity_manager')->getConnection();
Severity: Critical
Found in Command/MySQLProviderSetupCommand.php by phan

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

        $container->setParameter('nw_request_limit.provider_configuration', $providerConfiguration);

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

        $container->addCompilerPass(new StoragePass());
Severity: Critical
Found in NWRequestLimitBundle.php by phan

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

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

Call to method addServer from undeclared class \Memcached
Open

        $_memcached->addServer($memcachedHost, $memcachedPort);
Severity: Critical
Found in Storage/Provider/MemcachedProvider.php by phan

Call to method load from undeclared class \Symfony\Component\Config\Loader\LoaderInterface
Open

        $loader->load(__DIR__ . '/config.yml');
Severity: Critical
Found in Tests/AppKernel.php by phan

Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::once
Open

        $storageManager->expects($this->once())
Severity: Critical
Found in Tests/Unit/Utils/RestrictorTest.php by phan

Call to undeclared method \NW\RequestLimitBundle\Command\MySQLProviderSetupCommand::setName
Open

        $this
Severity: Critical
Found in Command/MySQLProviderSetupCommand.php by phan

Class extends undeclared class \Symfony\Component\HttpKernel\DependencyInjection\Extension
Open

class NWRequestLimitExtension extends Extension

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

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

Call to method __construct from undeclared class \Symfony\Component\Config\FileLocator
Open

        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));

@throws type of get has undeclared type \Doctrine\DBAL\Exception (Did you mean class \Exception)
Open

    public function get($key)
Severity: Minor
Found in Storage/Provider/MySQLProvider.php by phan

@throws type of set has undeclared type \Doctrine\DBAL\Driver\Exception (Did you mean class \Exception)
Open

    public function set($key, $expiresAt)
Severity: Minor
Found in Storage/Provider/MySQLProvider.php by phan

Return type of getStorageManagerMock() is undeclared type \PHPUnit_Framework_MockObject_MockObject
Open

    private function getStorageManagerMock($item = 'userId', $hasItem = false)
Severity: Minor
Found in Tests/Unit/Utils/RestrictorTest.php by phan

Method \NW\RequestLimitBundle\Storage\Provider\MySQLProvider::set is declared to return mixed but has no return value
Open

    public function set($key, $expiresAt)
Severity: Minor
Found in Storage/Provider/MySQLProvider.php by phan

Call to method getConnection from undeclared class \Doctrine\ORM\EntityManager
Open

        $connection = $this->_em->getConnection();
Severity: Critical
Found in Storage/Provider/MySQLProvider.php by phan
Severity
Category
Status
Source
Language