Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public static function create($name) |
||
37 | { |
||
38 | $path = null; |
||
39 | // check if a path is given for the compression command |
||
40 | if (basename($name) !== $name) { |
||
41 | $path = dirname($name); |
||
42 | $name = basename($name); |
||
43 | } |
||
44 | $class = self::getClassName($name); |
||
45 | return new $class($path); |
||
46 | } |
||
47 | |||
64 |