@@ -64,7 +64,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -106,7 +106,7 @@ discard block |
||
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 |
||
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") |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $this->addresses = $this->cache->remember( |
227 | 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 |
||
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(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | $factory->define( |
17 | 17 | Country::class, |
18 | - function (Faker $faker) { |
|
18 | + function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'name' => $faker->word, |
21 | 21 | 'iso' => $faker->word, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | $factory->define( |
17 | 17 | Currency::class, |
18 | - function (Faker $faker) { |
|
18 | + function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'name' => $faker->word, |
21 | 21 | 'iso' => $faker->word, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | $factory->define( |
17 | 17 | Type::class, |
18 | - function (Faker $faker) { |
|
18 | + function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'country_id' => $faker->word, |
21 | 21 | 'type_id' => $faker->word, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | $factory->define( |
17 | 17 | Language::class, |
18 | - function (Faker $faker) { |
|
18 | + function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'name' => $faker->word, |
21 | 21 | 'locale' => $faker->word, |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | $factory->define( |
17 | 17 | Address::class, |
18 | - function (Faker $faker) { |
|
18 | + function(Faker $faker) { |
|
19 | 19 | return [ |
20 | 20 | 'country_id' => $faker->word, |
21 | 21 | 'type_id' => $faker->word, |