@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -7,6 +7,6 @@ |
||
| 7 | 7 | { |
| 8 | 8 | public function create(string $pattern, string $replacement = ''): callable |
| 9 | 9 | { |
| 10 | - return static fn ($value): string => preg_replace($pattern, $replacement, $value); |
|
| 10 | + return static fn($value): string => preg_replace($pattern, $replacement, $value); |
|
| 11 | 11 | } |
| 12 | 12 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types = 1); |
|
| 2 | +declare(strict_types=1); |
|
| 3 | 3 | |
| 4 | 4 | namespace PTS\Tools; |
| 5 | 5 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public static function createFromDateTime(DateTime $date): MicroDate |
| 30 | 30 | { |
| 31 | - return new self($date->getTimestamp(), (int)$date->format('u')); |
|
| 31 | + return new self($date->getTimestamp(), (int) $date->format('u')); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | public static function now(): MicroDate |
| 38 | 38 | { |
| 39 | 39 | [$uSec, $sec] = explode(' ', microtime()); |
| 40 | - $uSec = (float)$uSec * 100000; |
|
| 41 | - return new self((int)$sec, (int)$uSec); |
|
| 40 | + $uSec = (float) $uSec * 100000; |
|
| 41 | + return new self((int) $sec, (int) $uSec); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | public function toDateTime(DateTimeZone $timeZone = null): DateTime |
| 50 | 50 | { |
| 51 | - $date = DateTime::createFromFormat('U.u', $this->sec . '.' . $this->uSec); |
|
| 51 | + $date = DateTime::createFromFormat('U.u', $this->sec.'.'.$this->uSec); |
|
| 52 | 52 | if ($timeZone) { |
| 53 | 53 | $date->setTimezone($timeZone); |
| 54 | 54 | } |