Skip to content

Commit

Permalink
Merge pull request #22 from Laragear/analysis-MPD5Dv
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI

[ci skip] [skip ci]
  • Loading branch information
DarkGhostHunter authored May 21, 2023
2 parents 0f8da23 + 6795109 commit 3764029
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/CacheAwareConnectionProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Database\Connection;
use Illuminate\Database\ConnectionInterface;
use LogicException;

use function array_shift;
use function base64_encode;
use function cache;
Expand Down Expand Up @@ -220,6 +221,7 @@ public function __get(string $name): mixed
* @param string $name
* @param mixed $value
* @return void
*
* @noinspection MagicMethodsValidityInspection
*/
public function __set(string $name, mixed $value): void
Expand Down
1 change: 1 addition & 0 deletions src/CacheQueryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ protected function eloquentMacro(): Closure
): EloquentBuilder {
/**
* @var \Illuminate\Database\Eloquent\Builder $this
*
* @phpstan-ignore-next-line
*/
$this->getQuery()->cache($ttl, $key, $store, $wait);
Expand Down
5 changes: 3 additions & 2 deletions src/Console/Commands/CacheQuery/Forget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

namespace Laragear\CacheQuery\Console\Commands\CacheQuery;

use function array_map;
use function explode;
use Illuminate\Console\Command;
use Laragear\CacheQuery\CacheQuery;

use function array_map;
use function explode;

class Forget extends Command
{
/**
Expand Down
1 change: 1 addition & 0 deletions tests/CacheAwareConnectionProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Laragear\CacheQuery\CacheAwareConnectionProxy;
use LogicException;
use Mockery;

use function now;
use function today;

Expand Down

0 comments on commit 3764029

Please sign in to comment.