| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | class FtpFactory extends AbstractFactory |
||
| 26 | { |
||
| 27 | protected string $alias = 'ftp'; |
||
| 28 | protected ?string $package = 'league/flysystem'; |
||
| 29 | protected string $className = Ftp::class; |
||
| 30 | protected array $defaults = [ |
||
| 31 | 'host' => '', |
||
| 32 | 'username' => '', |
||
| 33 | 'password' => '', |
||
| 34 | // Optional settings |
||
| 35 | 'port' => 21, |
||
| 36 | 'root' => '/', |
||
| 37 | 'passive' => true, |
||
| 38 | 'ssl' => true, |
||
| 39 | 'timeout' => 30, |
||
| 40 | 'ignorePassiveAddress' => false, |
||
| 41 | ]; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | 1 | public function build(array $config): AdapterInterface |
|
| 57 |