Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | protected function parse($old, $query, Model $model, &$transformed) |
||
19 | { |
||
20 | $key = $old; |
||
21 | $value = $model->$old; |
||
22 | |||
23 | foreach (explode('|', $query) as $command) { |
||
24 | list($function, $args) = explode(':', $command); |
||
25 | |||
26 | $args = array_merge([&$key, &$value, $model], explode(',', $args)); |
||
27 | |||
28 | call_user_func_array([$this, $function], $args); |
||
29 | } |
||
30 | |||
31 | return $transformed[$key] = $value; |
||
32 | } |
||
33 | |||
62 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.