Total Complexity | 14 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class ValueFormatter |
||
21 | { |
||
22 | /** |
||
23 | * @param mixed $value |
||
24 | * @param bool $addQuotes |
||
25 | * @return mixed |
||
26 | */ |
||
27 | 36 | public static function formatValue($value, bool $addQuotes = true) |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * Escape an string |
||
62 | * |
||
63 | * @param string $value |
||
64 | * @return string |
||
65 | */ |
||
66 | 19 | private static function escapeString($value) |
|
67 | { |
||
68 | 19 | return addslashes($value); |
|
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 19 | private static function formatStringParameter($value) |
|
77 | } |
||
78 | } |
||
79 |