Completed
Push — feature/moar-test-optimizing ( 337306...28ebf8 )
by Lucas
07:06
created
src/Graviton/SecurityBundle/Listener/AuthenticationLogger.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use Psr\Log\LoggerInterface;
9 9
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
10 10
 use Symfony\Component\HttpFoundation\Response;
11
-use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken;
12 11
 use Symfony\Component\Security\Core\AuthenticationEvents;
13 12
 use Symfony\Component\Security\Core\Event\AuthenticationEvent;
14 13
 use Symfony\Component\Security\Core\Event\AuthenticationFailureEvent;
Please login to merge, or discard this patch.
Graviton/SecurityBundle/Tests/Authentication/SecurityAuthenticatorTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
     /**
236 236
      * @param array $methods methods to mock
237 237
      *
238
-     * @return StrategyInterface|\PHPUnit_Framework_MockObject_MockObject
238
+     * @return \PHPUnit_Framework_MockObject_MockObject
239 239
      */
240 240
     private function getStrategyMock(array $methods = array('apply'))
241 241
     {
Please login to merge, or discard this patch.
src/Graviton/SecurityBundle/Authentication/SecurityAuthenticator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      * @param Request                 $request   original request
125 125
      * @param AuthenticationException $exception exception from auth attempt
126 126
      *
127
-     * @return Response|null
127
+     * @return Response
128 128
      */
129 129
     public function onAuthenticationFailure(Request $request, AuthenticationException $exception)
130 130
     {
Please login to merge, or discard this patch.
src/Graviton/CoreBundle/Controller/MainController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use Graviton\RestBundle\HttpFoundation\LinkHeaderItem;
11 11
 use Graviton\RestBundle\Service\RestUtilsInterface;
12 12
 use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
13
-use Symfony\Component\HttpFoundation\Request;
14 13
 use Symfony\Component\HttpFoundation\Response;
15 14
 use Symfony\Component\Routing\Router;
16 15
 
Please login to merge, or discard this patch.
src/Graviton/SchemaBundle/Listener/SchemaContentTypeResponseListener.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     private $router;
26 26
 
27 27
     /**
28
-     * @param router $router router
28
+     * @param Router $router router
29 29
      */
30 30
     public function __construct(Router $router)
31 31
     {
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @param FilterResponseEvent $event response event
42 42
      *
43
-     * @return void
43
+     * @return null|boolean
44 44
      */
45 45
     public function onKernelResponse(FilterResponseEvent $event)
46 46
     {
Please login to merge, or discard this patch.
src/Graviton/SecurityBundle/Voter/ServiceAllowedVoter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     /**
19 19
      * Return an array of supported classes. This will be called by supportsClass
20 20
      *
21
-     * @return array an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product')
21
+     * @return string[] an array of supported classes, i.e. array('Acme\DemoBundle\Model\Product')
22 22
      */
23 23
     protected function getSupportedClasses()
24 24
     {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Return an array of supported attributes. This will be called by supportsAttribute
33 33
      *
34
-     * @return array an array of supported attributes, i.e. array('CREATE', 'READ')
34
+     * @return string[] an array of supported attributes, i.e. array('CREATE', 'READ')
35 35
      */
36 36
     protected function getSupportedAttributes()
37 37
     {
Please login to merge, or discard this patch.
src/Graviton/RestBundle/Controller/RestController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -713,7 +713,7 @@
 block discarded – undo
713 713
     /**
714 714
      * Security needs to be enabled to get Object.
715 715
      *
716
-     * @return SecurityUser
716
+     * @return UserInterface
717 717
      * @throws PreconditionRequiredHttpException
718 718
      */
719 719
     public function getSecurityUser()
Please login to merge, or discard this patch.
SecurityBundle/Tests/Authentication/Strategies/HeaderFieldStrategyTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace Graviton\SecurityBundle\Authentication\Strategies;
7 7
 
8 8
 use Graviton\TestBundle\Test\WebTestCase;
9
-use Symfony\Component\HttpFoundation\RequestStack;
10 9
 
11 10
 /**
12 11
  * Class HeaderFieldStrategyTest
Please login to merge, or discard this patch.
Graviton/SecurityBundle/Authentication/Strategies/CookieFieldStrategy.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace Graviton\SecurityBundle\Authentication\Strategies;
7 7
 
8 8
 use Graviton\TestBundle\Test\WebTestCase;
9
-use Symfony\Component\HttpFoundation\RequestStack;
10 9
 
11 10
 /**
12 11
  * Class HeaderFieldStrategyTest
Please login to merge, or discard this patch.