Completed
Push — master ( 1e869a...329115 )
by Propa
02:47
created
src/IntlServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      *
Please login to merge, or discard this patch.
src/Number.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Country.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Currency.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(),
Please login to merge, or discard this patch.