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