Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function make() |
||
36 | { |
||
37 | $archive = $this->name . '.zip'; |
||
38 | // download archive |
||
39 | File::saveFromUrl($this->url, '/' . $archive); |
||
|
|||
40 | // extract archive |
||
41 | $zip = new \ZipArchive(); |
||
42 | if ($zip->open(root . '/' . $archive) === true) { |
||
43 | $zip->extractTo(root); |
||
44 | $zip->close(); |
||
45 | // cleanup cache |
||
46 | App::$Cache->clean(); |
||
47 | return true; |
||
48 | } |
||
49 | |||
50 | return false; |
||
51 | } |
||
52 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.