Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 11 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
52 | 5 | View Code Duplication | private function escapeValue($value, Escaper $escaper) |
53 | { |
||
54 | 5 | $value = $this->column->format($value); |
|
55 | |||
56 | 5 | if($this->column->isEscapeRequired()) |
|
57 | { |
||
58 | 4 | $value = $escaper->escape($value); |
|
59 | } |
||
60 | |||
61 | 5 | return $value; |
|
62 | } |
||
63 | } |
||
64 |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.