Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
15 | 171 | protected function getValueWithoutQuotes($item, $key = 'base_expr') |
|
16 | { |
||
17 | 171 | $value = $item[$key]; |
|
18 | |||
19 | 171 | if (isset($item['no_quotes']['parts'][0])) { |
|
20 | 120 | if (isset($item['no_quotes']['delim'])) { |
|
21 | 105 | $value = implode($item['no_quotes']['delim'], $item['no_quotes']['parts']); |
|
22 | } else { |
||
23 | 15 | $value = $item['no_quotes']['parts'][0]; |
|
24 | } |
||
25 | } |
||
26 | |||
27 | 171 | return $value; |
|
28 | } |
||
29 | |||
62 |