Skip to content

Commit 9633ac5

Browse files
committed
formatting
2 parents fa28f8e + 066b740 commit 9633ac5

File tree

91 files changed

+1466
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1466
-434
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"fakerphp/faker": "^1.24",
105105
"guzzlehttp/promises": "^2.0.3",
106106
"guzzlehttp/psr7": "^2.4",
107+
"laravel/pint": "^1.18",
107108
"league/flysystem-aws-s3-v3": "^3.25.1",
108109
"league/flysystem-ftp": "^3.25.1",
109110
"league/flysystem-path-prefixing": "^3.25.1",

pint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"preset": "empty",
3+
"rules": {
4+
"method_chaining_indentation": true
5+
},
6+
"exclude": [
7+
"tests"
8+
]
9+
}

src/Illuminate/Auth/DatabaseUserProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public function retrieveByToken($identifier, #[\SensitiveParameter] $token)
8787
public function updateRememberToken(UserContract $user, #[\SensitiveParameter] $token)
8888
{
8989
$this->connection->table($this->table)
90-
->where($user->getAuthIdentifierName(), $user->getAuthIdentifier())
91-
->update([$user->getRememberTokenName() => $token]);
90+
->where($user->getAuthIdentifierName(), $user->getAuthIdentifier())
91+
->update([$user->getRememberTokenName() => $token]);
9292
}
9393

9494
/**

src/Illuminate/Auth/EloquentUserProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function retrieveById($identifier)
5555
$model = $this->createModel();
5656

5757
return $this->newModelQuery($model)
58-
->where($model->getAuthIdentifierName(), $identifier)
59-
->first();
58+
->where($model->getAuthIdentifierName(), $identifier)
59+
->first();
6060
}
6161

6262
/**

src/Illuminate/Broadcasting/Broadcasters/Broadcaster.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ protected function retrieveChannelOptions($channel)
372372
*/
373373
protected function channelNameMatchesPattern($channel, $pattern)
374374
{
375+
$pattern = str_replace('.', '\.', $pattern);
376+
375377
return preg_match('/^'.preg_replace('/\{(.*?)\}/', '([^\.]+)', $pattern).'$/', $channel);
376378
}
377379

src/Illuminate/Broadcasting/Broadcasters/PusherBroadcaster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function decodePusherResponse($request, $response)
135135
}
136136

137137
return response()->json(json_decode($response, true))
138-
->withCallback($request->callback);
138+
->withCallback($request->callback);
139139
}
140140

141141
/**

src/Illuminate/Bus/Batch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ public function add($jobs)
171171

172172
return with($this->prepareBatchedChain($job), function ($chain) {
173173
return $chain->first()
174-
->allOnQueue($this->options['queue'] ?? null)
175-
->allOnConnection($this->options['connection'] ?? null)
176-
->chain($chain->slice(1)->values()->all());
174+
->allOnQueue($this->options['queue'] ?? null)
175+
->allOnConnection($this->options['connection'] ?? null)
176+
->chain($chain->slice(1)->values()->all());
177177
});
178178
} else {
179179
$job->withBatchId($this->id);

src/Illuminate/Bus/DatabaseBatchRepository.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ public function __construct(BatchFactory $factory, Connection $connection, strin
5858
public function get($limit = 50, $before = null)
5959
{
6060
return $this->connection->table($this->table)
61-
->orderByDesc('id')
62-
->take($limit)
63-
->when($before, fn ($q) => $q->where('id', '<', $before))
64-
->get()
65-
->map(function ($batch) {
66-
return $this->toBatch($batch);
67-
})
68-
->all();
61+
->orderByDesc('id')
62+
->take($limit)
63+
->when($before, fn ($q) => $q->where('id', '<', $before))
64+
->get()
65+
->map(function ($batch) {
66+
return $this->toBatch($batch);
67+
})
68+
->all();
6969
}
7070

7171
/**
@@ -77,9 +77,9 @@ public function get($limit = 50, $before = null)
7777
public function find(string $batchId)
7878
{
7979
$batch = $this->connection->table($this->table)
80-
->useWritePdo()
81-
->where('id', $batchId)
82-
->first();
80+
->useWritePdo()
81+
->where('id', $batchId)
82+
->first();
8383

8484
if ($batch) {
8585
return $this->toBatch($batch);
@@ -185,8 +185,8 @@ protected function updateAtomicValues(string $batchId, Closure $callback)
185185
{
186186
return $this->connection->transaction(function () use ($batchId, $callback) {
187187
$batch = $this->connection->table($this->table)->where('id', $batchId)
188-
->lockForUpdate()
189-
->first();
188+
->lockForUpdate()
189+
->first();
190190

191191
return is_null($batch) ? [] : tap($callback($batch), function ($values) use ($batchId) {
192192
$this->connection->table($this->table)->where('id', $batchId)->update($values);

src/Illuminate/Cache/DatabaseLock.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ public function release()
112112
{
113113
if ($this->isOwnedByCurrentProcess()) {
114114
$this->connection->table($this->table)
115-
->where('key', $this->name)
116-
->where('owner', $this->owner)
117-
->delete();
115+
->where('key', $this->name)
116+
->where('owner', $this->owner)
117+
->delete();
118118

119119
return true;
120120
}
@@ -130,8 +130,8 @@ public function release()
130130
public function forceRelease()
131131
{
132132
$this->connection->table($this->table)
133-
->where('key', $this->name)
134-
->delete();
133+
->where('key', $this->name)
134+
->delete();
135135
}
136136

137137
/**

src/Illuminate/Cache/DatabaseStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function incrementOrDecrement($key, $value, Closure $callback)
263263
$prefixed = $this->prefix.$key;
264264

265265
$cache = $this->table()->where('key', $prefixed)
266-
->lockForUpdate()->first();
266+
->lockForUpdate()->first();
267267

268268
// If there is no value in the cache, we will return false here. Otherwise the
269269
// value will be decrypted and we will proceed with this function to either

0 commit comments

Comments
 (0)