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