| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class PhpFileLoader extends Loader |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function load($file, $type = null) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public function supports($resource, $type = null) |
||
| 40 | { |
||
| 41 | return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'php' === $type); |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Includes a PHP file. |
||
| 46 | * |
||
| 47 | * @param string $file |
||
| 48 | * |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | private static function includeFile($file) |
||
| 54 | } |
||
| 55 | } |
||
| 56 |