hhxsv5 /
laravel-s
| 1 | <?php |
||||
| 2 | |||||
|
0 ignored issues
–
show
Coding Style
introduced
by
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
|
|||||
| 9 | { |
||||
| 10 | protected $artisan; |
||||
| 11 | |||||
| 12 | public function interval() |
||||
|
0 ignored issues
–
show
|
|||||
| 13 | { |
||||
| 14 | return 60 * 1000; // Run every 1 minute |
||||
| 15 | } |
||||
| 16 | |||||
| 17 | public function isImmediate() |
||||
|
0 ignored issues
–
show
|
|||||
| 18 | { |
||||
| 19 | return false; |
||||
| 20 | } |
||||
| 21 | |||||
| 22 | public function run() |
||||
|
0 ignored issues
–
show
|
|||||
| 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
Loading history...
|
|||||
| 25 | } |
||||
| 26 | } |