| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | private function getAuthConfig(array $config = array()) |
||
| 39 | { |
||
| 40 | if (count($config)) { |
||
| 41 | $ret = array(); |
||
| 42 | $ret['type'] = $this->get($config, 'type', 'basic'); |
||
| 43 | $ret['login'] = $this->get($config, 'login', ''); |
||
| 44 | $ret['pass'] = $this->get($config, 'pass', ''); |
||
| 45 | return $ret; |
||
| 46 | } |
||
| 47 | else { |
||
| 48 | return null; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 61 |