Completed
Push — master ( 648d4c...817611 )
by Alexpts
05:47
created
src/PTS/Tools/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Tools;
5 5
 
Please login to merge, or discard this patch.
src/PTS/Tools/MicroDate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace PTS\Tools;
5 5
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public static function createFromDateTime(DateTime $date): MicroDate
32 32
     {
33
-        return new self($date->getTimestamp(), (int)$date->format('u'));
33
+        return new self($date->getTimestamp(), (int) $date->format('u'));
34 34
     }
35 35
 
36 36
     /**
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     public static function now(): MicroDate
40 40
     {
41 41
         [$uSec, $sec] = explode(' ', microtime());
42
-        $uSec = (float)$uSec * 100000;
43
-        return new self((int)$sec, (int)$uSec);
42
+        $uSec = (float) $uSec * 100000;
43
+        return new self((int) $sec, (int) $uSec);
44 44
     }
45 45
 
46 46
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function toDateTime(DateTimeZone $timeZone = null): DateTime
52 52
     {
53
-        $date = \DateTime::createFromFormat('U.u', $this->sec . '.' . $this->uSec);
53
+        $date = \DateTime::createFromFormat('U.u', $this->sec.'.'.$this->uSec);
54 54
         if ($timeZone) {
55 55
             $date->setTimezone($timeZone);
56 56
         }
Please login to merge, or discard this patch.