@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | foreach ($idps as $idp) { |
38 | 38 | $idpTitle[$idp['entityID']] = $idp['title']; |
39 | 39 | $d = self::getIdpDistance($idp, $here); |
40 | - $resultSet[$idp['entityID']] = $d . " " . $idp['title']; |
|
40 | + $resultSet[$idp['entityID']] = $d." ".$idp['title']; |
|
41 | 41 | } |
42 | 42 | asort($resultSet); |
43 | 43 | $outarray = []; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $allIDPs = ($country != "" ? $handle->exec($query, "s", $country) : $handle->exec($query)); |
80 | 80 | $returnarray = []; |
81 | 81 | // SELECTs never return a booleans, always an object |
82 | - $i=0; |
|
82 | + $i = 0; |
|
83 | 83 | while ($queryResult = mysqli_fetch_object(/** @scrutinizer ignore-type */ $allIDPs)) { |
84 | 84 | $i++; |
85 | 85 | $institutionOptions = explode('---', $queryResult->options); |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $geo = []; |
178 | 178 | $names = []; |
179 | 179 | $oneInstitutionResult['country'] = strtoupper($queryResult->country); |
180 | - $oneInstitutionResult['entityID'] = (int)$queryResult->inst_id; |
|
180 | + $oneInstitutionResult['entityID'] = (int) $queryResult->inst_id; |
|
181 | 181 | |
182 | 182 | foreach ($institutionOptions as $institutionOption) { |
183 | 183 | $opt = explode('===', $institutionOption); |
@@ -201,10 +201,10 @@ discard block |
||
201 | 201 | } |
202 | 202 | $oneInstitutionResult['names'] = $names; |
203 | 203 | if (count($geo) > 0) { |
204 | - $geoArray=[]; |
|
204 | + $geoArray = []; |
|
205 | 205 | foreach ($geo as $coords) { |
206 | - $geoArray[] = ['lon' => (float)$coords['lon'], |
|
207 | - 'lat' => (float)$coords['lat']]; |
|
206 | + $geoArray[] = ['lon' => (float) $coords['lon'], |
|
207 | + 'lat' => (float) $coords['lat']]; |
|
208 | 208 | } |
209 | 209 | $oneInstitutionResult['geo'] = $geoArray; |
210 | 210 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | } |
249 | 249 | break; |
250 | 250 | case 'device-specific:redirect': |
251 | - $redirect = $opt[1] . ':' . $queryResult->device_id; |
|
251 | + $redirect = $opt[1].':'.$queryResult->device_id; |
|
252 | 252 | |
253 | 253 | break; |
254 | 254 | case 'profile:name': |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | if ($productionProfile) { |
265 | 265 | $idpArray[$idpId]['profiles'][] = |
266 | - ['id'=> (int)$queryResult->profile_id, |
|
266 | + ['id'=> (int) $queryResult->profile_id, |
|
267 | 267 | 'names'=> $profileNames, |
268 | 268 | 'redirect'=>$redirect]; |
269 | 269 | } |