@@ -47,7 +47,7 @@ |
||
| 47 | 47 | if (trim($lines[$x + 1]) != '|-') { |
| 48 | 48 | $x++; |
| 49 | 49 | if (trim(mb_substr($lines[$x], 1)) != '') { |
| 50 | - $notes .= ($years != '' ? $years.' ' : '') . trim(mb_substr($lines[$x], 1)); |
|
| 50 | + $notes .= ($years != '' ? $years.' ' : '').trim(mb_substr($lines[$x], 1)); |
|
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | } |
@@ -8,8 +8,7 @@ discard block |
||
| 8 | 8 | * @return array |
| 9 | 9 | * @internal param mixed $ |
| 10 | 10 | */ |
| 11 | -function get_codes_from($what, $codes, $iso) |
|
| 12 | -{ |
|
| 11 | +function get_codes_from($what, $codes, $iso) { |
|
| 13 | 12 | $what = explode(',', $what); |
| 14 | 13 | foreach ($what as $eachArea) { |
| 15 | 14 | if (trim($eachArea) != '' && trim($eachArea) != '- no codes -') { |
@@ -38,7 +37,7 @@ discard block |
||
| 38 | 37 | $area = ''; |
| 39 | 38 | $street = ''; |
| 40 | 39 | $notes = array_key_exists($iso, $out) ? $out[$iso]['notes'] : ''; |
| 41 | - if (trim($lines[$x + 1]) != '|-') { |
|
| 40 | + if (trim($lines[$x + 1]) != '|-') { |
|
| 42 | 41 | $x++; |
| 43 | 42 | $area = trim(mb_substr($lines[$x], 1)); |
| 44 | 43 | if (trim($lines[$x + 1]) != '|-') { |