@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @param bool $readable Whether the result must be human-readable. |
| 43 | 43 | * @param null|string $format The format to display (printf format). |
| 44 | 44 | */ |
| 45 | - public function getMemoryPeak(bool $readable = false, ?string $format = null): int|string; |
|
| 45 | + public function getMemoryPeak(bool $readable = false, ?string $format = null): int | string; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * Returns the memory usage at the end checkpoint. |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | * @throws LogicException Should be thrown if end() and/or start() has not been called. |
| 54 | 54 | * Can be checked with hasStarted() and hasEnded(). |
| 55 | 55 | */ |
| 56 | - public function getMemoryUsage(bool $readable = false, ?string $format = null): int|string; |
|
| 56 | + public function getMemoryUsage(bool $readable = false, ?string $format = null): int | string; |
|
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * Returns the elapsed time, readable or not. |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @throws LogicException Should be thrown if end() and/or start() has not been called. |
| 65 | 65 | * Can be checked with hasStarted() and hasEnded(). |
| 66 | 66 | */ |
| 67 | - public function getTime(bool $readable = false, ?string $format = null): float|string; |
|
| 67 | + public function getTime(bool $readable = false, ?string $format = null): float | string; |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * Checks if a bench has ended. |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @inheritDoc |
| 72 | 72 | */ |
| 73 | 73 | #[\Override] |
| 74 | - public function getMemoryPeak(bool $readable = false, ?string $format = null): int|string |
|
| 74 | + public function getMemoryPeak(bool $readable = false, ?string $format = null): int | string |
|
| 75 | 75 | { |
| 76 | 76 | $memory = memory_get_peak_usage(true); |
| 77 | 77 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * @inheritDoc |
| 87 | 87 | */ |
| 88 | 88 | #[\Override] |
| 89 | - public function getMemoryUsage(bool $readable = false, ?string $format = null): int|string |
|
| 89 | + public function getMemoryUsage(bool $readable = false, ?string $format = null): int | string |
|
| 90 | 90 | { |
| 91 | 91 | if (!$this->hasStarted()) { |
| 92 | 92 | throw new LogicException('Bench has not been started. Call start() first.'); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * @inheritDoc |
| 108 | 108 | */ |
| 109 | 109 | #[\Override] |
| 110 | - public function getTime(bool $readable = false, ?string $format = null): float|string |
|
| 110 | + public function getTime(bool $readable = false, ?string $format = null): float | string |
|
| 111 | 111 | { |
| 112 | 112 | if (!$this->hasStarted()) { |
| 113 | 113 | throw new LogicException('Bench has not been started. Call start() first.'); |