function Standard::pMaybeMultiline
Parameters
Node[] $nodes :
12 calls to Standard::pMaybeMultiline()
- Standard::pExpr_Array in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php - Standard::pExpr_ArrowFunction in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php - Standard::pExpr_Closure in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php - Standard::pExpr_FuncCall in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php - Standard::pExpr_List in vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ PrettyPrinter/ Standard.php, line 1174
Class
Namespace
PhpParser\PrettyPrinterCode
protected function pMaybeMultiline(array $nodes, bool $trailingComma = false) : string {
if (!$this->hasNodeWithComments($nodes)) {
return $this->pCommaSeparated($nodes);
}
else {
return $this->pCommaSeparatedMultiline($nodes, $trailingComma) . $this->nl;
}
}