Passed
Push — master ( 082cd5...4b4879 )
by F
03:30
created
src/Traits/HasAddresses.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $addresses = collect($addresses)
65 65
             ->flatten()
66 66
             ->map(
67
-                function ($address) {
67
+                function($address) {
68 68
                     if (true === empty($address)) {
69 69
                         return false;
70 70
                     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 }
74 74
             )
75 75
             ->filter(
76
-                function ($address) {
76
+                function($address) {
77 77
                     return $address instanceof Address;
78 78
                 }
79 79
             )
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $class = \get_class($model);
90 90
 
91 91
             $class::saved(
92
-                function ($object) use ($addresses, $model) {
92
+                function($object) use ($addresses, $model) {
93 93
                     static $modelLastFiredOn;
94 94
                     if (null !== $modelLastFiredOn && $modelLastFiredOn === $model) {
95 95
                         return;
Please login to merge, or discard this patch.
src/LocalisationRegistrar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -224,9 +224,9 @@  discard block
 block discarded – undo
224 224
     {
225 225
         if (null === $this->addresses) {
226 226
             $this->addresses = $this->cache->remember(
227
-                self::$cacheKey . '.addresses',
227
+                self::$cacheKey.'.addresses',
228 228
                 self::$cacheExpirationTime,
229
-                function () {
229
+                function() {
230 230
                     return $this->getAddressModel()
231 231
                         //->with('system_address_types')
232 232
                         ->get();
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
             $this->languages = $this->cache->remember(
258 258
                 self::$cacheKey,
259 259
                 self::$cacheExpirationTime,
260
-                function () {
260
+                function() {
261 261
                     return $this->getLanguageClass()
262 262
                     //->with('countries')
263 263
                         ->get();
Please login to merge, or discard this patch.
src/Localisation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         } else if ($locale === $fallbackLocale) {
85 85
             $locale = 'en-GB';
86 86
         } else {
87
-            $locale = $fallbackLocale . '-' . strtoupper($fallbackLocale);
87
+            $locale = $fallbackLocale.'-'.strtoupper($fallbackLocale);
88 88
         }
89 89
 
90 90
         try {
Please login to merge, or discard this patch.
src/Models/Address/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,6 +103,6 @@
 block discarded – undo
103 103
             return '';
104 104
         }
105 105
 
106
-        return __('pwweb::localisation.' . $value);
106
+        return __('pwweb::localisation.'.$value);
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
src/LocalisationServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         $this->app->singleton(
108 108
             LocalisationRegistrar::class,
109
-            function ($app) use ($localisationLoader) {
109
+            function($app) use ($localisationLoader) {
110 110
                 return $localisationLoader;
111 111
             }
112 112
         );
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR)
144 144
             ->flatMap(
145
-                function ($path) use ($filesystem) {
145
+                function($path) use ($filesystem) {
146 146
                     return $filesystem->glob($path.'*_create_localisation_tables.php');
147 147
                 }
148 148
             )->push($this->app->databasePath()."/migrations/{$timestamp}_create_localisation_tables.php")
Please login to merge, or discard this patch.
src/Models/Country.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,6 +103,6 @@
 block discarded – undo
103 103
             return '';
104 104
         }
105 105
 
106
-        return __('pwweb::localisation.' . $value);
106
+        return __('pwweb::localisation.'.$value);
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
src/Database/Factories/LanguageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 */
17 17
 $factory->define(
18 18
     Language::class,
19
-    function (Faker $faker) {
19
+    function(Faker $faker) {
20 20
         return [
21 21
             'name' => $faker->word,
22 22
             'locale' => $faker->word,
Please login to merge, or discard this patch.
src/Database/Factories/AddressFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 */
17 17
 $factory->define(
18 18
     Address::class,
19
-    function (Faker $faker) {
19
+    function(Faker $faker) {
20 20
         return [
21 21
             'country_id' => $faker->word,
22 22
             'type_id' => $faker->word,
Please login to merge, or discard this patch.
src/Database/Factories/Address/TypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 */
17 17
 $factory->define(
18 18
     Type::class,
19
-    function (Faker $faker) {
19
+    function(Faker $faker) {
20 20
         return [
21 21
             'country_id' => $faker->word,
22 22
             'type_id' => $faker->word,
Please login to merge, or discard this patch.