Passed
Push — master ( 12a4b7...bd543f )
by Eric
05:43 queued 03:31
created
src/BenchInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Bench.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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.');
Please login to merge, or discard this patch.