| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function send(string $file, array $configuration, ReportInterface $report, ReportConfigurationInterface $reportConfiguration): void |
||
| 32 | { |
||
| 33 | $configuration['root'] = $configuration['path'] ?? null; |
||
| 34 | |||
| 35 | $stream = $this->filesystem->readStream($file); |
||
| 36 | if (false === $stream) { |
||
| 37 | throw new RuntimeException(sprintf('The stream for the file %s could not be created', $file)); |
||
| 38 | } |
||
| 39 | |||
| 40 | $filesystem = new Filesystem(new Ftp($configuration)); |
||
| 41 | $filesystem->putStream($file, $stream); |
||
| 42 | } |
||
| 44 |