Skip to content

Commit 2459463

Browse files
authored
Merge pull request #5 from PHPCSStandards/feature/feature-complete-script-minor-tweaks
Feature complete check: only pad end-of-line status when > 1 lines
2 parents 3196f11 + 9fd1fa9 commit 2459463

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)