Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 12 |
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 | $this->command->line('Copy data:'); |
||
37 | $this->command->line(' source: <comment>'.$source.'</comment>'); |
||
38 | $this->command->line(' destination: <comment>'.$dest.'</comment>'); |
||
39 | $shouldCopy = $this->command->confirm("Do you want to copy files?"); |
||
40 | |||
41 | if ($shouldCopy) { |
||
42 | $this->filesystem->copyDirectory($source, $dest); |
||
43 | $this->command->info('COPIED'); |
||
44 | } else { |
||
45 | $this->command->info('NOT COPIED'); |
||
46 | } |
||
47 | } |
||
48 | } |
This check marks private properties in classes that are never used. Those properties can be removed.