@@ -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) { |
@@ -317,17 +317,17 @@ |
||
| 317 | 317 | <p class="pkmn-name"> |
| 318 | 318 | <?php |
| 319 | 319 | if (isset($obj->candies)) { |
| 320 | - echo $obj->candies . ' ' . $locales->POKEMON_CANDIES; |
|
| 320 | + echo $obj->candies.' '.$locales->POKEMON_CANDIES; |
|
| 321 | 321 | } else { |
| 322 | - echo '? ' . $locales->POKEMON_CANDIES; |
|
| 322 | + echo '? '.$locales->POKEMON_CANDIES; |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | if (isset($obj->item)) { |
| 326 | - $itemName = 'ITEM_' . $obj->item; |
|
| 327 | - echo '<br>+ ' . $locales->$itemName; |
|
| 326 | + $itemName = 'ITEM_'.$obj->item; |
|
| 327 | + echo '<br>+ '.$locales->$itemName; |
|
| 328 | 328 | } elseif (isset($obj->info)) { |
| 329 | - $infoName = 'INFO_' . $obj->info; |
|
| 330 | - echo '<br>(' . $locales->$infoName . ')'; |
|
| 329 | + $infoName = 'INFO_'.$obj->info; |
|
| 330 | + echo '<br>('.$locales->$infoName.')'; |
|
| 331 | 331 | } |
| 332 | 332 | else { |
| 333 | 333 | echo '<br> </br>'; |