Passed
Push — master ( 1a2918...dbab80 )
by Biao
09:27
created

LaravelScheduleJob::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Illuminate;
4
5
use Hhxsv5\LaravelS\Swoole\Timer\CronJob;
6
use Illuminate\Contracts\Console\Kernel;
0 ignored issues
show
Bug introduced by
The type Illuminate\Contracts\Console\Kernel was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
8
class LaravelScheduleJob extends CronJob
0 ignored issues
show
Coding Style introduced by
Missing doc comment for class LaravelScheduleJob
Loading history...
9
{
10
    protected $artisan;
11
12
    public function interval()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function interval()
Loading history...
13
    {
14
        return 60 * 1000;// Run every 1 minute
15
    }
16
17
    public function isImmediate()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function isImmediate()
Loading history...
18
    {
19
        return false;
20
    }
21
22
    public function run()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function run()
Loading history...
23
    {
24
        app(Kernel::class)->call('schedule:run');
0 ignored issues
show
Bug introduced by
The function app was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
        /** @scrutinizer ignore-call */ 
25
        app(Kernel::class)->call('schedule:run');
Loading history...
25
    }
26
}