NovikovViktor/RequestLimitBundle

View on GitHub

Showing 102 of 102 total issues

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 undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::never
Open

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

Call to method set from undeclared class \Memcached
Open

        return $this->_memcached->set($key, $expiresAt, 60 * 60 * 24 * 30);
Severity: Critical
Found in Storage/Provider/MemcachedProvider.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 method expects from undeclared class \PHPUnit_Framework_MockObject_MockObject
Open

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

Call to method expects from undeclared class \PHPUnit_Framework_MockObject_MockObject
Open

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

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

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

Call to method fetchAll from undeclared class \Memcached
Open

        return $this->_memcached->fetchAll();
Severity: Critical
Found in Storage/Provider/MemcachedProvider.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

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

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

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

Parameter $request has undeclared type \Symfony\Component\HttpFoundation\Request
Open

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

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

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

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

        $container->setParameter('nw_request_limit.provider_type', $providerType);

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

    public function fetchAllItems()
Severity: Minor
Found in Storage/Provider/MySQLProvider.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

Call to undeclared method \NW\RequestLimitBundle\DependencyInjection\NWRequestLimitExtension::processConfiguration
Open

        $config = $this->processConfiguration($configuration, $configs);

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

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

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

    public function remove($key)
Severity: Minor
Found in Storage/Provider/MySQLProvider.php by phan
Severity
Category
Status
Source
Language