Passed
Branch master (30661f)
by Alexandre
03:15
created
src/ScopePolicy/Policies/IgnoreScopePolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
     public function __construct(array $scopes)
30 30
     {
31
-        if(empty($scopes)) {
31
+        if (empty($scopes)) {
32 32
             throw new \InvalidArgumentException('Scope must not be an empty array');
33 33
         }
34 34
         $this->scopes = $scopes;
Please login to merge, or discard this patch.
src/ScopePolicy/Policies/DefaultScopePolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function __construct(array $scopes)
32 32
     {
33
-        if(empty($scopes)) {
33
+        if (empty($scopes)) {
34 34
             throw new \InvalidArgumentException('Scope must not be an empty array');
35 35
         }
36 36
         $this->scopes = $scopes;
Please login to merge, or discard this patch.
src/ScopePolicy/ScopePolicyManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         if (!empty($supportedScopes)) {
102 102
             if (!empty(array_diff($scopes, $supportedScopes))) {
103 103
                 throw new OAuthException('invalid_scope',
104
-                    'The request scope is invalid. Supported scopes : ' . implode(', ', $supportedScopes),
104
+                    'The request scope is invalid. Supported scopes : '.implode(', ', $supportedScopes),
105 105
                     'https://tools.ietf.org/html/rfc6749#section-4.1');
106 106
             }
107 107
         }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         if ($client instanceof RegisteredClient && !empty($supportedScopes)) {
128 128
             if (!empty(array_diff($scopes, $supportedScopes))) {
129 129
                 throw new OAuthException('invalid_scope',
130
-                    'The request scope is invalid. Supported scopes : ' . implode(', ', $supportedScopes),
130
+                    'The request scope is invalid. Supported scopes : '.implode(', ', $supportedScopes),
131 131
                     'https://tools.ietf.org/html/rfc6749#section-4.1');
132 132
             }
133 133
         }
Please login to merge, or discard this patch.