@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace PragmaRX\Countries\Package\Data; |
| 4 | 4 | |
| 5 | 5 | use IlluminateAgnostic\Str\Support\Str; |
| 6 | +use PragmaRX\Countries\Package\Services\Cache\Service as Cache; |
|
| 6 | 7 | use PragmaRX\Countries\Package\Services\Helper; |
| 7 | 8 | use PragmaRX\Countries\Package\Services\Hydrator; |
| 8 | 9 | use Psr\SimpleCache\CacheInterface as CacheContract; |
| 9 | -use PragmaRX\Countries\Package\Services\Cache\Service as Cache; |
|
| 10 | 10 | |
| 11 | 11 | class Repository |
| 12 | 12 | { |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | { |
| 149 | 149 | $this->countriesJson = $this->loadCountriesJson(); |
| 150 | 150 | |
| 151 | - $overload = $this->helper->loadJsonFiles($this->helper->dataDir('countries/overload'))->mapWithKeys(function ($country, $code) { |
|
| 151 | + $overload = $this->helper->loadJsonFiles($this->helper->dataDir('countries/overload'))->mapWithKeys(function($country, $code) { |
|
| 152 | 152 | return [Str::upper($code) => $country]; |
| 153 | 153 | }); |
| 154 | 154 | |
@@ -207,11 +207,11 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function currencies() |
| 209 | 209 | { |
| 210 | - $currencies = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/default'))->mapWithKeys(function ($country, $code) { |
|
| 210 | + $currencies = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/default'))->mapWithKeys(function($country, $code) { |
|
| 211 | 211 | return [upper($code) => $country]; |
| 212 | 212 | }); |
| 213 | 213 | |
| 214 | - $overload = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/overload'))->mapWithKeys(function ($country, $code) { |
|
| 214 | + $overload = $this->helper->loadJsonFiles($this->helper->dataDir('currencies/overload'))->mapWithKeys(function($country, $code) { |
|
| 215 | 215 | return [upper($code) => $country]; |
| 216 | 216 | }); |
| 217 | 217 | |