@@ -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(), |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function boot() |
| 31 | 31 | { |
| 32 | - $this->app['events']->listen(LocaleUpdated::class, function ($locale) { |
|
| 32 | + $this->app['events']->listen(LocaleUpdated::class, function($locale) { |
|
| 33 | 33 | $this->setLocale(); |
| 34 | 34 | }); |
| 35 | 35 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | protected function registerCountry() |
| 45 | 45 | { |
| 46 | - $this->app->singleton(Country::class, function ($app) { |
|
| 46 | + $this->app->singleton(Country::class, function($app) { |
|
| 47 | 47 | $repository = new Country; |
| 48 | 48 | |
| 49 | 49 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | protected function registerCurrency() |
| 61 | 61 | { |
| 62 | - $this->app->singleton(Currency::class, function ($app) { |
|
| 62 | + $this->app->singleton(Currency::class, function($app) { |
|
| 63 | 63 | $repository = new Currency; |
| 64 | 64 | |
| 65 | 65 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function registerLanguage() |
| 77 | 77 | { |
| 78 | - $this->app->singleton(Language::class, function ($app) { |
|
| 78 | + $this->app->singleton(Language::class, function($app) { |
|
| 79 | 79 | $repository = new Language; |
| 80 | 80 | |
| 81 | 81 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function registerNumber() |
| 93 | 93 | { |
| 94 | - $this->app->singleton(Number::class, function ($app) { |
|
| 94 | + $this->app->singleton(Number::class, function($app) { |
|
| 95 | 95 | $repository = new Number; |
| 96 | 96 | |
| 97 | 97 | return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | { |
| 110 | 110 | $this->app->register(DateServiceProvider::class); |
| 111 | 111 | |
| 112 | - require __DIR__.'/Macros/Carbon.php'; |
|
| 112 | + require __DIR__ . '/Macros/Carbon.php'; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use Jenssegers\Date\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 | * |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | -if (! function_exists('language')) { |
|
| 58 | +if (!function_exists('language')) { |
|
| 59 | 59 | /** |
| 60 | 60 | * Get a localized language name. |
| 61 | 61 | * |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | -if (! function_exists('number')) { |
|
| 75 | +if (!function_exists('number')) { |
|
| 76 | 76 | /** |
| 77 | 77 | * Get a formatted localized number. |
| 78 | 78 | * |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Carbon extends Date |
| 8 | 8 | { |
| 9 | - // This is merely a namespace wrapper. |
|
| 9 | + // This is merely a namespace wrapper. |
|
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |