Tweak coding style

This commit is contained in:
Nikita Popov 2021-09-12 21:53:48 +02:00
parent 632ead3a82
commit b5234eacd0

View File

@ -826,8 +826,8 @@ abstract class PrettyPrinterAbstract
// We go multiline if the original code was multiline, // We go multiline if the original code was multiline,
// or if it's an array item with a comment above it. // or if it's an array item with a comment above it.
if ($insertStr === ', ' && ( if ($insertStr === ', ' &&
$this->isMultiline($origNodes) || !empty($arrItem->getAttribute('comments'))) ($this->isMultiline($origNodes) || $arrItem->getComments())
) { ) {
$insertStr = ','; $insertStr = ',';
$insertNewline = true; $insertNewline = true;