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