Skip to content

Commit 9fd1fa9

Browse files
committed
Feature complete check: only pad end-of-line status when > 1 lines
Only align the "end of line" status when there is more than 1 line.
1 parent 3196f11 commit 9fd1fa9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Scripts/CheckSniffCompleteness.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ public function isComplete()
373373

374374
$filling = '';
375375
if ($current === $sniffCount) {
376-
$lines = ceil($current / 60);
377-
$filling = str_repeat(' ', (($lines * 60) - $sniffCount));
376+
$lines = ceil($current / 60);
377+
if ($lines > 1) {
378+
$filling = str_repeat(' ', (($lines * 60) - $sniffCount));
379+
}
378380
}
379381

380382
echo $filling, ' ', str_pad($current, $padding, ' ', \STR_PAD_LEFT), ' / ', $sniffCount,

0 commit comments

Comments
 (0)