Skip to content

Commit

Permalink
Merge pull request #3 from Laragear/analysis-pejvQL
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
DarkGhostHunter authored Feb 18, 2022
2 parents 5ece884 + 727f02f commit 78a3bb0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions src/CacheAwareConnectionProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

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;
use Illuminate\Contracts\Cache\Lock;
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 LogicException;
use function md5;

class CacheAwareConnectionProxy
Expand Down Expand Up @@ -115,7 +115,7 @@ protected function getQueryHash(string $query, array $bindings): string
*/
protected function retrieveLock(string $key): Lock
{
if (!$this->lockWait) {
if (! $this->lockWait) {
return new NoLock($key, $this->lockWait);
}

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

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

throw new LogicException("The [$store] cache does not support atomic locks.");
Expand Down
2 changes: 1 addition & 1 deletion src/CacheQueryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function boot(): void
$this->publishes([static::STUBS => $this->app->basePath('.stubs/cache-query.php')], 'phpstorm');

$this->commands([
Console\Commands\CacheQuery\Forget::class
Console\Commands\CacheQuery\Forget::class,
]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Commands/CacheQuery/Forget.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function retrieveKey(ConfigContract $config): array
{
return [
$this->argument('key'),
(string) str($config->get('cache-query.prefix'))->finish('|')->append($this->argument('key'))
(string) str($config->get('cache-query.prefix'))->finish('|')->append($this->argument('key')),
];
}
}

0 comments on commit 78a3bb0

Please sign in to comment.