We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9660ad6 commit 6af5c8aCopy full SHA for 6af5c8a
1 file changed
rules/Php81/NodeManipulator/AttributeGroupNewLiner.php
@@ -51,6 +51,7 @@ public function newLine(File $file, Node $node): void
51
$nextTokenText = $oldTokens[$startTokenPos + $iteration + 1]->text ?? '';
52
if (trim($nextTokenText) === '') {
53
// when trimmed is empty string, but original text contains new line
54
+ // no need to add another new line
55
if (str_contains($nextTokenText, "\n") || str_contains($nextTokenText, "\r")) {
56
break;
57
}
0 commit comments