| Conditions | 3 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function formatTime($time) |
||
| 18 | { |
||
| 19 | |||
| 20 | $time = abs($time); |
||
| 21 | $sec = str_pad($time % 60, 2, '0', STR_PAD_LEFT); |
||
| 22 | $min = str_pad(floor($time / 60), 2, '0', STR_PAD_LEFT); |
||
| 23 | $hour = str_pad(floor($time / 60 / 60), 1, '0'); |
||
| 24 | |||
| 25 | $formattedPieces = []; |
||
| 26 | if ($time > (60*60)) { |
||
| 27 | $formattedPieces[] = $hour . "h"; |
||
| 28 | } |
||
| 29 | if ($time > (60)) { |
||
| 30 | $formattedPieces[] = $min . "m"; |
||
| 31 | } |
||
| 32 | $formattedPieces[] = $sec . "s"; |
||
| 33 | |||
| 34 | return implode(" ", $formattedPieces); |
||
| 35 | } |
||
| 36 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths