Passed
Push — master ( 6bcc6d...405e10 )
by F
03:06
created
src/LocalisationRegistrar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             $this->addresses = $this->cache->remember(
213 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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/Traits/HasAddresses.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     public function getAddressClass()
30 30
     {
31
-        if (! isset($this->addressClass)) {
31
+        if (!isset($this->addressClass)) {
32 32
             $this->addressClass = app(LocalisationRegistrar::class)->getAddressClass();
33 33
         }
34 34
 
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $addresses = collect($addresses)
62 62
             ->flatten()
63
-            ->map(function ($address) {
63
+            ->map(function($address) {
64 64
                 if (empty($address)) {
65 65
                     return false;
66 66
                 }
67 67
 
68 68
                 return $this->getStoredAddress($address);
69 69
             })
70
-            ->filter(function ($address) {
70
+            ->filter(function($address) {
71 71
                 return $address instanceof Address;
72 72
             })
73 73
             ->map->id
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $class = \get_class($model);
83 83
 
84 84
             $class::saved(
85
-                function ($object) use ($addresses, $model) {
85
+                function($object) use ($addresses, $model) {
86 86
                     static $modelLastFiredOn;
87 87
                     if (null !== $modelLastFiredOn && $modelLastFiredOn === $model) {
88 88
                         return;
Please login to merge, or discard this patch.