Skip to content

Commit

Permalink
style(php-cs-fixer): lint php files and fix coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions authored and github-actions[bot] committed May 26, 2024
1 parent a80c794 commit 2265ec5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ 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,
memory_get_usage(),
)->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);
}
}

Expand All @@ -80,7 +80,7 @@ function tr(mixed ...$values): mixed
*/
function td(mixed ...$values): never
{
\tr(...$values);
tr(...$values);
die;
}

Expand Down

0 comments on commit 2265ec5

Please sign in to comment.