NovikovViktor/RequestLimitBundle

View on GitHub

Showing 102 of 102 total issues

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

        $storageManager->expects($this->never())->method('getItem');
Severity: Critical
Found in Tests/Unit/Utils/RestrictorTest.php by phan

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

    public function build(ContainerBuilder $container)
Severity: Minor
Found in NWRequestLimitBundle.php by phan

Call to method get from undeclared class \Memcached
Open

        return $this->_memcached->get($key);
Severity: Critical
Found in Storage/Provider/MemcachedProvider.php by phan

Class extends undeclared class \Symfony\Component\HttpKernel\Kernel
Open

class AppKernel extends Kernel
Severity: Critical
Found in Tests/AppKernel.php by phan

Parameter $loader has undeclared type \Symfony\Component\Config\Loader\LoaderInterface
Open

    public function registerContainerConfiguration(LoaderInterface $loader)
Severity: Minor
Found in Tests/AppKernel.php by phan

Class extends undeclared class \PHPUnit_Framework_TestCase
Open

class RestrictorTest extends \PHPUnit_Framework_TestCase
Severity: Critical
Found in Tests/Unit/Utils/RestrictorTest.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

Class implements undeclared interface \Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
Open

class RestrictionsCollector implements DataCollectorInterface
Severity: Critical
Found in DataCollector/RestrictionsCollector.php by phan

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

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

Call to method __construct from undeclared class \Symfony\Component\DependencyInjection\Loader\XmlFileLoader
Open

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

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

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

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

        $storageManager = $this->createMock(
Severity: Critical
Found in Tests/Unit/Utils/RestrictorTest.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

@throws type of execute has undeclared type \Doctrine\DBAL\DBALException
Open

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

Parameter $response has undeclared type \Symfony\Component\HttpFoundation\Response
Open

    public function collect(Request $request, Response $response, \Exception $exception = null)

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

    public function fetchAllItems()
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

Argument 2 (hasItem) is true but \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::getStorageManagerMock() takes false defined at /code/Tests/Unit/Utils/RestrictorTest.php:45
Open

        $storageManager = $this->getStorageManagerMock('userId', true);
Severity: Minor
Found in Tests/Unit/Utils/RestrictorTest.php by phan

Call to method __construct from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $treeBuilder = new TreeBuilder();
Severity: Critical
Found in DependencyInjection/Configuration.php by phan

Call to method root from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open

        $rootNode = $treeBuilder->root('request_limit');
Severity: Critical
Found in DependencyInjection/Configuration.php by phan
Severity
Category
Status
Source
Language