Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 7 | public function boot(): void |
|
20 | { |
||
21 | 7 | $this->publishes([ |
|
22 | 7 | __DIR__ . '/../config/queue-ensurer.php' => config_path('queue-ensurer.php'), |
|
23 | 7 | ], 'config'); |
|
24 | |||
25 | 7 | if ($this->app->runningInConsole()) { |
|
26 | 7 | $this->commands([ |
|
27 | 7 | EnsureProcesses::class, |
|
28 | ]); |
||
29 | |||
30 | 7 | if (config('queue-ensurer.schedule')) { |
|
31 | $this->app->booted(function () { |
||
32 | /** @var Schedule $schedule */ |
||
33 | 7 | $schedule = app(Schedule::class); |
|
34 | 7 | $schedule->command(EnsureProcesses::class)->everyMinute(); |
|
35 | 7 | }); |
|
40 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.