@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function registerCountry() |
40 | 40 | { |
41 | - $this->app->singleton(Country::class, function ($app) { |
|
41 | + $this->app->singleton(Country::class, function($app) { |
|
42 | 42 | $repository = new Country; |
43 | 43 | |
44 | 44 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function registerCurrency() |
56 | 56 | { |
57 | - $this->app->singleton(Currency::class, function ($app) { |
|
57 | + $this->app->singleton(Currency::class, function($app) { |
|
58 | 58 | $repository = new Currency; |
59 | 59 | |
60 | 60 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function registerLanguage() |
72 | 72 | { |
73 | - $this->app->singleton(Language::class, function ($app) { |
|
73 | + $this->app->singleton(Language::class, function($app) { |
|
74 | 74 | $repository = new Language; |
75 | 75 | |
76 | 76 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function registerNumber() |
88 | 88 | { |
89 | - $this->app->singleton(Number::class, function ($app) { |
|
89 | + $this->app->singleton(Number::class, function($app) { |
|
90 | 90 | $repository = new Number; |
91 | 91 | |
92 | 92 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | { |
105 | 105 | $this->app->register(DateServiceProvider::class); |
106 | 106 | |
107 | - $this->app->singleton(Date::class, function ($app) { |
|
107 | + $this->app->singleton(Date::class, function($app) { |
|
108 | 108 | $repository = new Date; |
109 | 109 | |
110 | 110 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('country')) { |
|
3 | +if (!function_exists('country')) { |
|
4 | 4 | /** |
5 | 5 | * Get a localized country name. |
6 | 6 | * |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | } |
18 | 18 | } |
19 | 19 | |
20 | -if (! function_exists('currency')) { |
|
20 | +if (!function_exists('currency')) { |
|
21 | 21 | /** |
22 | 22 | * Get a localized currency or currency amount. |
23 | 23 | * |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
42 | -if (! function_exists('carbon')) { |
|
42 | +if (!function_exists('carbon')) { |
|
43 | 43 | /** |
44 | 44 | * Get a localized Carbon instance. |
45 | 45 | * |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | -if (! function_exists('language')) { |
|
56 | +if (!function_exists('language')) { |
|
57 | 57 | /** |
58 | 58 | * Get a localized language name. |
59 | 59 | * |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | -if (! function_exists('number')) { |
|
73 | +if (!function_exists('number')) { |
|
74 | 74 | /** |
75 | 75 | * Get a formatted localized number. |
76 | 76 | * |
@@ -132,7 +132,7 @@ |
||
132 | 132 | { |
133 | 133 | $key = $this->getLocalesKey($locale, $fallbackLocale); |
134 | 134 | |
135 | - if (! isset($this->repositories[$key])) { |
|
135 | + if (!isset($this->repositories[$key])) { |
|
136 | 136 | $this->formatters[$key] = new NumberFormatter(new NumberFormatRepository($fallbackLocale), ['locale' => $locale]); |
137 | 137 | } |
138 | 138 | } |
@@ -186,11 +186,11 @@ |
||
186 | 186 | { |
187 | 187 | $key = $this->getLocalesKey($locale, $fallbackLocale); |
188 | 188 | |
189 | - if (! isset($this->data[$key])) { |
|
189 | + if (!isset($this->data[$key])) { |
|
190 | 190 | $this->data[$key] = new CurrencyRepository($locale, $fallbackLocale); |
191 | 191 | } |
192 | 192 | |
193 | - if (! isset($this->formatters[$key])) { |
|
193 | + if (!isset($this->formatters[$key])) { |
|
194 | 194 | $this->formatters[$key] = new CurrencyFormatter( |
195 | 195 | new NumberFormatRepository($fallbackLocale), |
196 | 196 | $this->data[$key], |
@@ -118,8 +118,8 @@ |
||
118 | 118 | */ |
119 | 119 | protected function load($locale) |
120 | 120 | { |
121 | - if (! isset($this->data[$locale])) { |
|
122 | - $path = base_path('vendor/umpirsky/locale-list/data/'.$locale.'/locales.php'); |
|
121 | + if (!isset($this->data[$locale])) { |
|
122 | + $path = base_path('vendor/umpirsky/locale-list/data/' . $locale . '/locales.php'); |
|
123 | 123 | |
124 | 124 | $this->data[$locale] = is_file($path) ? require $path : []; |
125 | 125 | } |
@@ -118,8 +118,8 @@ |
||
118 | 118 | */ |
119 | 119 | protected function load($locale) |
120 | 120 | { |
121 | - if (! isset($this->data[$locale])) { |
|
122 | - $path = base_path('vendor/umpirsky/country-list/data/'.$locale.'/country.php'); |
|
121 | + if (!isset($this->data[$locale])) { |
|
122 | + $path = base_path('vendor/umpirsky/country-list/data/' . $locale . '/country.php'); |
|
123 | 123 | |
124 | 124 | $this->data[$locale] = is_file($path) ? require $path : []; |
125 | 125 | } |