diff --git a/src/Support/Caster/Trace.php b/src/Support/Caster/Trace.php index 559ecdb9..e3475ed0 100644 --- a/src/Support/Caster/Trace.php +++ b/src/Support/Caster/Trace.php @@ -30,8 +30,7 @@ public function __construct( public readonly float $delta, public readonly int $memory, public readonly array $stack, - ) { - } + ) {} public function __toString(): string { diff --git a/src/Support/Caster/TraceFile.php b/src/Support/Caster/TraceFile.php index 1c606919..9240e153 100644 --- a/src/Support/Caster/TraceFile.php +++ b/src/Support/Caster/TraceFile.php @@ -21,8 +21,7 @@ final class TraceFile */ public function __construct( public readonly array $line, - ) { - } + ) {} public function __toString(): string { diff --git a/src/functions.php b/src/functions.php index 8bcb8f79..448fdf90 100644 --- a/src/functions.php +++ b/src/functions.php @@ -53,7 +53,7 @@ function tr(mixed ...$values): mixed try { if ($values === []) { $previous = $time; - $mem = $time = \microtime(true); + $mem = $time = microtime(true); return TrapHandle::fromTicker( $counter, $counter === 0 ? 0 : $mem - $previous, @@ -61,11 +61,11 @@ function tr(mixed ...$values): mixed )->return(); } - $mem = $time = \microtime(true); + $mem = $time = microtime(true); /** @psalm-suppress InternalMethod */ return TrapHandle::fromArray($values)->return(); } finally { - $mem === $time and $time = \microtime(true); + $mem === $time and $time = microtime(true); } } @@ -80,7 +80,7 @@ function tr(mixed ...$values): mixed */ function td(mixed ...$values): never { - \tr(...$values); + tr(...$values); die; }