@@ -6,17 +6,17 @@ discard block |
||
| 6 | 6 | |
| 7 | 7 | class Maker |
| 8 | 8 | { |
| 9 | - protected $countries = []; |
|
| 9 | + protected $countries = [ ]; |
|
| 10 | 10 | |
| 11 | 11 | public function lookup($locale = 'en', $flip = false) |
| 12 | 12 | { |
| 13 | 13 | $this->prep($locale); |
| 14 | 14 | |
| 15 | 15 | if ($flip) { |
| 16 | - return $this->countries[$locale]->flip(); |
|
| 16 | + return $this->countries[ $locale ]->flip(); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - return $this->countries[$locale]; |
|
| 19 | + return $this->countries[ $locale ]; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function keyValue($locale = 'en', $key = 'key', $value = 'value') |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $key = $key ?: 'key'; |
| 27 | 27 | $value = $value ?: 'value'; |
| 28 | 28 | |
| 29 | - return $this->countries[$locale]->transform(function($item, $index) use ($key, $value) { |
|
| 29 | + return $this->countries[ $locale ]->transform(function($item, $index) use ($key, $value) { |
|
| 30 | 30 | return (object) [ $key => $index, $value =>$item ]; |
| 31 | 31 | })->values(); |
| 32 | 32 | } |