Completed
Push — master ( 64cd9f...411f65 )
by Alexandre
02:13
created
src/OAuth2/Endpoints/AuthorizationEndpoint.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -207,12 +207,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.