Passed
Push — master ( 055768...84c376 )
by Ioannes
01:40
created
src/Time24.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,15 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Cron.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'],
Please login to merge, or discard this patch.