@@ -16,9 +16,15 @@ |
||
16 | 16 | } |
17 | 17 | $timeparts = array_map('intval', explode(':', $time)); |
18 | 18 | |
19 | - if(isset($timeparts[0])) $this->setHours($timeparts[0]); |
|
20 | - if(isset($timeparts[1])) $this->setMinutes($timeparts[1]); |
|
21 | - if(isset($timeparts[2])) $this->setSeconds($timeparts[2]); |
|
19 | + if(isset($timeparts[0])) { |
|
20 | + $this->setHours($timeparts[0]); |
|
21 | + } |
|
22 | + if(isset($timeparts[1])) { |
|
23 | + $this->setMinutes($timeparts[1]); |
|
24 | + } |
|
25 | + if(isset($timeparts[2])) { |
|
26 | + $this->setSeconds($timeparts[2]); |
|
27 | + } |
|
22 | 28 | } |
23 | 29 | |
24 | 30 | /** |
@@ -101,7 +101,9 @@ discard block |
||
101 | 101 | |
102 | 102 | foreach($jobs as $cmd => $job) { |
103 | 103 | $execTime = $job['last_exec']; |
104 | - if($execTime > $lastExec) $lastExec = $execTime; |
|
104 | + if($execTime > $lastExec) { |
|
105 | + $lastExec = $execTime; |
|
106 | + } |
|
105 | 107 | if(!empty($job['error'])) { |
106 | 108 | $hasError = true; |
107 | 109 | } |
@@ -132,7 +134,9 @@ discard block |
||
132 | 134 | |
133 | 135 | $cnt = 1; |
134 | 136 | foreach($jobs as $cmd => $job) { |
135 | - if($cnt > 1) $table->addRow(new TableSeparator()); |
|
137 | + if($cnt > 1) { |
|
138 | + $table->addRow(new TableSeparator()); |
|
139 | + } |
|
136 | 140 | $row = [ |
137 | 141 | $cmd, |
138 | 142 | $job['period'], |