Passed
Branch main (e67f3c)
by Karel
10:56
created
Category
src/AddressesServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $filesystem = $this->app->make(Filesystem::class);
60 60
 
61 61
         return Collection::make($this->app->databasePath().DIRECTORY_SEPARATOR.'migrations'.DIRECTORY_SEPARATOR)
62
-            ->flatMap(function ($path) use ($filesystem, $migrationFileName) {
62
+            ->flatMap(function($path) use ($filesystem, $migrationFileName) {
63 63
                 return $filesystem->glob($path.'*_'.$migrationFileName);
64 64
             })
65 65
             ->push($this->app->databasePath()."/migrations/{$timestamp}_{$migrationFileName}")
Please login to merge, or discard this patch.
src/Traits/HasAddresses.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public static function bootHasAddresses()
22 22
     {
23
-        static::deleting(function (self $model) {
23
+        static::deleting(function(self $model) {
24 24
             if (method_exists($model, 'isForceDeleting') && $model->isForceDeleting()) {
25 25
                 $model->addresses()->forceDelete();
26 26
 
@@ -112,14 +112,12 @@  discard block
 block discarded – undo
112 112
     {
113 113
         if (is_int($addresses) && $this->hasAddress($addresses)) {
114 114
             return $force ?
115
-                    $this->addresses()->where('id', $addresses)->forceDelete() :
116
-                    $this->addresses()->where('id', $addresses)->delete();
115
+                    $this->addresses()->where('id', $addresses)->forceDelete() : $this->addresses()->where('id', $addresses)->delete();
117 116
         }
118 117
 
119 118
         if ($addresses instanceof Address && $this->hasAddress($addresses)) {
120 119
             return $force ?
121
-                    $this->addresses()->where('id', $addresses->id)->forceDelete() :
122
-                    $this->addresses()->where('id', $addresses->id)->delete();
120
+                    $this->addresses()->where('id', $addresses->id)->forceDelete() : $this->addresses()->where('id', $addresses->id)->delete();
123 121
         }
124 122
 
125 123
         if (is_array($addresses)) {
Please login to merge, or discard this patch.