| Conditions | 3 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | protected function prepareAdapter() |
||
| 66 | { |
||
| 67 | $config = []; |
||
| 68 | |||
| 69 | foreach ([ |
||
| 70 | 'baseUri', |
||
| 71 | 'userName', |
||
| 72 | 'password', |
||
| 73 | 'proxy', |
||
| 74 | 'authType', |
||
| 75 | 'encoding', |
||
| 76 | ] as $name) { |
||
| 77 | if ($this->$name !== null) { |
||
| 78 | $config[$name] = $this->$name; |
||
| 79 | } |
||
| 80 | } |
||
| 81 | |||
| 82 | return new WebDAVAdapter( |
||
| 83 | new Client($config), |
||
| 84 | $this->prefix |
||
| 85 | ); |
||
| 86 | } |
||
| 87 | } |
||
| 88 |