Conditions | 2 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2.0145 |
Changes | 0 |
1 | <?php |
||
38 | 2 | public function execute() |
|
39 | { |
||
40 | 2 | $root = $this->vars['root']; |
|
41 | |||
42 | try { |
||
43 | 2 | $finder = Finder::create() |
|
44 | 2 | ->files() |
|
45 | 2 | ->in($root) |
|
46 | 2 | ->exclude(basename($this->vars['skeleton'])) |
|
47 | 2 | ->depth(0) |
|
48 | 2 | ->ignoreDotFiles(false); |
|
49 | 2 | $this->fs->remove($finder); |
|
50 | 2 | $this->fs->remove([$root.'/src', $root.'/tests']); |
|
51 | } catch (\Exception $e) { |
||
52 | throw new RuntimeException($e->getMessage(), $e->getCode(), $e); |
||
53 | } |
||
54 | 2 | } |
|
55 | |||
64 |