Skip to content

Commit a9f7b21

Browse files
author
Pantea Marius-ciclistu
committed
PSR12 fn ( to fn(
1 parent c4fadf1 commit a9f7b21

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

illuminate/Database/Eloquent/Relations/HasMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function one()
1616
{
1717
$relationName = Str::uuid()->toString();
1818

19-
// return HasOne::noConstraints(fn () => new HasOne(
19+
// return HasOne::noConstraints(fn() => new HasOne(
2020
return HasOne::noConstraints(function () use ($relationName): HasOne {
2121
$this->parent->nowEagerLoadingRelationNameWithNoConstraints = $relationName;
2222
$builder = $this->getQuery()->clone();

illuminate/Database/Eloquent/Relations/HasManyThrough.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ public function one()
9999
{
100100
$relationName = Str::uuid()->toString();
101101

102-
// return HasOneThrough::noConstraints(fn () => new HasOneThrough(
102+
// return HasOneThrough::noConstraints(fn() => new HasOneThrough(
103103
return HasOneThrough::noConstraints(function () use ($relationName): HasOneThrough {
104104
$this->farParent->nowEagerLoadingRelationNameWithNoConstraints = $relationName;
105105
$builder = $this->getQuery()->clone();
106106
$builder->setQuery($builder->getQuery()->clone());
107107

108108
return \app(HasOneThrough::class, [
109-
\tap($builder, fn (Builder $query): array => $query->getQuery()->joins = []),
109+
\tap($builder, fn(Builder $query): array => $query->getQuery()->joins = []),
110110
$this->farParent,
111111
$this->throughParent,
112112
$this->getFirstKeyName(),

illuminate/Database/Eloquent/Relations/MorphMany.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function one()
1717
{
1818
$relationName = Str::uuid()->toString();
1919

20-
// return MorphOne::noConstraints(fn () => new MorphOne(
20+
// return MorphOne::noConstraints(fn() => new MorphOne(
2121
return MorphOne::noConstraints(function () use ($relationName): MorphOne {
2222
$this->getParent()->nowEagerLoadingRelationNameWithNoConstraints = $relationName;
2323
$builder = $this->getQuery()->clone();

illuminate/Queue/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function createPayload($job, $queue, $data = '')
107107
}
108108

109109
if ($job instanceof ShouldBeUnique) {
110-
self::createPayloadUsing(fn (): array => [
110+
self::createPayloadUsing(fn(): array => [
111111
'uniqueJobKey' => UniqueLock::getKey($job),
112112
'uniqueJobCacheStore' => UniqueLock::getUniqueJobCacheStore($job)
113113
]);

illuminate/View/DynamicComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function render()
5252
collect(
5353
$attributes->getAttributes()
5454
)->mapWithKeys(
55-
fn ($value, $key) => [Illuminate\Support\Str::camel(str_replace([':', '.'], ' ', $key)) => $value]
55+
fn($value, $key) => [Illuminate\Support\Str::camel(str_replace([':', '.'], ' ', $key)) => $value]
5656
)->all(),
5757
EXTR_SKIP
5858
); ?>

serializable-closure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You may serialize a closure this way:
4444
```php
4545
use Laravel\SerializableClosure\SerializableClosure;
4646

47-
$closure = fn () => 'james';
47+
$closure = fn() => 'james';
4848

4949
// Recommended
5050
SerializableClosure::setSecretKey('secret');

0 commit comments

Comments
 (0)