Test Setup Failed
Branch master (3524d6)
by Jamie
05:11
created
Category
src/VersionableTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             $builder
29 29
                 ->join(
30 30
                     $this->getVersionTable(),
31
-                    function ($join) {
31
+                    function($join) {
32 32
                         $join->on($this->getQualifiedKeyName(), '=', $this->getQualifiedVersionTableForeignKeyName())
33 33
                             ->on($this->getQualifiedVersionTableKeyName(), '=', $this->getQualifiedVersionKeyName());
34 34
                     }
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     public function getQualifiedVersionableAttributes(): array
414 414
     {
415 415
         return array_map(
416
-            function (string $attribute) {
416
+            function(string $attribute) {
417 417
                 return $this->getVersionTable().'.'.$attribute;
418 418
             }, $this->getVersionableOptions()->versionableAttributes
419 419
         );
Please login to merge, or discard this patch.
src/VersioningScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $builder->macro(
52 52
             'atVersion',
53
-            function (Builder $builder, $version) {
53
+            function(Builder $builder, $version) {
54 54
                 /** @var \Illuminate\Database\Eloquent\Model|\JPNut\Versioning\Versionable $model */
55 55
                 $model = $builder->getModel();
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                 $builder
60 60
                     ->join(
61 61
                         $model->getVersionTable(),
62
-                        function ($join) use ($model, $version) {
62
+                        function($join) use ($model, $version) {
63 63
                             $join->on(
64 64
                                 $model->getQualifiedKeyName(), '=', $model->getQualifiedVersionTableForeignKeyName()
65 65
                             )
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $query = $builder->getQuery();
90 90
 
91 91
         $query->joins = collect($query->joins)->reject(
92
-            function ($join) use ($table) {
92
+            function($join) use ($table) {
93 93
                 return $this->isVersionJoinConstraint($join, $table);
94 94
             }
95 95
         )->values()->all();
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $builder->macro(
117 117
             'atTime',
118
-            function (Builder $builder, Carbon $moment) {
118
+            function(Builder $builder, Carbon $moment) {
119 119
                 /** @var \Illuminate\Database\Eloquent\Model|\JPNut\Versioning\Versionable $model */
120 120
                 $model = $builder->getModel();
121 121
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 $builder
127 127
                     ->join(
128 128
                         $model->getVersionTable(),
129
-                        function ($join) use ($model, $moment, $createdAt) {
129
+                        function($join) use ($model, $moment, $createdAt) {
130 130
                             $join->on(
131 131
                                 $model->getQualifiedKeyName(), '=', $model->getQualifiedVersionTableForeignKeyName()
132 132
                             )
Please login to merge, or discard this patch.