Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
35 | 12 | public function addConfig() |
|
36 | { |
||
37 | 12 | $params = func_get_args(); |
|
38 | 12 | ||
39 | 8 | if (! empty($params)) { |
|
40 | 4 | if (is_array($params[0])) { |
|
41 | 4 | forward_static_call_array([Configuration::class, 'setMany'], $params); |
|
42 | } else { |
||
43 | 6 | forward_static_call_array([Configuration::class, 'set'], $params); |
|
44 | } |
||
45 | 12 | } |
|
46 | |||
47 | return $this; |
||
48 | 2 | } |
|
50 |