| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __invoke($data) |
||
| 15 | { |
||
| 16 | parent::__invoke($data); |
||
| 17 | |||
| 18 | if ('.php' !== substr($data, -4)) { |
||
| 19 | throw new RuntimeException('The file provided does not have a .php extension.'); |
||
| 20 | } |
||
| 21 | |||
| 22 | if ('text/x-php' !== mime_content_type($data)) { |
||
| 23 | throw new RuntimeException('The file provided does not have the text/x-php mime type.'); |
||
| 24 | } |
||
| 27 |