[CS] Space after ternary operator

This commit is contained in:
Gabriel Caruso 2018-01-10 14:38:39 -02:00 committed by Nikita Popov
parent 2499534729
commit f6617e6d25

View File

@ -553,7 +553,7 @@ class Standard extends PrettyPrinterAbstract
return ($node->static ? 'static ' : '')
. 'function ' . ($node->byRef ? '&' : '')
. '(' . $this->pCommaSeparated($node->params) . ')'
. (!empty($node->uses) ? ' use(' . $this->pCommaSeparated($node->uses) . ')': '')
. (!empty($node->uses) ? ' use(' . $this->pCommaSeparated($node->uses) . ')' : '')
. (null !== $node->returnType ? ' : ' . $this->p($node->returnType) : '')
. ' {' . $this->pStmts($node->stmts) . $this->nl . '}';
}