Completed
Push — develop ( d14b6f...21e97e )
by John
02:54
created
Alpha/Controller/Controller.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -509,19 +509,19 @@  discard block
 block discarded – undo
509 509
             }
510 510
             // found the current job
511 511
             if ($this->name == $jobs[$i]) {
512
-                if (isset($jobs[$i - 1])) {
512
+                if (isset($jobs[$i-1])) {
513 513
                     // set the previous job if it exists
514
-                    $this->previousJob = $jobs[$i - 1];
514
+                    $this->previousJob = $jobs[$i-1];
515 515
                     self::$logger->debug('Previous job ['.$this->previousJob.']');
516 516
                 }
517
-                if (isset($jobs[$i + 1])) {
517
+                if (isset($jobs[$i+1])) {
518 518
                     // set the next job if it exists
519
-                    $this->nextJob = $jobs[$i + 1];
519
+                    $this->nextJob = $jobs[$i+1];
520 520
                     self::$logger->debug('Next job ['.$this->nextJob.']');
521 521
                 }
522 522
             }
523 523
             // the last job in the sequence
524
-            if ($i == ($numOfJobs - 1)) {
524
+            if ($i == ($numOfJobs-1)) {
525 525
                 $this->lastJob = $jobs[$i];
526 526
             }
527 527
         }
@@ -685,9 +685,9 @@  discard block
 block discarded – undo
685 685
             intval($this->unitEndTime->getYear())
686 686
             );
687 687
 
688
-        self::$logger->debug('<<getUnitDuration ['.$intEndTime - $intStartTime.']');
688
+        self::$logger->debug('<<getUnitDuration ['.$intEndTime-$intStartTime.']');
689 689
 
690
-        return $intEndTime - $intStartTime;
690
+        return $intEndTime-$intStartTime;
691 691
     }
692 692
 
693 693
     /**
@@ -1153,7 +1153,7 @@  discard block
 block discarded – undo
1153 1153
              */
1154 1154
 
1155 1155
             // the server hostname + today's date less 1 hour (i.e. yesterday where time is < 1:00AM)
1156
-            $var1 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($host.date('Ymd', (time() - 3600)))), '+/', '-_'), '=');
1156
+            $var1 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($host.date('Ymd', (time()-3600)))), '+/', '-_'), '=');
1157 1157
             // the server's IP plus $var1
1158 1158
             $var2 = rtrim(strtr(base64_encode(SecurityUtils::encrypt($ip.$var1)), '+/', '-_'), '=');
1159 1159
 
Please login to merge, or discard this patch.