Skip to content

Commit

Permalink
Simplify NamePrettifier->prettifyTestMethodName()
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Mar 12, 2024
1 parent 9b96926 commit 06dd4c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Logging/TestDox/NamePrettifier.php
Expand Up @@ -145,9 +145,7 @@ public function prettifyTestMethodName(string $name): string
$wasNumeric = false;

foreach (range(0, strlen($name) - 1) as $i) {
$ord = ord($name[$i]);

if ($i > 0 && $ord >= 65 && $ord <= 90) {
if ($i > 0 && $name[$i] >= 'A' && $name[$i] <= 'Z') {
$buffer .= ' ' . strtolower($name[$i]);
} else {
$isNumeric = is_numeric($name[$i]);
Expand Down

0 comments on commit 06dd4c8

Please sign in to comment.