| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 42 | protected function getFileInfo(string $file) : array | ||
| 43 |     { | ||
| 44 |         if (!file_exists($file)) { | ||
| 45 |             throw new \InvalidArgumentException("File: {$file} does not exists!"); | ||
| 46 | } | ||
| 47 | |||
| 48 | $fileInfo = pathinfo($file); | ||
| 49 | |||
| 50 |         if ($fileInfo['extension'] !== 'php') { | ||
| 51 |             throw new \InvalidArgumentException('File need to be a php!'); | ||
| 52 | } | ||
| 53 | |||
| 54 | return $fileInfo; | ||
|  | |||
| 55 | } | ||
| 57 |