Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function autoload($className) |
||
37 | { |
||
38 | if (0 === strpos($className, $this->prefix)) { |
||
39 | $parts = explode('\\', substr($className, $this->prefixLength)); |
||
40 | $filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php'; |
||
41 | |||
42 | if (is_file($filepath)) { |
||
43 | require($filepath); |
||
44 | } |
||
48 |