Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot committed Dec 4, 2024
1 parent 961c953 commit db9e56f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Concurrency/SyncDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function run(Closure|array $tasks): array
*/
public function defer(Closure|array $tasks): DeferredCallback
{
return defer(fn () => Collection::wrap($tasks))->each(fn ($task) => $task()));
return defer(fn () => Collection::wrap($tasks))->each(fn ($task) => $task());
}
}
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Factories/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ protected function getRawAttributes(?Model $parent)
return $this->for->isEmpty() ? $states : (new Collection([
function () {
return $this->parentResolvers();
}
},
]))->merge($states->all());
})->reduce(function ($carry, $state) use ($parent) {
if ($state instanceof Closure) {
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/MorphToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function aliasedPivotColumns()
{
$defaults = [$this->foreignPivotKey, $this->relatedPivotKey, $this->morphType];

return (new Collection($defaults))->merge( $this->pivotColumns)->map(function ($column) {
return (new Collection($defaults))->merge($this->pivotColumns)->map(function ($column) {
return $this->qualifyPivotColumn($column).' as pivot_'.$column;
})->unique()->all();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function getJobBackoff($job)
return;
}

return (new Collection::wrap($backoff)
return (Collection::wrap($backoff)
->map(function ($backoff) {
return $backoff instanceof DateTimeInterface
? $this->secondsUntil($backoff) : $backoff;
Expand Down

0 comments on commit db9e56f

Please sign in to comment.