@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function loadAllCountries() |
| 27 | 27 | { |
| 28 | 28 | return json_decode( |
| 29 | - file_get_contents($this->path.DIRECTORY_SEPARATOR.self::ALL_COUNTRIES_FILE), |
|
| 29 | + file_get_contents($this->path . DIRECTORY_SEPARATOR . self::ALL_COUNTRIES_FILE), |
|
| 30 | 30 | true |
| 31 | 31 | ); |
| 32 | 32 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | if (!$country) { |
| 42 | 42 | return; |
| 43 | 43 | } |
| 44 | - $file = $this->path.DIRECTORY_SEPARATOR.sprintf(self::COUNTRY_FILE, $country); |
|
| 44 | + $file = $this->path . DIRECTORY_SEPARATOR . sprintf(self::COUNTRY_FILE, $country); |
|
| 45 | 45 | if (!file_exists($file)) { |
| 46 | 46 | return; |
| 47 | 47 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | if (!$country) { |
| 63 | 63 | return; |
| 64 | 64 | } |
| 65 | - $file = $this->path.DIRECTORY_SEPARATOR.sprintf(self::COUNTRY_POLYGON_FILE, $country); |
|
| 65 | + $file = $this->path . DIRECTORY_SEPARATOR . sprintf(self::COUNTRY_POLYGON_FILE, $country); |
|
| 66 | 66 | if (!file_exists($file)) { |
| 67 | 67 | return; |
| 68 | 68 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function loadAllRegions() |
| 27 | 27 | { |
| 28 | 28 | return json_decode( |
| 29 | - file_get_contents($this->path.DIRECTORY_SEPARATOR.self::ALL_REGIONS_FILE), |
|
| 29 | + file_get_contents($this->path . DIRECTORY_SEPARATOR . self::ALL_REGIONS_FILE), |
|
| 30 | 30 | true |
| 31 | 31 | ); |
| 32 | 32 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | { |
| 41 | 41 | return json_decode( |
| 42 | 42 | file_get_contents( |
| 43 | - $this->path.DIRECTORY_SEPARATOR.sprintf(self::REGION_FILE, $region) |
|
| 43 | + $this->path . DIRECTORY_SEPARATOR . sprintf(self::REGION_FILE, $region) |
|
| 44 | 44 | ), |
| 45 | 45 | true |
| 46 | 46 | ); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | return json_decode( |
| 57 | 57 | file_get_contents( |
| 58 | - $this->path.DIRECTORY_SEPARATOR.sprintf(self::REGION_POLYGON_FILE, $region) |
|
| 58 | + $this->path . DIRECTORY_SEPARATOR . sprintf(self::REGION_POLYGON_FILE, $region) |
|
| 59 | 59 | ), |
| 60 | 60 | true |
| 61 | 61 | ); |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | if (!isset($value) && isset($method)) { |
| 96 | - $value = call_user_func([$item, 'get'.current($keys)]); |
|
| 96 | + $value = call_user_func([$item, 'get' . current($keys)]); |
|
| 97 | 97 | } elseif (!isset($value) && property_exists($item, $currentKey)) { |
| 98 | 98 | $value = $item->{$currentKey}; |
| 99 | 99 | } |