File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010use Illuminate \Database \Query \Builder ;
1111use Illuminate \Support \Collection ;
1212use Illuminate \Support \ServiceProvider ;
13+
1314use function app ;
1415use function base64_encode ;
1516use 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
You can’t perform that action at this time.
0 commit comments