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