Passed
Push — master ( 720304...81d426 )
by Tomasz
05:16 queued 48s
created
core/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
                 }
187 187
                 $lookFor .= "$name";
188 188
             }
189
-            $finding = preg_match("/^(".$lookFor."):(.*)/", $oneRow->user_id, $matches);
189
+            $finding = preg_match("/^(" . $lookFor . "):(.*)/", $oneRow->user_id, $matches);
190 190
             if ($finding === 0 || $finding === FALSE) {
191 191
                 return FALSE;
192 192
             }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                             $url = CONFIG_DIAGNOSTICS['eduGainResolver']['url'] . "?action=get_entity_name&type=idp&e_id=$idp&lang=pl";
208 208
                             $ch = curl_init($url);
209 209
                             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
210
-                            curl_setopt($ch,CURLOPT_TIMEOUT, CONFIG_DIAGNOSTICS['eduGainResolver']['timeout']);
210
+                            curl_setopt($ch, CURLOPT_TIMEOUT, CONFIG_DIAGNOSTICS['eduGainResolver']['timeout']);
211 211
                             $response = curl_exec($ch);
212 212
                             if ($response == FALSE) {
213 213
                                 $skipCurl = 1;
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                 case $providerStrings[3]:
225 225
                 case $providerStrings[4]:
226 226
                 case $providerStrings[5]:
227
-                    if (!in_array(User::PROVIDER_STRINGS[$matches[1]],$listOfProviders)) {
227
+                    if (!in_array(User::PROVIDER_STRINGS[$matches[1]], $listOfProviders)) {
228 228
                         $providerName = $this->getEdugainName(User::PROVIDER_STRINGS[$matches[1]]);
229 229
                         $listOfProviders[] = User::PROVIDER_STRINGS[$matches[1]];
230 230
                     }
Please login to merge, or discard this patch.