| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function pass(FuncCall $funcCall, Context $context) |
||
| 22 | { |
||
| 23 | $functionName = $this->resolveFunctionName($funcCall, $context); |
||
| 24 | if ($functionName && isset($this->map[$functionName])) { |
||
| 25 | $context->notice( |
||
| 26 | 'rand.api.migration', |
||
| 27 | sprintf( |
||
| 28 | 'Function %s() is not recommended, please use random_int/random_bytes (PHP 7) or mt_%s (not cryptographically secure) instead.', |
||
| 29 | $functionName, |
||
| 30 | $functionName |
||
| 31 | ), |
||
| 32 | $funcCall |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |