| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function visitOperator(Operator $op, $parentOperator = null) |
||
| 28 | { |
||
| 29 | $currentOperator = $op->operator(); |
||
| 30 | $expression = $op->firstOperand()->accept($this, $currentOperator). |
||
| 31 | $currentOperator.$op->secondOperand()->accept($this, $currentOperator); |
||
| 32 | |||
| 33 | return $this->requireParentheses($currentOperator, $parentOperator) ? '('.$expression.')' : $expression; |
||
| 34 | } |
||
| 35 | |||
| 67 |