Completed
Push — master ( 96b1a5...66acb9 )
by Andreu
21:07 queued 06:04
created
src/Errors/UnserializationError.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 Unicity\Errors;
5 5
 
Please login to merge, or discard this patch.
src/Interfaces/GUID.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 Unicity\Interfaces;
5 5
 
Please login to merge, or discard this patch.
phpunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__.'/vendor/autoload.php';
3
+include __DIR__ . '/vendor/autoload.php';
Please login to merge, or discard this patch.
src/GUIDFactory.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 Unicity;
5 5
 
Please login to merge, or discard this patch.
src/Errors/GUIDInvariantsViolationError.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 Unicity\Errors;
5 5
 
Please login to merge, or discard this patch.
src/Errors/UnicityError.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 Unicity\Errors;
5 5
 
Please login to merge, or discard this patch.
src/Interfaces/GUIDFactory.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 Unicity\Interfaces;
5 5
 
Please login to merge, or discard this patch.
src/GUID.php 1 patch
Spacing   +4 added lines, -4 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 Unicity;
5 5
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         if ($expectedLength !== $strLen) {
40 40
             throw new UnserializationError(
41 41
                 'The passed string has an unexpected length ' .
42
-                \json_encode(['expected' => $expectedLength, 'given' => $strLen])
42
+                \json_encode([ 'expected' => $expectedLength, 'given' => $strLen ])
43 43
             );
44 44
         }
45 45
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         for ($i = $nTimeBytes - 1; $i >= 0; $i--) {
127 127
             $timeByte = $bytesPool & 0xff;
128
-            $timeBytes[$i] = \chr($timeByte);
128
+            $timeBytes[ $i ] = \chr($timeByte);
129 129
             $bytesPool = ($bytesPool - $timeByte) >> 8;
130 130
         }
131 131
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     private static function getAdjustedTimeBytes(int $nTimeBytes): int
136 136
     {
137 137
         $ts_parts = \explode(' ', microtime());
138
-        $micros = (int)\round($ts_parts[0] * 1000000) + ((int)$ts_parts[1]) * 1000000;
138
+        $micros = (int)\round($ts_parts[ 0 ] * 1000000) + ((int)$ts_parts[ 1 ]) * 1000000;
139 139
 
140 140
         switch ($nTimeBytes) {
141 141
             case 7: return $micros;
Please login to merge, or discard this patch.