Passed
Pull Request — master (#7)
by Tim
07:28 queued 05:39
created
src/Auth/Source/Radius.php 1 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.