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 bb39dff commit 8f9b9b6Copy full SHA for 8f9b9b6
src/Printer/ArrayPrinter.php
@@ -155,8 +155,8 @@ protected function pStmt_Return(Stmt\Return_ $node): string
155
count($previousTokens) > 1
156
&& $previousTokens[1]->id === T_WHITESPACE
157
&& $previousTokens[0]->id !== T_WHITESPACE
158
- && $previousTokens[1]->text === PHP_EOL . PHP_EOL
159
- ) ? PHP_EOL : '';
+ && $previousTokens[1]->text === "\n\n"
+ ) ? "\n" : '';
160
161
return $prefix . 'return' . (null !== $node->expr ? ' ' . $this->p($node->expr) : '') . ';';
162
}
0 commit comments