@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity\Errors; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity\Interfaces; |
5 | 5 |
@@ -1,3 +1,3 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__.'/vendor/autoload.php'; |
|
3 | +include __DIR__ . '/vendor/autoload.php'; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity\Errors; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity\Errors; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Unicity\Interfaces; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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; |