Skip to content

Commit 769bfe5

Browse files
committed
[CLEANUP] Avoid Hungarian notation in OutputFormatter
Part of #756
1 parent f1f3fba commit 769bfe5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/OutputFormatter.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,15 @@ public function removeLastSemicolon(string $string): string
194194
if ($this->outputFormat->getSemicolonAfterLastRule()) {
195195
return $string;
196196
}
197+
197198
$parts = \explode(';', $string);
198199
if (\count($parts) < 2) {
199200
return $parts[0];
200201
}
201-
$sLast = \array_pop($parts);
202-
$sNextToLast = \array_pop($parts);
203-
\array_push($parts, $sNextToLast . $sLast);
202+
$lastPart = \array_pop($parts);
203+
$nextToLastPart = \array_pop($parts);
204+
\array_push($parts, $nextToLastPart . $lastPart);
205+
204206
return \implode(';', $parts);
205207
}
206208

0 commit comments

Comments
 (0)