From 981a43635c85eb17f8f8293923c46ae7d7e046bf Mon Sep 17 00:00:00 2001 From: Italo Date: Thu, 25 Aug 2022 23:27:07 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/CacheAwareConnectionProxy.php | 10 +++++----- src/CacheQueryServiceProvider.php | 2 +- src/Console/Commands/CacheQuery/Forget.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CacheAwareConnectionProxy.php b/src/CacheAwareConnectionProxy.php index 23b5df2..63785c8 100644 --- a/src/CacheAwareConnectionProxy.php +++ b/src/CacheAwareConnectionProxy.php @@ -2,6 +2,10 @@ namespace Laragear\CacheQuery; +use function array_shift; +use function base64_encode; +use function cache; +use function config; use DateInterval; use DateTimeInterface; use Illuminate\Cache\NoLock; @@ -9,13 +13,9 @@ use Illuminate\Contracts\Cache\LockProvider; use Illuminate\Contracts\Cache\Repository; use Illuminate\Database\ConnectionInterface; -use LogicException; -use function array_shift; -use function base64_encode; -use function cache; -use function config; use function implode; use function is_int; +use LogicException; use function max; use function md5; use function rtrim; diff --git a/src/CacheQueryServiceProvider.php b/src/CacheQueryServiceProvider.php index a3285dd..563f96d 100644 --- a/src/CacheQueryServiceProvider.php +++ b/src/CacheQueryServiceProvider.php @@ -96,7 +96,7 @@ protected function eloquentMacro(): Closure ): EloquentBuilder { /** * @var \Illuminate\Database\Eloquent\Builder $this - * @phpstan-ignore-next-line + * @phpstan-ignore-next-line */ $this->getQuery()->cache($ttl, $key, $store, $wait); diff --git a/src/Console/Commands/CacheQuery/Forget.php b/src/Console/Commands/CacheQuery/Forget.php index e57661a..2894ffd 100644 --- a/src/Console/Commands/CacheQuery/Forget.php +++ b/src/Console/Commands/CacheQuery/Forget.php @@ -2,10 +2,10 @@ namespace Laragear\CacheQuery\Console\Commands\CacheQuery; -use Illuminate\Console\Command; -use Laragear\CacheQuery\CacheQuery; use function array_map; use function explode; +use Illuminate\Console\Command; +use Laragear\CacheQuery\CacheQuery; class Forget extends Command {