Completed
Push — in_memory ( c3a551 )
by Jamal
09:35
created
src/Majora/Component/OAuth/Entity/LoginAttempt.php 2 patches
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
     public function getQuery($key)
47 47
     {
48 48
         return isset($this->query[$key]) ?
49
-            $this->query[$key] :
50
-            null
49
+            $this->query[$key] : null
51 50
         ;
52 51
     }
53 52
 
@@ -61,8 +60,7 @@  discard block
 block discarded – undo
61 60
     public function getData($key)
62 61
     {
63 62
         return isset($this->data[$key]) ?
64
-            $this->data[$key] :
65
-            null
63
+            $this->data[$key] : null
66 64
         ;
67 65
     }
68 66
 
@@ -76,8 +74,7 @@  discard block
 block discarded – undo
76 74
     public function getHeaders($key)
77 75
     {
78 76
         return isset($this->headers[$key]) ?
79
-            $this->headers[$key] :
80
-            null
77
+            $this->headers[$key] : null
81 78
         ;
82 79
     }
83 80
 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Returns query value under given key if defined, null otherwise.
41 41
      *
42
-     * @param string $query
43 42
      *
44 43
      * @return mixed
45 44
      */
@@ -54,8 +53,8 @@  discard block
 block discarded – undo
54 53
     /**
55 54
      * Returns data value under given key if defined, null otherwise.
56 55
      *
57
-     * @param string $data
58 56
      *
57
+     * @param string $key
59 58
      * @return mixed
60 59
      */
61 60
     public function getData($key)
@@ -69,7 +68,6 @@  discard block
 block discarded – undo
69 68
     /**
70 69
      * Returns headers value under given key if defined, null otherwise.
71 70
      *
72
-     * @param string $headers
73 71
      *
74 72
      * @return mixed
75 73
      */
Please login to merge, or discard this patch.
src/Majora/Bundle/OAuthServerBundle/DependencyInjection/Configuration.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      * @param string $tokenInterface
75 75
      * @param string $defaultTtl
76 76
      *
77
-     * @return Node
77
+     * @return \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition
78 78
      */
79 79
     private function createTokenNode($tokenName, $defaultClass, $tokenInterface, $defaultTtl)
80 80
     {
@@ -111,6 +111,9 @@  discard block
 block discarded – undo
111 111
         return $node;
112 112
     }
113 113
 
114
+    /**
115
+     * @param string $strategyName
116
+     */
114 117
     private function createDriverStrategyNode($strategyName)
115 118
     {
116 119
         $builder = new TreeBuilder();
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Entity/Token.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -39,6 +39,8 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @see TokenInterface::__construct()
42
+     * @param integer $expireIn
43
+     * @param string $hash
42 44
      */
43 45
     public function __construct(
44 46
         ApplicationInterface $application,
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Server/Server.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,8 +224,7 @@
 block discarded – undo
224 224
                             $account,
225 225
                             $this->tokenOptions['refresh_token_ttl'],
226 226
                             $this->randomTokenGenerator->generate('refresh_token')
227
-                        ) :
228
-                        null
227
+                        ) : null
229 228
                 )
230 229
             )
231 230
         );
Please login to merge, or discard this patch.
Bundle/OAuthServerBundle/DependencyInjection/MajoraOAuthServerExtension.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
 
60 60
                     // given service id or build one from registered strategies
61 61
                     $serviceId = $driver == 'id' ?
62
-                        $parameters :
63
-                        sprintf('majora.oauth.%s.%s_%s', $entity, $driver, $serviceAlias)
62
+                        $parameters : sprintf('majora.oauth.%s.%s_%s', $entity, $driver, $serviceAlias)
64 63
                     ;
65 64
 
66 65
                     // publish given service
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Loader/Null/TokenLoader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-namespace Majora\Component\OAuth\Loader\Null;
3
+namespace Majora\Component\OAuth\Loader\null;
4 4
 
5 5
 use Majora\Component\OAuth\Loader\TokenLoaderInterface;
6 6
 
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Repository/Null/RefreshTokenRepository.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-namespace Majora\Component\OAuth\Repository\Null;
3
+namespace Majora\Component\OAuth\Repository\null;
4 4
 
5 5
 use Majora\Component\OAuth\Repository\RefreshTokenRepositoryInterface;
6 6
 
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Loader/Null/AccessTokenLoader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-namespace Majora\Component\OAuth\Loader\Null;
3
+namespace Majora\Component\OAuth\Loader\null;
4 4
 
5 5
 use Majora\Component\OAuth\Loader\TokenLoaderInterface;
6 6
 
Please login to merge, or discard this patch.
src/Majora/Component/OAuth/Loader/Null/AccountLoader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-namespace Majora\Component\OAuth\Loader\Null;
3
+namespace Majora\Component\OAuth\Loader\null;
4 4
 
5 5
 use Majora\Component\OAuth\Loader\TokenLoaderInterface;
6 6
 
Please login to merge, or discard this patch.