| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 10 | 14 | public static function update($arr, $key, $val) |
|
| 11 | { |
||
| 12 | 14 | $separatedKeys = explode('.', $key); |
|
| 13 | 14 | if (is_callable($val)) { |
|
| 14 | 10 | self::_v($arr, $separatedKeys, $val); |
|
| 15 | } else { |
||
| 16 | self::_v($arr, $separatedKeys, function($in) use ($val) { |
||
|
|
|||
| 17 | 4 | return $val; |
|
| 18 | 4 | }); |
|
| 19 | } |
||
| 20 | |||
| 21 | 14 | return $arr; |
|
| 22 | } |
||
| 46 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.