Mezzle/queuejitsu

View on GitHub

Showing 3 of 5 total issues

Method run has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function run(Job $job): void
{
$this->getEventManager()->trigger('afterFork', $job);
 
try {
Severity: Minor
Found in src/Job/JobManager.php - About 1 hr to fix

Function run has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

public function run(Job $job): void
{
$this->getEventManager()->trigger('afterFork', $job);
 
try {
Severity: Minor
Found in src/Job/JobManager.php - About 45 mins to fix

Function __invoke has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

public function __invoke($interval = 5): void
{
$this->interval = $interval;
 
$this->updateProcLine('Starting');
Severity: Minor
Found in src/Worker/AbstractWorker.php - About 35 mins to fix
Severity
Category
Status
Source
Language