Skip to content

Commit 76997dc

Browse files
Merge pull request #44 from Laragear/analysis-LZ6LkK
Apply fixes from StyleCI [ci skip] [skip ci]
2 parents c2e46e5 + 67b6929 commit 76997dc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/CacheQueryServiceProvider.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Illuminate\Database\Query\Builder;
1111
use Illuminate\Support\Collection;
1212
use Illuminate\Support\ServiceProvider;
13+
1314
use function app;
1415
use function base64_encode;
1516
use function explode;
@@ -43,11 +44,11 @@ public function register(): void
4344
*/
4445
public function boot(): void
4546
{
46-
if (!Builder::hasMacro('cache')) {
47+
if (! Builder::hasMacro('cache')) {
4748
Builder::macro('cache', $this->macro());
4849
}
4950

50-
if (!EloquentBuilder::hasGlobalMacro('cache')) {
51+
if (! EloquentBuilder::hasGlobalMacro('cache')) {
5152
EloquentBuilder::macro('cache', $this->eloquentMacro());
5253
}
5354

@@ -89,7 +90,7 @@ protected function macro(): Closure
8990
// Normalize the TTL argument to a Cache instance.
9091
$this->connection = Proxy::crateNewInstance($this->connection, match (true) {
9192
$ttl instanceof Closure => $ttl(new Cache),
92-
!$ttl instanceof Cache => (new Cache)->ttl($ttl),
93+
! $ttl instanceof Cache => (new Cache)->ttl($ttl),
9394
default => $ttl
9495
});
9596

0 commit comments

Comments
 (0)