Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
1 | <?php |
||
20 | 18 | public function toString(Escaper $escaper) |
|
21 | { |
||
22 | 18 | if($this->isEmpty()) |
|
23 | 18 | { |
|
24 | 2 | return ''; |
|
25 | } |
||
26 | |||
27 | 16 | $values = $this->escapeValues($this->values, $escaper); |
|
28 | |||
29 | 16 | return sprintf( |
|
30 | 16 | '%s %s (%s)', |
|
31 | 16 | $this->type->getName(), |
|
32 | 16 | $this->getOperator(), |
|
33 | 16 | implode(', ', $values) |
|
34 | 16 | ); |
|
35 | } |
||
36 | |||
64 |