| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | 2 | public static function autoload($name) |
|
| 36 | { |
||
| 37 | 2 | $nm = explode('\\', $name); |
|
| 38 | 2 | $module = array_shift($nm); |
|
| 39 | |||
| 40 | 2 | $path = is_null(self::$path) ? '' : self::$path . DIRECTORY_SEPARATOR; |
|
|
|
|||
| 41 | |||
| 42 | 2 | $class = $path . implode(DIRECTORY_SEPARATOR, $nm) . ".php"; |
|
| 43 | |||
| 44 | 2 | if (file_exists($class)) { |
|
| 45 | 1 | include $class; |
|
| 46 | } |
||
| 49 |