@@ -209,12 +209,10 @@ discard block |
||
| 209 | 209 | throw new OAuthException('invalid_request', 'The request includes the invalid parameter redirect_uri.', |
| 210 | 210 | 'https://tools.ietf.org/html/rfc6749#section-4.1'); |
| 211 | 211 | } |
| 212 | - } |
|
| 213 | - else { |
|
| 212 | + } else { |
|
| 214 | 213 | if (count($redirectUris) == 1) { |
| 215 | 214 | $redirectUri = $redirectUris[0]; |
| 216 | - } |
|
| 217 | - else { |
|
| 215 | + } else { |
|
| 218 | 216 | throw new OAuthException('invalid_request', 'The request is missing the required parameter redirect_uri.', |
| 219 | 217 | 'https://tools.ietf.org/html/rfc6749#section-4.1'); |
| 220 | 218 | } |
@@ -222,8 +220,7 @@ discard block |
||
| 222 | 220 | try { |
| 223 | 221 | |
| 224 | 222 | $this->redirectUri = new Uri($redirectUri); |
| 225 | - } |
|
| 226 | - catch (\InvalidArgumentException $e) { |
|
| 223 | + } catch (\InvalidArgumentException $e) { |
|
| 227 | 224 | throw new OAuthException('invalid_request', 'The request includes the malformed parameter redirect_uri.', |
| 228 | 225 | 'https://tools.ietf.org/html/rfc6749#section-4.1'); |
| 229 | 226 | } |