@@ -36,9 +36,7 @@ public function __construct(
3636 protected DeviationService $ deviation = new DeviationService ,
3737 ) {}
3838
39- /**
40- * Creates a new benchmark instance.
41- */
39+ /** Creates a new benchmark instance. */
4240 public static function make (): static
4341 {
4442 return new static ;
@@ -178,9 +176,7 @@ public function toData(): array
178176 return $ this ->mapResult ();
179177 }
180178
181- /**
182- * Outputs benchmark results to the console as a table.
183- */
179+ /** Outputs benchmark results to the console as a table. */
184180 public function toConsole (): void
185181 {
186182 if (! $ data = $ this ->toData ()) {
@@ -194,9 +190,7 @@ public function toConsole(): void
194190 );
195191 }
196192
197- /**
198- * Returns the assertion service for performing result checks.
199- */
193+ /** Returns the assertion service for performing result checks. */
200194 public function toAssert (): AssertService
201195 {
202196 if (! $ data = $ this ->toData ()) {
@@ -206,29 +200,23 @@ public function toAssert(): AssertService
206200 return new AssertService ($ data );
207201 }
208202
209- /**
210- * Performs the benchmark: simple comparison or with deviation calculation.
211- */
203+ /** Performs the benchmark: simple comparison or with deviation calculation. */
212204 protected function perform (): void
213205 {
214206 $ this ->deviations === 1
215207 ? $ this ->performCompare ()
216208 : $ this ->performDeviation ();
217209 }
218210
219- /**
220- * Transforms collected data into an array of results.
221- */
211+ /** Transforms collected data into an array of results. */
222212 protected function mapResult (): array
223213 {
224214 return $ this ->result ->get (
225215 $ this ->collector ->all ()
226216 );
227217 }
228218
229- /**
230- * Performs a simple comparison of callback functions.
231- */
219+ /** Performs a simple comparison of callback functions. */
232220 protected function performCompare (): void
233221 {
234222 $ callbacks = $ this ->callbacks ->compare ;
@@ -239,9 +227,7 @@ protected function performCompare(): void
239227 );
240228 }
241229
242- /**
243- * Performs a comparison with deviation calculation through multiple runs.
244- */
230+ /** Performs a comparison with deviation calculation through multiple runs. */
245231 protected function performDeviation (): void
246232 {
247233 $ results = [];
@@ -357,9 +343,7 @@ protected function push(mixed $name, float $time, float $memory): void
357343 $ this ->collector ->push ($ name , [$ time , $ memory ]);
358344 }
359345
360- /**
361- * Clears results and collected data.
362- */
346+ /** Clears results and collected data. */
363347 protected function clear (): void
364348 {
365349 $ this ->result ->clear ();
0 commit comments