Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
david-d-h authored and github-actions[bot] committed May 16, 2024
1 parent 3df58ee commit bd6d170
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/CachedComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ public function resolveView()
return new HtmlString((string) $cachedValue);
}

throw new \Exception("This should be unreachable");
throw new \Exception('This should be unreachable');
}
}
1 change: 1 addition & 0 deletions src/CachesValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ final public static function update($parameters = []): ?PendingDispatch

if (! is_subclass_of(static::class, ShouldQueue::class)) {
$instance->handle();

return null;
}

Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/CachedComponentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

use Vormkracht10\PermanentCache\CachedComponent;

class Component extends CachedComponent {
class Component extends CachedComponent
{
protected $store = 'array:tests::component';

public function render()
Expand Down
12 changes: 8 additions & 4 deletions tests/Unit/ReactiveCacheTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Event;
use Vormkracht10\PermanentCache\Cached;
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdated;
use Vormkracht10\PermanentCache\Events\PermanentCacheUpdating;
Expand All @@ -12,9 +12,12 @@
(fn () => $this->cachers = new \SplObjectStorage)->call(app(\Vormkracht10\PermanentCache\PermanentCache::class));
});

class TestEvent {}
class TestEvent
{
}

class TestCache extends Cached {
class TestCache extends Cached
{
protected $store = 'array:test';

public function run(TestEvent $_): mixed
Expand All @@ -40,7 +43,8 @@ public function run(TestEvent $_): mixed
global $pass;
$pass = false;

class T extends Cached {
class T extends Cached
{
public function run(TestEvent $_)
{
global $pass;
Expand Down

0 comments on commit bd6d170

Please sign in to comment.