We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 26 | public function solve($value, $config = null) |
|
|
|||
17 | { |
||
18 | 26 | if (is_callable($value)) { |
|
19 | 19 | return $value; |
|
20 | } |
||
21 | |||
22 | 26 | return function () use ($value) { |
|
23 | 18 | $args = func_get_args(); |
|
24 | 18 | $result = $this->solveUsingExpressionLanguageIfNeeded( |
|
25 | 18 | $value, |
|
26 | 18 | call_user_func_array([$this, 'solveResolveCallbackArgs'], $args) |
|
27 | 18 | ); |
|
28 | |||
29 | 18 | return $result; |
|
30 | 26 | }; |
|
31 | } |
||
32 | } |
||
33 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.