Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | private function compilePriceParams(bool $absolute = false, bool $withCurrencyName = true): string |
||
52 | { |
||
53 | $params = array(); |
||
54 | |||
55 | if ($absolute) { |
||
56 | $params[] = ' absolute:'; |
||
57 | } |
||
58 | |||
59 | if ($withCurrencyName) { |
||
60 | $params[] = ' currency-name:'; |
||
61 | } |
||
62 | |||
63 | if (!empty($params)) { |
||
64 | return ' ' . implode(' ', $params); |
||
65 | } |
||
66 | |||
67 | return ''; |
||
68 | } |
||
70 |