Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | protected function pExpr_Array(Expr\Array_ $node) |
||
14 | { |
||
15 | $syntax = $node->getAttribute( |
||
16 | 'kind', |
||
17 | $this->options['shortArraySyntax'] ? Expr\Array_::KIND_SHORT : Expr\Array_::KIND_LONG |
||
18 | ); |
||
19 | if ($syntax === Expr\Array_::KIND_SHORT) { |
||
20 | return '[' . $this->pCommaSeparatedMultiline($node->items, true) . $this->nl . ']'; |
||
21 | } else { |
||
22 | return 'array(' . $this->pCommaSeparatedMultiline($node->items, true) . $this->nl . ')'; |
||
23 | } |
||
26 |