@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @return array Sorted list of "accept" options |
| 21 | 21 | */ |
| 22 | -$sortAccept = function ($header) { |
|
| 22 | +$sortAccept = function($header) { |
|
| 23 | 23 | $matches = array(); |
| 24 | 24 | foreach (explode(',', $header) as $option) { |
| 25 | 25 | $option = array_map('trim', explode(';', $option)); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @return string|NULL a matched option, or NULL if no match |
| 54 | 54 | */ |
| 55 | -$matchAccept = function ($header, $supported) use ($sortAccept) { |
|
| 55 | +$matchAccept = function($header, $supported) use ($sortAccept) { |
|
| 56 | 56 | $matches = $sortAccept($header); |
| 57 | 57 | foreach ($matches as $key => $q) { |
| 58 | 58 | if (isset($supported[$key])) { |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @return string The negotiated language result or the supplied default. |
| 85 | 85 | */ |
| 86 | -$negotiateLanguage = function ($supported, $default = 'en-US') use ($matchAccept) { |
|
| 86 | +$negotiateLanguage = function($supported, $default = 'en-US') use ($matchAccept) { |
|
| 87 | 87 | $supp = array(); |
| 88 | 88 | foreach ($supported as $lang => $isSupported) { |
| 89 | 89 | if ($isSupported) { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | $pokemon->last_position->latitude = $count_data->latitude; |
| 219 | 219 | $pokemon->last_position->longitude = $count_data->longitude; |
| 220 | 220 | $pokemon->spawn_count = $count_data->count; |
| 221 | - } else{ |
|
| 221 | + } else { |
|
| 222 | 222 | $pokemon->spawn_count = $count_data->count; |
| 223 | 223 | } |
| 224 | 224 | |
@@ -19,7 +19,8 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @return array Sorted list of "accept" options |
| 21 | 21 | */ |
| 22 | -$sortAccept = function ($header) { |
|
| 22 | +$sortAccept = function ($header) |
|
| 23 | +{ |
|
| 23 | 24 | $matches = array(); |
| 24 | 25 | foreach (explode(',', $header) as $option) { |
| 25 | 26 | $option = array_map('trim', explode(';', $option)); |
@@ -52,7 +53,8 @@ discard block |
||
| 52 | 53 | * |
| 53 | 54 | * @return string|NULL a matched option, or NULL if no match |
| 54 | 55 | */ |
| 55 | -$matchAccept = function ($header, $supported) use ($sortAccept) { |
|
| 56 | +$matchAccept = function ($header, $supported) use ($sortAccept) |
|
| 57 | +{ |
|
| 56 | 58 | $matches = $sortAccept($header); |
| 57 | 59 | foreach ($matches as $key => $q) { |
| 58 | 60 | if (isset($supported[$key])) { |
@@ -83,7 +85,8 @@ discard block |
||
| 83 | 85 | * |
| 84 | 86 | * @return string The negotiated language result or the supplied default. |
| 85 | 87 | */ |
| 86 | -$negotiateLanguage = function ($supported, $default = 'en-US') use ($matchAccept) { |
|
| 88 | +$negotiateLanguage = function ($supported, $default = 'en-US') use ($matchAccept) |
|
| 89 | +{ |
|
| 87 | 90 | $supp = array(); |
| 88 | 91 | foreach ($supported as $lang => $isSupported) { |
| 89 | 92 | if ($isSupported) { |
@@ -218,7 +221,7 @@ discard block |
||
| 218 | 221 | $pokemon->last_position->latitude = $count_data->latitude; |
| 219 | 222 | $pokemon->last_position->longitude = $count_data->longitude; |
| 220 | 223 | $pokemon->spawn_count = $count_data->count; |
| 221 | - } else{ |
|
| 224 | + } else { |
|
| 222 | 225 | $pokemon->spawn_count = $count_data->count; |
| 223 | 226 | } |
| 224 | 227 | |
@@ -53,10 +53,10 @@ |
||
| 53 | 53 | $pokedatas = json_decode(file_get_contents($pokemonstats_file), true); |
| 54 | 54 | } |
| 55 | 55 | if (is_file($pokedex_counts_file)) { |
| 56 | - $pokecountdatas = json_decode(file_get_contents($pokedex_counts_file), true); |
|
| 56 | + $pokecountdatas = json_decode(file_get_contents($pokedex_counts_file), true); |
|
| 57 | 57 | } |
| 58 | 58 | if (is_file($pokedex_raids_file)) { |
| 59 | - $raiddatas = json_decode(file_get_contents($pokedex_raids_file), true); |
|
| 59 | + $raiddatas = json_decode(file_get_contents($pokedex_raids_file), true); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | |