| Conditions | 2 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.2109 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | 1 | private function transfer(string $dest, string $source, array $options = []): bool |
|
| 57 | { |
||
| 58 | try { |
||
| 59 | 1 | $manager = new \Aws\S3\Transfer($this->client->getConn(), $source, $dest, $options); |
|
| 60 | 1 | $manager->transfer(); |
|
| 61 | |||
| 62 | 1 | $this->commandHandlerLogger?->log($this, sprintf('Files were successfully transfered from \'%s\' to \'%s\'', $source, $dest)); |
|
| 63 | |||
| 64 | 1 | return true; |
|
| 65 | } catch (RuntimeException $e) { |
||
| 66 | $this->commandHandlerLogger?->logExceptionAndReturnFalse($e); |
||
| 67 | |||
| 68 | throw $e; |
||
| 69 | } |
||
| 72 |