Skip to content

Commit 6af5c8a

Browse files
committed
comment
1 parent 9660ad6 commit 6af5c8a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rules/Php81/NodeManipulator/AttributeGroupNewLiner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function newLine(File $file, Node $node): void
5151
$nextTokenText = $oldTokens[$startTokenPos + $iteration + 1]->text ?? '';
5252
if (trim($nextTokenText) === '') {
5353
// when trimmed is empty string, but original text contains new line
54+
// no need to add another new line
5455
if (str_contains($nextTokenText, "\n") || str_contains($nextTokenText, "\r")) {
5556
break;
5657
}

0 commit comments

Comments
 (0)