Passed
Push — master ( 0c86ce...c7a36b )
by Eric
01:55
created
src/Bench.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * @inheritDoc
71 71
      */
72
-    public function getMemoryPeak(bool $readable = false, null|string $format = null): int|string
72
+    public function getMemoryPeak(bool $readable = false, null | string $format = null): int | string
73 73
     {
74 74
         $memory = memory_get_peak_usage(true);
75 75
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     /**
84 84
      * @inheritDoc
85 85
      */
86
-    public function getMemoryUsage(bool $readable = false, null|string $format = null): int|string
86
+    public function getMemoryUsage(bool $readable = false, null | string $format = null): int | string
87 87
     {
88 88
         if (!$this->hasStarted()) {
89 89
             throw new LogicException('Bench has not been started. Call start() first.');
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     /**
104 104
      * @inheritDoc
105 105
      */
106
-    public function getTime(bool $readable = false, null|string $format = null): float|string
106
+    public function getTime(bool $readable = false, null | string $format = null): float | string
107 107
     {
108 108
         if (!$this->hasStarted()) {
109 109
             throw new LogicException('Bench has not been started. Call start() first.');
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     /**
168 168
      * @inheritDoc
169 169
      */
170
-    public static function readableElapsedTime(float $seconds, null|string $format = null, int $round = 3): string
170
+    public static function readableElapsedTime(float $seconds, null | string $format = null, int $round = 3): string
171 171
     {
172 172
         $format ??= '%.3f%s';
173 173
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     /**
184 184
      * @inheritDoc
185 185
      */
186
-    public static function readableSize(int $size, null|string $format = null, int $round = 3): string
186
+    public static function readableSize(int $size, null | string $format = null, int $round = 3): string
187 187
     {
188 188
         /**
189 189
          * @psalm-var array<array-key, string> $units
Please login to merge, or discard this patch.