Conditions | 4 |
Paths | 8 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
54 | private function transfer($dest, $source, $options = []) |
||
55 | { |
||
56 | try { |
||
57 | $manager = new \Aws\S3\Transfer($this->client->getConn(), $source, $dest, $options); |
||
58 | $manager->transfer(); |
||
59 | |||
60 | if (null !== $this->commandHandlerLogger) { |
||
61 | $this->commandHandlerLogger->log($this, sprintf('Files were successfully transfered from \'%s\' to \'%s\'', $source, $dest)); |
||
62 | } |
||
63 | |||
64 | return true; |
||
65 | } catch (\RuntimeException $e) { |
||
66 | if (null !== $this->commandHandlerLogger) { |
||
67 | $this->commandHandlerLogger->logExceptionAndReturnFalse($e); |
||
68 | } |
||
69 | |||
70 | throw $e; |
||
71 | } |
||
74 |