Passed
Push — master ( f96ccf...cc2740 )
by Alexpts
01:47
created
src/PTS/Tools/CollectionInterface.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
 namespace PTS\Tools;
4 4
 
5 5
 interface CollectionInterface
Please login to merge, or discard this patch.
src/PTS/Tools/NotFoundKeyException.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
 namespace PTS\Tools;
4 4
 
5 5
 class NotFoundKeyException extends \Exception {}
Please login to merge, or discard this patch.
src/PTS/Tools/IOException.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
 namespace PTS\Tools;
4 4
 
5 5
 class IOException extends \Exception {}
Please login to merge, or discard this patch.
src/PTS/Tools/RegExpFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 {
8 8
     public function create(string $pattern, string $replacement = ''): callable
9 9
     {
10
-        return function ($value) use ($pattern, $replacement): string {
10
+        return function($value) use ($pattern, $replacement): string {
11 11
             return preg_replace($pattern, $replacement, $value);
12 12
         };
13 13
     }
Please login to merge, or discard this patch.
src/PTS/Tools/Collection.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/DuplicateKeyException.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
 namespace PTS\Tools;
4 4
 
5 5
 class DuplicateKeyException extends \Exception {}
Please login to merge, or discard this patch.
src/PTS/Tools/MicroDate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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.
src/PTS/Tools/DeepArray.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.