@@ -19,15 +19,15 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * @throws Exception if value is invalid |
| 21 | 21 | */ |
| 22 | - public function __construct(?DateTimeImmutable $value, string $format = DateTime::ATOM) |
|
| 22 | + public function __construct(?DateTimeImmutable $value, string $format=DateTime::ATOM) |
|
| 23 | 23 | { |
| 24 | 24 | try { |
| 25 | 25 | $this->guard($value); |
| 26 | 26 | } catch (Throwable $e) { |
| 27 | 27 | throw $this->throwException($value, $e); |
| 28 | 28 | } |
| 29 | - $this->value = $value; |
|
| 30 | - $this->format = $format; |
|
| 29 | + $this->value=$value; |
|
| 30 | + $this->format=$format; |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function getValue(): ?string |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | return true; |
| 51 | 51 | } |
| 52 | 52 | /** @var DateTimeImmutable $dateTime */ |
| 53 | - $dateTime = $this->getDateTime(); |
|
| 53 | + $dateTime=$this->getDateTime(); |
|
| 54 | 54 | /** @var DateTimeImmutable $otherDateTime */ |
| 55 | - $otherDateTime = $other->getDateTime(); |
|
| 55 | + $otherDateTime=$other->getDateTime(); |
|
| 56 | 56 | return $dateTime->getTimestamp() === $otherDateTime->getTimestamp(); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | } catch (Throwable $e) { |
| 24 | 24 | throw $this->throwException($value, $e); |
| 25 | 25 | } |
| 26 | - $this->value = $value; |
|
| 26 | + $this->value=$value; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function getDateTime(): ?DateTimeImmutable |