Code Duplication    Length = 5-5 lines in 2 locations

Alpha/Controller/Controller.php 2 locations

@@ 514-518 (lines=5) @@
511
            }
512
            // found the current job
513
            if ($this->name == $jobs[$i]) {
514
                if (isset($jobs[$i - 1])) {
515
                    // set the previous job if it exists
516
                    $this->previousJob = $jobs[$i - 1];
517
                    self::$logger->debug('Previous job ['.$this->previousJob.']');
518
                }
519
                if (isset($jobs[$i + 1])) {
520
                    // set the next job if it exists
521
                    $this->nextJob = $jobs[$i + 1];
@@ 519-523 (lines=5) @@
516
                    $this->previousJob = $jobs[$i - 1];
517
                    self::$logger->debug('Previous job ['.$this->previousJob.']');
518
                }
519
                if (isset($jobs[$i + 1])) {
520
                    // set the next job if it exists
521
                    $this->nextJob = $jobs[$i + 1];
522
                    self::$logger->debug('Next job ['.$this->nextJob.']');
523
                }
524
            }
525
            // the last job in the sequence
526
            if ($i == ($numOfJobs - 1)) {