Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | 5 | public function pass(FuncCall $funcCall, Context $context) |
|
25 | { |
||
26 | 5 | $functionName = $this->resolveFunctionName($funcCall, $context); |
|
27 | 5 | if ($functionName && isset($this->map[$functionName])) { |
|
28 | 1 | $context->notice( |
|
29 | 1 | 'rand.api.migration', |
|
30 | 1 | sprintf( |
|
31 | 1 | 'Function %s() is not recommended, please use mt_%s analog instead of it.', |
|
32 | 1 | $functionName, |
|
33 | $functionName |
||
34 | 1 | ), |
|
35 | $funcCall |
||
36 | 1 | ); |
|
37 | 1 | } |
|
38 | 5 | } |
|
39 | } |
||
40 |