Conditions | 4 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
25 | private function transformValue() |
||
26 | { |
||
27 | 10 | array_walk($this->methodMockConfig, function(&$value, &$key) { |
|
|
|||
28 | 10 | $value = (substr($value, 0, 8) === '@string:') ? substr($value, 8) : $value; |
|
29 | 10 | $value = (substr($value, 0, 9) === '@integer:') ? intval(substr($value, 9)) : $value; |
|
30 | 10 | $value = (substr($value, 0, 9) === '@boolean:') ? filter_var(substr($value, 9), FILTER_VALIDATE_BOOLEAN) : $value; |
|
31 | 10 | }); |
|
32 | |||
33 | return $this->methodMockConfig; |
||
34 | } |
||
36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.