@@ -38,8 +38,6 @@ public function __construct(
3838
3939 /**
4040 * Creates a new benchmark instance.
41- *
42- * @return static
4341 */
4442 public static function make (): static
4543 {
@@ -50,7 +48,6 @@ public static function make(): static
5048 * Sets a callback to be executed before all iterations for each comparison.
5149 *
5250 * @param Closure(int|string $name): mixed $callback
53- *
5451 * @return $this
5552 */
5653 public function before (Closure $ callback ): static
@@ -64,7 +61,6 @@ public function before(Closure $callback): static
6461 * Sets a callback to be executed before each iteration.
6562 *
6663 * @param Closure(int|string $name, int<1, max> $iteration): mixed $callback
67- *
6864 * @return $this
6965 */
7066 public function beforeEach (Closure $ callback ): static
@@ -78,7 +74,6 @@ public function beforeEach(Closure $callback): static
7874 * Sets a callback to be executed after all iterations for each comparison.
7975 *
8076 * @param Closure(int|string $name): mixed $callback
81- *
8277 * @return $this
8378 */
8479 public function after (Closure $ callback ): static
@@ -92,7 +87,6 @@ public function after(Closure $callback): static
9287 * Sets a callback to be executed after each iteration.
9388 *
9489 * @param Closure(int|string $name, int<1, max> $iteration, float $time, float $memory): mixed $callback
95- *
9690 * @return $this
9791 */
9892 public function afterEach (Closure $ callback ): static
@@ -106,7 +100,6 @@ public function afterEach(Closure $callback): static
106100 * Sets the number of iterations for each comparison.
107101 *
108102 * @param int<1, max> $count
109- *
110103 * @return $this
111104 */
112105 public function iterations (int $ count ): static
@@ -120,7 +113,6 @@ public function iterations(int $count): static
120113 * Enables deviation calculation and sets the number of runs.
121114 *
122115 * @param int<2, max> $count
123- *
124116 * @return $this
125117 */
126118 public function deviations (int $ count = 2 ): static
@@ -136,7 +128,6 @@ public function deviations(int $count = 2): static
136128 * Sets the rounding precision for time values.
137129 *
138130 * @param int<0, max>|null $precision The number of decimal places. Null means no rounding.
139- *
140131 * @return $this
141132 */
142133 public function round (?int $ precision ): static
@@ -162,7 +153,6 @@ public function disableProgressBar(): static
162153 * Registers callback functions for comparison.
163154 *
164155 * @param array|Closure ...$callbacks Callback functions or an array of callback functions for comparison.
165- *
166156 * @return $this
167157 */
168158 public function compare (array |Closure ...$ callbacks ): static
@@ -206,8 +196,6 @@ public function toConsole(): void
206196
207197 /**
208198 * Returns the assertion service for performing result checks.
209- *
210- * @return AssertService
211199 */
212200 public function toAssert (): AssertService
213201 {
@@ -230,8 +218,6 @@ protected function perform(): void
230218
231219 /**
232220 * Transforms collected data into an array of results.
233- *
234- * @return array
235221 */
236222 protected function mapResult (): array
237223 {
@@ -302,8 +288,6 @@ protected function withProgress(Closure $callback, int $total): void
302288 *
303289 * @param array $callbacks An array of callback functions.
304290 * @param int $multiplier The multiplier (number of runs).
305- *
306- * @return int
307291 */
308292 protected function steps (array $ callbacks , int $ multiplier = 1 ): int
309293 {
@@ -354,8 +338,7 @@ protected function run(mixed $name, Closure $callback, ProgressBarView $progress
354338 *
355339 * @param Closure $callback The callback function to execute.
356340 * @param array $parameters Parameters to pass to the callback.
357- *
358- * @return array An array [time in milliseconds, memory in bytes].
341+ * @return array An array [time in milliseconds, memory in bytes].
359342 */
360343 protected function call (Closure $ callback , array $ parameters = []): array
361344 {
0 commit comments