Passed
Pull Request — master (#7)
by Tim
07:28 queued 05:39
created
src/Auth/Source/Radius.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
 
171 171
         if ($response === false) {
172 172
             $errorCode = $radius->getErrorCode();
173
-            switch($errorCode) {
173
+            switch ($errorCode) {
174 174
                 case $radius::TYPE_ACCESS_REJECT:
175 175
                     throw new \SimpleSAML\Error\Error('WRONGUSERPASS');
176 176
                 case $radius::TYPE_ACCESS_CHALLENGE:
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -197,15 +197,15 @@
 block discarded – undo
197 197
              * therefore done now.
198 198
              */
199 199
             return $attributes;
200
-           } else {
201
-               foreach ($radius->getReceivedAttributes() as $content) {
202
-                   if ($content[0] == 26) { // is a Vendor-Specific attribute
203
-                       $vsa = $radius->decodeVendorSpecificContent($content[1]);
204
-                       if ($vsa[0][0] === $this->vendor && $vsa[0][1] === $this->vendorType) { // matches configured Vendor and Type
205
-                           $decomposed = explode("=", $vsa[0][2], 2); // SAML attributes expected in a URN=value, so split at first =
206
-                           $attributes[$decomposed[0]][] = $decomposed[1];
207
-                       }
208
-                   }
200
+            } else {
201
+                foreach ($radius->getReceivedAttributes() as $content) {
202
+                    if ($content[0] == 26) { // is a Vendor-Specific attribute
203
+                        $vsa = $radius->decodeVendorSpecificContent($content[1]);
204
+                        if ($vsa[0][0] === $this->vendor && $vsa[0][1] === $this->vendorType) { // matches configured Vendor and Type
205
+                            $decomposed = explode("=", $vsa[0][2], 2); // SAML attributes expected in a URN=value, so split at first =
206
+                            $attributes[$decomposed[0]][] = $decomposed[1];
207
+                        }
208
+                    }
209 209
                 }
210 210
             }
211 211
         }
Please login to merge, or discard this patch.