@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 | ); |
@@ -50,7 +50,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ) |