Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
1 | <?php |
||
46 | 16 | protected function escapeValues(array $values, Escaper $escaper) |
|
47 | { |
||
48 | 16 | $escapedValues = array(); |
|
49 | |||
50 | 16 | foreach($values as $value) |
|
51 | { |
||
52 | 16 | $formatedValue = $this->type->format($value); |
|
53 | 16 | if($this->type->isEscapeRequired()) |
|
54 | 16 | { |
|
55 | 12 | $formatedValue = $escaper->escape($formatedValue); |
|
56 | 12 | } |
|
57 | |||
58 | 16 | $escapedValues[] = $formatedValue; |
|
59 | 16 | } |
|
60 | |||
61 | 16 | return $escapedValues; |
|
62 | } |
||
63 | } |
||
64 |