| 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 | 2 | array_walk($this->methodMockConfig, function(&$value, &$key) { |
|
|
|
|||
| 28 | 2 | $value = (substr($value, 0, 8) === '@string:') ? substr($value, 8) : $value; |
|
| 29 | 2 | $value = (substr($value, 0, 9) === '@integer:') ? intval(substr($value, 9)) : $value; |
|
| 30 | 2 | $value = (substr($value, 0, 9) === '@boolean:') ? filter_var(substr($value, 9), FILTER_VALIDATE_BOOLEAN) : $value; |
|
| 31 | 2 | }); |
|
| 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.