This commit is contained in:
Juan Pablo Vial
2025-04-30 10:38:20 -04:00
parent 41ea5f5c15
commit dd42c12d49

View File

@ -16,7 +16,6 @@ class Benchmark
echo implode(PHP_EOL, self::$queue), PHP_EOL; echo implode(PHP_EOL, self::$queue), PHP_EOL;
self::$queue = []; self::$queue = [];
} }
public static function execute(callable $callback, ?array $args = null, ?string $description = null): mixed public static function execute(callable $callback, ?array $args = null, ?string $description = null): mixed
{ {
if (null === $description) { if (null === $description) {
@ -36,7 +35,6 @@ class Benchmark
self::$queue[$i] .= sprintf(" in %.2f seconds", $end - $start); self::$queue[$i] .= sprintf(" in %.2f seconds", $end - $start);
return $result; return $result;
} }
public static function getCallableName(callable $callable): string public static function getCallableName(callable $callable): string
{ {
return match (true) { return match (true) {