Skip to content

Commit 78a3bb0

Browse files
Merge pull request #3 from Laragear/analysis-pejvQL
Apply fixes from StyleCI
2 parents 5ece884 + 727f02f commit 78a3bb0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/CacheAwareConnectionProxy.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
namespace Laragear\CacheQuery;
44

5+
use function array_shift;
6+
use function base64_encode;
7+
use function cache;
8+
use function config;
59
use DateInterval;
610
use DateTimeInterface;
711
use Illuminate\Cache\NoLock;
812
use Illuminate\Contracts\Cache\Lock;
913
use Illuminate\Contracts\Cache\LockProvider;
1014
use Illuminate\Contracts\Cache\Repository;
1115
use Illuminate\Database\ConnectionInterface;
12-
use LogicException;
13-
use function array_shift;
14-
use function base64_encode;
15-
use function cache;
16-
use function config;
1716
use function implode;
17+
use LogicException;
1818
use function md5;
1919

2020
class CacheAwareConnectionProxy
@@ -115,7 +115,7 @@ protected function getQueryHash(string $query, array $bindings): string
115115
*/
116116
protected function retrieveLock(string $key): Lock
117117
{
118-
if (!$this->lockWait) {
118+
if (! $this->lockWait) {
119119
return new NoLock($key, $this->lockWait);
120120
}
121121

@@ -191,7 +191,7 @@ protected static function store(?string $store, bool $lockable = false): Reposit
191191
{
192192
$repository = cache()->store($store ?? config('cache-query.store'));
193193

194-
if ($lockable && !$repository->getStore() instanceof LockProvider) {
194+
if ($lockable && ! $repository->getStore() instanceof LockProvider) {
195195
$store ??= cache()->getDefaultDriver();
196196

197197
throw new LogicException("The [$store] cache does not support atomic locks.");

src/CacheQueryServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function boot(): void
4747
$this->publishes([static::STUBS => $this->app->basePath('.stubs/cache-query.php')], 'phpstorm');
4848

4949
$this->commands([
50-
Console\Commands\CacheQuery\Forget::class
50+
Console\Commands\CacheQuery\Forget::class,
5151
]);
5252
}
5353
}

src/Console/Commands/CacheQuery/Forget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function retrieveKey(ConfigContract $config): array
6464
{
6565
return [
6666
$this->argument('key'),
67-
(string) str($config->get('cache-query.prefix'))->finish('|')->append($this->argument('key'))
67+
(string) str($config->get('cache-query.prefix'))->finish('|')->append($this->argument('key')),
6868
];
6969
}
7070
}

0 commit comments

Comments
 (0)