Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher authored and github-actions[bot] committed Oct 11, 2023
1 parent 413efa5 commit 405fc20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/Livewire/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
namespace Laravel\Pulse\Livewire;

use Illuminate\Contracts\Support\Renderable;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\View;
use Laravel\Pulse\Queries\CacheInteractions;
use Laravel\Pulse\Queries\CacheKeyInteractions;
use Laravel\Pulse\Queries\MonitoredCacheInteractions;
use Livewire\Attributes\Lazy;

#[Lazy]
Expand Down
2 changes: 0 additions & 2 deletions src/Queries/CacheKeyInteractions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
use Carbon\CarbonInterval as Interval;
use Illuminate\Config\Repository;
use Illuminate\Database\DatabaseManager;
use Illuminate\Database\Query\Builder;
use Illuminate\Support\Collection;
use stdClass;

/**
* @internal
Expand Down
24 changes: 12 additions & 12 deletions tests/Feature/Queries/CacheKeyInteractionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,42 @@
[
'date' => $date = now()->toDateTimeString(),
'hit' => true,
'key' => 'users:{user}:avatar'
'key' => 'users:{user}:avatar',
],
[
'date' => $date,
'hit' => true,
'key' => 'users:{user}:profile'
'key' => 'users:{user}:profile',
],
[
'date' => $date,
'hit' => true,
'key' => 'users:{user}:profile'
'key' => 'users:{user}:profile',
],
[
'date' => $date,
'hit' => true,
'key' => 'users:{user}:profile'
'key' => 'users:{user}:profile',
],
[
'date' => $date,
'hit' => false,
'key' => 'users:{user}:avatar'
'key' => 'users:{user}:avatar',
],
[
'date' => $date,
'hit' => false,
'key' => 'users:{user}:avatar'
'key' => 'users:{user}:avatar',
],
[
'date' => $date,
'hit' => false,
'key' => 'users:{user}:avatar'
'key' => 'users:{user}:avatar',
],
[
'date' => $date = now()->toDateTimeString(),
'hit' => true,
'key' => 'users:{user}:avatar'
'key' => 'users:{user}:avatar',
],
]);

Expand All @@ -58,12 +58,12 @@
expect($results[0])->toHaveProperties([
'key' => 'users:{user}:avatar',
'count' => 5,
'hits' => "2",
'hits' => '2',
]);
expect($results[1])->toHaveProperties([
'key' => 'users:{user}:profile',
'count' => 3,
'hits' => "3",
'hits' => '3',
]);
});

Expand All @@ -73,12 +73,12 @@
[
'date' => '2000-01-01 00:00:05',
'hit' => true,
'key' => 'before'
'key' => 'before',
],
[
'date' => '2000-01-01 00:00:06',
'hit' => true,
'key' => 'after'
'key' => 'after',
],
]);
Carbon::setTestNow('2000-01-01 01:00:05');
Expand Down

0 comments on commit 405fc20

Please sign in to comment.