• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

audunru / version-warning / 8958818846

05 May 2024 02:05PM UTC coverage: 96.364%. First build
8958818846

Pull #12

github

web-flow
Merge 69464d2f2 into ea3557540
Pull Request #12: feat: automatically clear version-warning cache

5 of 6 new or added lines in 2 files covered. (83.33%)

53 of 55 relevant lines covered (96.36%)

7.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/Listeners/ClearCache.php
1
<?php
2

3
namespace audunru\VersionWarning\Listeners;
4

5
use Illuminate\Console\Events\CommandFinished;
6
use Illuminate\Support\Facades\Cache;
7
use Illuminate\Support\Facades\Log;
8

9
class ClearCache
10
{
11
    public function handle($event = null): void
12
    {
13
        if ($event instanceof CommandFinished && ! in_array($event->command, config('version-warning.cache.clear_after_commands'))) {
1✔
NEW
14
            return;
×
15
        }
16
        Cache::forget(config('version-warning.cache.key'));
1✔
17
        Log::info('Cleared version-warning cache');
1✔
18
    }
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc