Completed
Push — master ( 1dcecf...081e08 )
by Victor
08:54
created
src/Util/Date.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public static function intv(int $start, int $end, $value = null): array
27 27
     {
28
-        $start = DateTime::createFromFormat('Y-m-d', '2019-01-01')->add(new DateInterval('P' . $start . 'D'))->setTime(0,0);
29
-        $end = DateTime::createFromFormat('Y-m-d', '2019-01-01')->add(new DateInterval('P' . $end . 'D'))->setTime(23,59,59);
28
+        $start = DateTime::createFromFormat('Y-m-d', '2019-01-01')->add(new DateInterval('P' . $start . 'D'))->setTime(0, 0);
29
+        $end = DateTime::createFromFormat('Y-m-d', '2019-01-01')->add(new DateInterval('P' . $end . 'D'))->setTime(23, 59, 59);
30 30
         return [$start, $end, $value];
31 31
     }
32 32
 
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
     public static function intvg($intervals = null): IntervalGraph
40 40
     {
41 41
         $intvg = new IntervalGraph();
42
-        $intvg->setSubstractStep(static function (DateTime $bound) {
42
+        $intvg->setSubstractStep(static function(DateTime $bound) {
43 43
             return (clone $bound)->sub(new DateInterval('PT1S'));
44 44
         })
45
-            ->setAddStep(static function (DateTime $bound) {
45
+            ->setAddStep(static function(DateTime $bound) {
46 46
             return (clone $bound)->add(new DateInterval('PT1S'));
47 47
         });
48 48
         if (isset($intervals)) {
Please login to merge, or discard this patch.