@@ -86,7 +86,7 @@ |
||
86 | 86 | } else if ($locale === $fallbackLocale) { |
87 | 87 | $locale = 'en-gb'; |
88 | 88 | } else { |
89 | - $locale = $fallbackLocale . '-' . $fallbackLocale; |
|
89 | + $locale = $fallbackLocale.'-'.$fallbackLocale; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | try { |
@@ -210,9 +210,9 @@ discard block |
||
210 | 210 | { |
211 | 211 | if (null === $this->addresses) { |
212 | 212 | $this->addresses = $this->cache->remember( |
213 | - self::$cacheKey . '.addresses', |
|
213 | + self::$cacheKey.'.addresses', |
|
214 | 214 | self::$cacheExpirationTime, |
215 | - function () { |
|
215 | + function() { |
|
216 | 216 | return $this->getAddressClass() |
217 | 217 | //->with('countries') |
218 | 218 | ->get(); |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $this->languages = $this->cache->remember( |
241 | 241 | self::$cacheKey, |
242 | 242 | self::$cacheExpirationTime, |
243 | - function () { |
|
243 | + function() { |
|
244 | 244 | return $this->getLanguageClass() |
245 | 245 | //->with('countries') |
246 | 246 | ->get(); |
@@ -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; |