Issues (1019)

src/Illuminate/LaravelScheduleJob.php (6 issues)

1
<?php
2
0 ignored issues
show
Missing file doc comment
Loading history...
3
namespace Hhxsv5\LaravelS\Illuminate;
4
5
use Hhxsv5\LaravelS\Console\Portal;
6
use Hhxsv5\LaravelS\Swoole\Timer\CronJob;
7
8
class LaravelScheduleJob extends CronJob
0 ignored issues
show
Missing doc comment for class LaravelScheduleJob
Loading history...
9
{
10
    protected $artisan;
11
12
    public function interval()
0 ignored issues
show
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
Missing doc comment for function isImmediate()
Loading history...
18
    {
19
        return false;
20
    }
21
22
    public function run()
0 ignored issues
show
Missing doc comment for function run()
Loading history...
23
    {
24
        Portal::runArtisanCommand(base_path(), 'schedule:run >> /dev/null 2>&1 &');
0 ignored issues
show
The function base_path 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
        Portal::runArtisanCommand(/** @scrutinizer ignore-call */ base_path(), 'schedule:run >> /dev/null 2>&1 &');
Loading history...
25
    }
26
}