| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | 2 | public function getMtime(string $filename): int | |
| 30 |     { | ||
| 31 | 2 | $mtime = @filemtime($filename); | |
| 32 | 2 |         if ($mtime === false) { | |
| 33 | 1 |             throw new RuntimeException('Could not determine mtime for ' . $filename); | |
| 34 | // ... or should we adhere to PHP's int|false convention? | ||
| 35 | } | ||
| 36 | 1 | return $mtime; | |
| 37 | } | ||
| 38 | } | ||
| 39 |