Passed
Pull Request — master (#1)
by
unknown
07:59
created
lib/Auth/Process/SmartID.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
             }
90 90
         }
91 91
 
92
-	if (array_key_exists('fail_if_empty', $config)) {
93
-	    $this->fail_if_empty = $config['fail_if_empty'];
92
+    if (array_key_exists('fail_if_empty', $config)) {
93
+        $this->fail_if_empty = $config['fail_if_empty'];
94 94
             if (!is_bool($this->fail_if_empty)) {
95
-               throw new Exception('SmartID authproc configuration error: \'fail_if_empty\' should be a boolean.');
95
+                throw new Exception('SmartID authproc configuration error: \'fail_if_empty\' should be a boolean.');
96 96
             }
97 97
         }
98 98
     }
@@ -120,16 +120,16 @@  discard block
 block discarded – undo
120 120
         /*
121 121
          * At this stage no usable id_candidate has been detected.
122 122
          */
123
-	if ($this->fail_if_empty) {
124
-	     throw new \SimpleSAML\Error\Exception('This service needs at least one of the following
123
+    if ($this->fail_if_empty) {
124
+            throw new \SimpleSAML\Error\Exception('This service needs at least one of the following
125 125
             attributes to identity users: '.implode(', ', $this->candidates).'. Unfortunately not
126 126
             one of them was detected. Please ask your institution administrator to release one of
127 127
             them, or try using another identity provider.');
128 128
         } else {
129
-	    // return an empty identifier, missing id attribute must be handled
130
-	    // by another authproc filter
129
+        // return an empty identifier, missing id attribute must be handled
130
+        // by another authproc filter
131 131
             return ''; 
132
-	}
132
+    }
133 133
     }
134 134
 
135 135
 
Please login to merge, or discard this patch.