Skip to content

Commit

Permalink
Faster NamePrettifier->prettifyTestMethodName()
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Mar 13, 2024
1 parent 59ad5c9 commit f96fdb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logging/TestDox/NamePrettifier.php
Expand Up @@ -147,7 +147,7 @@ public function prettifyTestMethodName(string $name): string
if ($i > 0 && $name[$i] >= 'A' && $name[$i] <= 'Z') {
$buffer .= ' ' . strtolower($name[$i]);
} else {
$isNumeric = is_numeric($name[$i]);
$isNumeric = $name[$i] >= '0' && $name[$i] <= '9';

if (!$wasNumeric && $isNumeric) {
$buffer .= ' ';
Expand Down

0 comments on commit f96fdb3

Please sign in to comment.