Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2.003 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
53 | 3 | public function copyFile($src, $dst, OutputInterface $output = null) |
|
54 | { |
||
55 | 3 | $process = $this->processBuilder |
|
56 | 3 | ->add($this->config['hostname'] . ':' . $src) |
|
57 | 3 | ->add($dst) |
|
58 | 3 | ->getProcess(); |
|
59 | |||
60 | 3 | $process->run( |
|
61 | 3 | $this->getCallback($output) |
|
62 | 3 | ); |
|
63 | |||
64 | 3 | if (! $process->isSuccessful()) { |
|
65 | throw new \Exception($process->getErrorOutput()); |
||
66 | } |
||
67 | 3 | } |
|
68 | |||
91 |