Completed
Push — master ( 98cdcc...da5e0a )
by Terrence
04:59
created
src/Provider/CILogon.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,18 +93,18 @@
 block discarded – undo
93 93
     protected function checkResponse(ResponseInterface $response, $data)
94 94
     {
95 95
         if ((gettype($data) == 'string') &&
96
-            (preg_match('/error="([^"]*)"/',$data,$matches))) {
96
+            (preg_match('/error="([^"]*)"/', $data, $matches))) {
97 97
             $message = $matches[1];
98
-            if (preg_match('/error_description="([^"]*)"/',$data,$matches)) {
99
-                $message .= ': ' . urldecode($matches[1]);
98
+            if (preg_match('/error_description="([^"]*)"/', $data, $matches)) {
99
+                $message .= ': '.urldecode($matches[1]);
100 100
             }
101
-            throw new IdentityProviderException($message,0,$data);
101
+            throw new IdentityProviderException($message, 0, $data);
102 102
         } elseif (!empty($data['error'])) {
103 103
             $message = $data['error'];
104 104
             if (!empty($data['error_description'])) {
105
-                $message .= ': ' . $data['error_description'];
105
+                $message .= ': '.$data['error_description'];
106 106
             }
107
-            throw new IdentityProviderException($message,0,$data);
107
+            throw new IdentityProviderException($message, 0, $data);
108 108
         }
109 109
     }
110 110
 
Please login to merge, or discard this patch.