@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | protected function registerCountryRepository() |
| 44 | 44 | { |
| 45 | - $this->app->singleton(CountryRepository::class, function ($app) { |
|
| 45 | + $this->app->singleton(CountryRepository::class, function($app) { |
|
| 46 | 46 | $repository = new CountryRepository; |
| 47 | 47 | $repository->setDefaultLocale($app['config']['app.locale']); |
| 48 | 48 | $repository->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | protected function registerCurrencyRepository() |
| 62 | 62 | { |
| 63 | - $this->app->singleton(CurrencyRepository::class, function ($app) { |
|
| 63 | + $this->app->singleton(CurrencyRepository::class, function($app) { |
|
| 64 | 64 | $repository = new CurrencyRepository; |
| 65 | 65 | $repository->setDefaultLocale($app['config']['app.locale']); |
| 66 | 66 | $repository->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | */ |
| 79 | 79 | protected function registerLanguageRepository() |
| 80 | 80 | { |
| 81 | - $this->app->singleton(LanguageRepository::class, function ($app) { |
|
| 81 | + $this->app->singleton(LanguageRepository::class, function($app) { |
|
| 82 | 82 | $repository = new LanguageRepository; |
| 83 | 83 | $repository->setDefaultLocale($app['config']['app.locale']); |
| 84 | 84 | $repository->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | protected function registerNumberRepository() |
| 98 | 98 | { |
| 99 | - $this->app->singleton(NumberFormatRepository::class, function ($app) { |
|
| 99 | + $this->app->singleton(NumberFormatRepository::class, function($app) { |
|
| 100 | 100 | $repository = new NumberFormatRepository; |
| 101 | 101 | $repository->setDefaultLocale($app['config']['app.locale']); |
| 102 | 102 | $repository->setFallbackLocale($app['config']['app.fallback_locale']); |
@@ -116,11 +116,11 @@ discard block |
||
| 116 | 116 | { |
| 117 | 117 | $this->app->register(DateServiceProvider::class); |
| 118 | 118 | |
| 119 | - $this->app->booted(function ($app) { |
|
| 119 | + $this->app->booted(function($app) { |
|
| 120 | 120 | \Jenssegers\Date\Date::setFallbackLocale($app['config']['app.fallback_locale']); |
| 121 | 121 | }); |
| 122 | 122 | |
| 123 | - $this->app->singleton(Carbon::class, function () { |
|
| 123 | + $this->app->singleton(Carbon::class, function() { |
|
| 124 | 124 | return new Date; |
| 125 | 125 | }); |
| 126 | 126 | |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * Get a localized entry. |
| 73 | 73 | * |
| 74 | 74 | * @param string|null $code |
| 75 | - * @return mixed |
|
| 75 | + * @return \CommerceGuys\Intl\NumberFormat\NumberFormatInterface |
|
| 76 | 76 | */ |
| 77 | 77 | public function get($code = null) |
| 78 | 78 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use CommerceGuys\Intl\NumberFormat\NumberFormat; |
| 5 | 5 | use CommerceGuys\Intl\NumberFormat\NumberFormatRepository; |
| 6 | 6 | use Propaganistas\LaravelIntl\Base\Intl; |
| 7 | -use ReflectionClass; |
|
| 8 | 7 | |
| 9 | 8 | class Number extends Intl |
| 10 | 9 | { |