@@ -28,7 +28,7 @@ |
||
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; |
@@ -30,7 +30,7 @@ |
||
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; |
@@ -101,7 +101,7 @@ discard block |
||
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 |
||
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 | } |