Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
31 | private function copyFiles($src, $dest) |
||
32 | { |
||
33 | $source = realpath($this->command->defaultsPath.'/'.$src); |
||
34 | $dest = base_path($dest); |
||
35 | |||
36 | $shouldCopy = $this->command->confirm("Do you want to copy files from <comment>{$source}</comment> to <comment>{$dest}</comment>"); |
||
37 | |||
38 | if ($shouldCopy) { |
||
39 | $this->filesystem->copyDirectory($source, $dest); |
||
40 | $this->command->info('COPIED'); |
||
41 | } else { |
||
42 | $this->command->info('NOT COPIED'); |
||
43 | } |
||
44 | } |
||
45 | } |
This check marks private properties in classes that are never used. Those properties can be removed.