| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 52 | 23 | public function getConfig($key = null) |
|
| 53 | {
|
||
| 54 | 23 | if ($key === null) |
|
| 55 | {
|
||
| 56 | 2 | return array_merge($this->configDefaults, $this->config); |
|
| 57 | } |
||
| 58 | 22 | elseif (isset($this->config[$key])) |
|
| 59 | {
|
||
| 60 | 18 | return $this->config[$key]; |
|
| 61 | } |
||
| 62 | 19 | elseif (isset($this->configDefaults[$key])) |
|
| 63 | {
|
||
| 64 | 15 | return $this->configDefaults[$key]; |
|
| 65 | } |
||
| 66 | |||
| 67 | 5 | return null; |
|
| 68 | } |
||
| 71 |