Failed Conditions
Push — master ( 896e74...31a79d )
by Florent
08:16 queued 03:41
created
src/Component/Server/Response/Factory/ResponseFactoryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -29,5 +29,5 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return OAuth2ResponseInterface
31 31
      */
32
-    public function createResponse(array $data, ResponseInterface &$response): OAuth2ResponseInterface;
32
+    public function createResponse(array $data, ResponseInterface & $response): OAuth2ResponseInterface;
33 33
 }
Please login to merge, or discard this patch.
Component/Server/TokenEndpointAuthMethod/TokenEndpointAuthMethodManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @return null|ClientId
98 98
      */
99
-    public function findClientInformationInTheRequest(ServerRequestInterface $request, TokenEndpointAuthMethodInterface &$authenticationMethod = null, &$clientCredentials = null)
99
+    public function findClientInformationInTheRequest(ServerRequestInterface $request, TokenEndpointAuthMethodInterface & $authenticationMethod = null, &$clientCredentials = null)
100 100
     {
101 101
         $clientId = null;
102 102
         $clientCredentials = null;
Please login to merge, or discard this patch.
Bundle/Server/DependencyInjection/Source/Endpoint/JwksUriEndpointSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         parent::continueConfiguration($node);
44 44
         $node
45 45
             ->validate()
46
-                ->ifTrue(function ($config) {
46
+                ->ifTrue(function($config) {
47 47
                     return true === $config['enabled'] && empty($config['route_name']);
48 48
                 })
49 49
                 ->thenInvalid('The route name must be set.')
Please login to merge, or discard this patch.
DependencyInjection/Source/Endpoint/SessionManagementEndpointSource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -49,18 +49,18 @@  discard block
 block discarded – undo
49 49
         parent::continueConfiguration($node);
50 50
         $node
51 51
             ->validate()
52
-                ->ifTrue(function ($config) {
52
+                ->ifTrue(function($config) {
53 53
                     return true === $config['enabled'] && empty($config['path']);
54 54
                 })
55 55
                 ->thenInvalid('The route name must be set.')
56 56
             ->end()
57 57
             ->validate()
58
-                ->ifTrue(function ($config) {
58
+                ->ifTrue(function($config) {
59 59
                     return true === $config['enabled'] && empty($config['storage_name']);
60 60
                 })->thenInvalid('The option "storage_name" must be set.')
61 61
             ->end()
62 62
             ->validate()
63
-                ->ifTrue(function ($config) {
63
+                ->ifTrue(function($config) {
64 64
                     return true === $config['enabled'] && empty($config['template']);
65 65
                 })->thenInvalid('The option "template" must be set.')
66 66
             ->end()
Please login to merge, or discard this patch.
Server/DependencyInjection/Source/TokenType/BearerTokenTypeSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         parent::continueConfiguration($node);
51 51
         $node
52 52
             ->validate()
53
-                ->ifTrue(function ($config) {
53
+                ->ifTrue(function($config) {
54 54
                     return true === $config['enabled'] && empty($config['realm']);
55 55
                 })
56 56
                 ->thenInvalid('The option "realm" must be set.')
Please login to merge, or discard this patch.
Bundle/Server/DependencyInjection/Source/TokenType/MacTokenTypeSource.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
         parent::continueConfiguration($node);
51 51
         $node
52 52
             ->validate()
53
-                ->ifTrue(function ($config) {
53
+                ->ifTrue(function($config) {
54 54
                     return $config['min_length'] > $config['max_length'];
55 55
                 })
56 56
                 ->thenInvalid('The option "min_length" must not be greater than "max_length".')
57 57
             ->end()
58 58
             ->validate()
59
-                ->ifTrue(function ($config) {
59
+                ->ifTrue(function($config) {
60 60
                     return !in_array($config['algorithm'], ['hmac-sha-256', 'hmac-sha-1']);
61 61
                 })
62 62
                 ->thenInvalid('The algorithm is not supported. Please use one of the following one: "hmac-sha-1", "hmac-sha-256".')
Please login to merge, or discard this patch.
Server/DependencyInjection/Source/Grant/IdTokenUserinfoPairwiseSource.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         parent::continueConfiguration($node);
45 45
         $node
46 46
             ->validate()
47
-                ->ifTrue(function ($config) {
47
+                ->ifTrue(function($config) {
48 48
                     return true === $config['enabled'] && empty($config['service']);
49 49
                 })
50 50
                 ->thenInvalid('The pairwise subject service must be set.')
Please login to merge, or discard this patch.
ClientAssertionJwtTokenEndpointAuthMethodEncryptionSupportSource.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -46,19 +46,19 @@  discard block
 block discarded – undo
46 46
         parent::continueConfiguration($node);
47 47
         $node
48 48
             ->validate()
49
-                ->ifTrue(function ($config) {
49
+                ->ifTrue(function($config) {
50 50
                     return true === $config['enabled'] && empty($config['key_encryption_algorithms']);
51 51
                 })
52 52
                 ->thenInvalid('At least one key encryption algorithm must be set.')
53 53
             ->end()
54 54
             ->validate()
55
-                ->ifTrue(function ($config) {
55
+                ->ifTrue(function($config) {
56 56
                     return true === $config['enabled'] && empty($config['content_encryption_algorithms']);
57 57
                 })
58 58
                 ->thenInvalid('At least one content encryption algorithm must be set.')
59 59
             ->end()
60 60
             ->validate()
61
-                ->ifTrue(function ($config) {
61
+                ->ifTrue(function($config) {
62 62
                     return true === $config['enabled'] && empty($config['key_set']);
63 63
                 })
64 64
                 ->thenInvalid('The KeySet must be set.')
Please login to merge, or discard this patch.
src/Bundle/Server/Annotation/AnnotationDriver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param FilterControllerEvent $event
119 119
      * @param string                $message
120 120
      */
121
-    private function createAuthenticationException(FilterControllerEvent &$event, $message)
121
+    private function createAuthenticationException(FilterControllerEvent & $event, $message)
122 122
     {
123 123
         $schemes = $this->tokenTypeManager->getSchemes();
124 124
         $exception = new OAuth2Exception(
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * @param FilterControllerEvent $event
138 138
      * @param string                $message
139 139
      */
140
-    private function createAccessDeniedException(FilterControllerEvent &$event, $message)
140
+    private function createAccessDeniedException(FilterControllerEvent & $event, $message)
141 141
     {
142 142
         $exception = new OAuth2Exception(
143 143
             403,
@@ -154,9 +154,9 @@  discard block
 block discarded – undo
154 154
      * @param FilterControllerEvent $event
155 155
      * @param OAuth2Exception       $exception
156 156
      */
157
-    private function updateFilterControllerEvent(FilterControllerEvent &$event, OAuth2Exception $exception)
157
+    private function updateFilterControllerEvent(FilterControllerEvent & $event, OAuth2Exception $exception)
158 158
     {
159
-        $event->setController(function () use ($exception) {
159
+        $event->setController(function() use ($exception) {
160 160
             $response = new Response();
161 161
             //$exception->getHttpResponse($response);
162 162
             $response->getBody()->rewind();
Please login to merge, or discard this patch.