@@ -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']); |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $fallbackLocale = $this->getFallbackLocale() |
| 89 | 89 | ); |
| 90 | 90 | |
| 91 | - if (! isset($this->formatters[$key])) { |
|
| 91 | + if (!isset($this->formatters[$key])) { |
|
| 92 | 92 | $this->formatters[$key] = new NumberFormatter(new NumberFormatRepository($fallbackLocale), ['locale' => $locale]); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -60,8 +60,8 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected function data($locale) |
| 62 | 62 | { |
| 63 | - if (! isset($this->data[$locale])) { |
|
| 64 | - $path = base_path('vendor/umpirsky/country-list/data/'.$locale.'/country.php'); |
|
| 63 | + if (!isset($this->data[$locale])) { |
|
| 64 | + $path = base_path('vendor/umpirsky/country-list/data/' . $locale . '/country.php'); |
|
| 65 | 65 | |
| 66 | 66 | $this->data[$locale] = is_file($path) ? require $path : []; |
| 67 | 67 | } |
@@ -60,8 +60,8 @@ |
||
| 60 | 60 | */ |
| 61 | 61 | protected function data($locale) |
| 62 | 62 | { |
| 63 | - if (! isset($this->data[$locale])) { |
|
| 64 | - $path = base_path('vendor/umpirsky/locale-list/data/'.$locale.'/locales.php'); |
|
| 63 | + if (!isset($this->data[$locale])) { |
|
| 64 | + $path = base_path('vendor/umpirsky/locale-list/data/' . $locale . '/locales.php'); |
|
| 65 | 65 | |
| 66 | 66 | $this->data[$locale] = is_file($path) ? require $path : []; |
| 67 | 67 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $fallbackLocale = $this->getFallbackLocale() |
| 143 | 143 | ); |
| 144 | 144 | |
| 145 | - if (! isset($this->data[$key])) { |
|
| 145 | + if (!isset($this->data[$key])) { |
|
| 146 | 146 | $this->data[$key] = new CurrencyRepository($locale, $fallbackLocale); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | $fallbackLocale = $this->getFallbackLocale() |
| 162 | 162 | ); |
| 163 | 163 | |
| 164 | - if (! isset($this->formatters[$key])) { |
|
| 164 | + if (!isset($this->formatters[$key])) { |
|
| 165 | 165 | $this->formatters[$key] = new CurrencyFormatter( |
| 166 | 166 | new NumberFormatRepository($fallbackLocale), |
| 167 | 167 | $this->data(), |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Propaganistas\LaravelIntl\Date; |
| 4 | 4 | |
| 5 | -if (! function_exists('country')) { |
|
| 5 | +if (!function_exists('country')) { |
|
| 6 | 6 | /** |
| 7 | 7 | * Get a localized country name. |
| 8 | 8 | * |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | -if (! function_exists('currency')) { |
|
| 22 | +if (!function_exists('currency')) { |
|
| 23 | 23 | /** |
| 24 | 24 | * Get a localized currency or currency amount. |
| 25 | 25 | * |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | -if (! function_exists('carbon')) { |
|
| 44 | +if (!function_exists('carbon')) { |
|
| 45 | 45 | /** |
| 46 | 46 | * Get a localized Carbon instance. |
| 47 | 47 | * |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | -if (! function_exists('language')) { |
|
| 62 | +if (!function_exists('language')) { |
|
| 63 | 63 | /** |
| 64 | 64 | * Get a localized language name. |
| 65 | 65 | * |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | -if (! function_exists('number')) { |
|
| 79 | +if (!function_exists('number')) { |
|
| 80 | 80 | /** |
| 81 | 81 | * Get a formatted localized number. |
| 82 | 82 | * |
@@ -343,7 +343,7 @@ |
||
| 343 | 343 | |
| 344 | 344 | $carbon = $this; |
| 345 | 345 | |
| 346 | - return call_user_func(function () use ($carbon) { |
|
| 346 | + return call_user_func(function() use ($carbon) { |
|
| 347 | 347 | return get_object_vars($carbon); |
| 348 | 348 | }); |
| 349 | 349 | } |