Passed
Push — master ( 470f50...6685b9 )
by Ioannes
01:53
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.