Failed Conditions
Push — master ( 10fd99...d82019 )
by Florent
03:44
created
Server/Plugin/RefreshTokenGrantTypePlugin/RefreshTokenGrantTypePlugin.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)
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         }
62 62
 
63 63
         $parameters = [
64
-            'oauth2_server.refresh_token.token_manager' => ['type' => 'alias',     'path' => '[manager]'],
64
+            'oauth2_server.refresh_token.token_manager' => ['type' => 'alias', 'path' => '[manager]'],
65 65
             'oauth2_server.refresh_token.token_class' => ['type' => 'parameter', 'path' => '[class]'],
66 66
             'oauth2_server.refresh_token.min_length' => ['type' => 'parameter', 'path' => '[min_length]'],
67 67
             'oauth2_server.refresh_token.max_length' => ['type' => 'parameter', 'path' => '[max_length]'],
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             ->isRequired()
81 81
             ->addDefaultsIfNotSet()
82 82
                 ->validate()
83
-                    ->ifTrue(function ($value) {
83
+                    ->ifTrue(function($value) {
84 84
                         return $value['min_length'] >= $value['max_length'];
85 85
                     })
86 86
                     ->thenInvalid('The configuration option "min_length" must be lower than "max_length".')
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 ->scalarNode('class')
105 105
                     ->info('Refresh token class.')
106 106
                     ->validate()
107
-                        ->ifTrue(function ($value) {
107
+                        ->ifTrue(function($value) {
108 108
                             return !class_exists($value);
109 109
                         })->thenInvalid('The class does not exist.')
110 110
                     ->end()
Please login to merge, or discard this patch.
src/Bundle/Server/Plugin/JWTAccessTokenPlugin/JWTAccessTokenPlugin.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)
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
             'oauth2_server.jwt_access_token.manager.issuer' => ['type' => 'parameter', 'path' => '[issuer]'],
53 53
             'oauth2_server.jwt_access_token.manager.token_lifetime' => ['type' => 'parameter', 'path' => '[token_lifetime]'],
54 54
             'oauth2_server.jwt_access_token.manager.signature_algorithm' => ['type' => 'parameter', 'path' => '[signature_algorithm]'],
55
-            'oauth2_server.jwt_access_token.manager.signature_key_set' => ['type' => 'alias',     'path' => '[signature_key_set]'],
55
+            'oauth2_server.jwt_access_token.manager.signature_key_set' => ['type' => 'alias', 'path' => '[signature_key_set]'],
56 56
             'oauth2_server.jwt_access_token.manager.key_encryption_algorithm' => ['type' => 'parameter', 'path' => '[key_encryption_algorithm]'],
57 57
             'oauth2_server.jwt_access_token.manager.content_encryption_algorithm' => ['type' => 'parameter', 'path' => '[content_encryption_algorithm]'],
58 58
             'oauth2_server.jwt_access_token.manager.claim_checkers' => ['type' => 'parameter', 'path' => '[claim_checkers]'],
59 59
             'oauth2_server.jwt_access_token.manager.header_checkers' => ['type' => 'parameter', 'path' => '[header_checkers]'],
60
-            'oauth2_server.jwt_access_token.manager.key_encryption_key_set' => ['type' => 'alias',     'path' => '[key_encryption_key_set]'],
60
+            'oauth2_server.jwt_access_token.manager.key_encryption_key_set' => ['type' => 'alias', 'path' => '[key_encryption_key_set]'],
61 61
         ];
62 62
 
63 63
         $this->loadParameters($parameters, $pluginConfiguration, $container);
Please login to merge, or discard this patch.
Plugin/SimpleStringAccessTokenPlugin/SimpleStringAccessTokenPlugin.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)
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $loader->load('services.yml');
58 58
 
59 59
         $parameters = [
60
-            'oauth2_server.simple_string_access_token.token_manager' => ['type' => 'alias',     'path' => '[manager]'],
60
+            'oauth2_server.simple_string_access_token.token_manager' => ['type' => 'alias', 'path' => '[manager]'],
61 61
             'oauth2_server.simple_string_access_token.token_class' => ['type' => 'parameter', 'path' => '[class]'],
62 62
             'oauth2_server.simple_string_access_token.min_length' => ['type' => 'parameter', 'path' => '[min_length]'],
63 63
             'oauth2_server.simple_string_access_token.max_length' => ['type' => 'parameter', 'path' => '[max_length]'],
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ->isRequired()
77 77
             ->addDefaultsIfNotSet()
78 78
             ->validate()
79
-                ->ifTrue(function ($value) {
79
+                ->ifTrue(function($value) {
80 80
                     return $value['min_length'] >= $value['max_length'];
81 81
                 })
82 82
                 ->thenInvalid('The configuration option "min_length" must be lower than "max_length".')
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 ->end()
100 100
                 ->scalarNode('class')
101 101
                     ->validate()
102
-                        ->ifTrue(function ($value) {
102
+                        ->ifTrue(function($value) {
103 103
                             return !class_exists($value);
104 104
                         })
105 105
                         ->thenInvalid('The class does not exist.')
Please login to merge, or discard this patch.
src/Bundle/Server/Plugin/ScopeManagerPlugin/ScopeManagerPlugin.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)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
         $parameters = [
49 49
             'oauth2_server.scope_manager.scope_policy' => ['type' => 'parameter', 'path' => '[policy]'],
50
-            'oauth2_server.scope.available_scope' => ['type' => 'parameter', 'path' => '[available_scope]', 'callback' => function ($value) {
50
+            'oauth2_server.scope.available_scope' => ['type' => 'parameter', 'path' => '[available_scope]', 'callback' => function($value) {
51 51
                 return array_unique($value);
52 52
             }],
53 53
         ];
Please login to merge, or discard this patch.
Bundle/Server/Plugin/AuthCodeGrantTypePlugin/AuthCodeGrantTypePlugin.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,7 +46,7 @@  discard block
 block discarded – undo
46 46
             ->isRequired()
47 47
             ->addDefaultsIfNotSet()
48 48
             ->validate()
49
-                ->ifTrue(function ($value) {
49
+                ->ifTrue(function($value) {
50 50
                     return $value['min_length'] >= $value['max_length'];
51 51
                 })
52 52
                 ->thenInvalid('The configuration option "min_length" must be lower than "max_length".')
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                     ->info('Authorization Code class.')
57 57
                     ->isRequired()
58 58
                     ->validate()
59
-                        ->ifTrue(function ($value) {
59
+                        ->ifTrue(function($value) {
60 60
                             return !class_exists($value);
61 61
                         })
62 62
                         ->thenInvalid('The class does not exist.')
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             'oauth2_server.auth_code.lifetime' => ['type' => 'parameter', 'path' => '[lifetime]'],
115 115
             'oauth2_server.auth_code.enforce_pkce' => ['type' => 'parameter', 'path' => '[enforce_pkce]'],
116 116
             'oauth2_server.auth_code.allow_public_clients' => ['type' => 'parameter', 'path' => '[allow_public_clients]'],
117
-            'oauth2_server.auth_code.manager' => ['type' => 'alias',     'path' => '[manager]'],
117
+            'oauth2_server.auth_code.manager' => ['type' => 'alias', 'path' => '[manager]'],
118 118
         ];
119 119
         $this->loadParameters($parameters, $pluginConfiguration, $container);
120 120
     }
Please login to merge, or discard this patch.
Bundle/Server/DependencyInjection/Source/ResourceServerRepositorySource.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['repository']);
49 49
                 })
50 50
                 ->thenInvalid('The option "repository" must be set.')
Please login to merge, or discard this patch.