| Conditions | 3 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 88 | protected function prepareAdapter() |
||
| 89 | { |
||
| 90 | $config = []; |
||
| 91 | foreach ([ |
||
| 92 | 'host', |
||
| 93 | 'port', |
||
| 94 | 'username', |
||
| 95 | 'password', |
||
| 96 | 'ssl', |
||
| 97 | 'timeout', |
||
| 98 | 'root', |
||
| 99 | 'permPrivate', |
||
| 100 | 'permPublic', |
||
| 101 | 'passive', |
||
| 102 | 'transferMode', |
||
| 103 | ] as $name) { |
||
| 104 | if ($this->$name !== null) { |
||
| 105 | $config[$name] = $this->$name; |
||
| 106 | } |
||
| 107 | } |
||
| 108 | |||
| 109 | return new Ftp($config); |
||
| 110 | } |
||
| 111 | } |