| Conditions | 4 |
| Paths | 8 |
| Total Lines | 23 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | private function compileNumberParams(string $formatString="", bool $absolute=false) : string |
||
| 53 | { |
||
| 54 | $params = array(); |
||
| 55 | |||
| 56 | if(!empty($formatString)) |
||
| 57 | { |
||
| 58 | $params[] = sprintf( |
||
| 59 | ' "%s"', |
||
| 60 | $formatString |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | |||
| 64 | if($absolute) |
||
| 65 | { |
||
| 66 | $params[] = ' absolute:'; |
||
| 67 | } |
||
| 68 | |||
| 69 | if(!empty($params)) |
||
| 70 | { |
||
| 71 | return ' '.implode(' ', $params); |
||
| 72 | } |
||
| 73 | |||
| 74 | return ''; |
||
| 75 | } |
||
| 77 |