for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Hhxsv5\LaravelS\Illuminate;
use Hhxsv5\LaravelS\Console\Portal;
use Hhxsv5\LaravelS\Swoole\Timer\CronJob;
class LaravelScheduleJob extends CronJob
{
protected $artisan;
public function interval()
return 60 * 1000; // Run every 1 minute
}
public function isImmediate()
return false;
public function run()
Portal::runArtisanCommand(base_path(), 'schedule:run >> /dev/null 2>&1 &');
base_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
Portal::runArtisanCommand(/** @scrutinizer ignore-call */ base_path(), 'schedule:run >> /dev/null 2>&1 &');