mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 12:04:39 +01:00
Tweak coding style
This commit is contained in:
parent
632ead3a82
commit
b5234eacd0
@ -826,8 +826,8 @@ abstract class PrettyPrinterAbstract
|
||||
|
||||
// We go multiline if the original code was multiline,
|
||||
// or if it's an array item with a comment above it.
|
||||
if ($insertStr === ', ' && (
|
||||
$this->isMultiline($origNodes) || !empty($arrItem->getAttribute('comments')))
|
||||
if ($insertStr === ', ' &&
|
||||
($this->isMultiline($origNodes) || $arrItem->getComments())
|
||||
) {
|
||||
$insertStr = ',';
|
||||
$insertNewline = true;
|
||||
|
Loading…
Reference in New Issue
Block a user