| 1 | <?php |
||
| 11 | class RandomApiMigration extends AbstractFunctionCallAnalyzer |
||
| 12 | { |
||
| 13 | const DESCRIPTION = 'Checks for use of old rand, srand, getrandmax functions and suggests alternatives.'; |
||
| 14 | |||
| 15 | protected $map = [ |
||
| 16 | 'rand' => 'mt_rand', |
||
| 17 | 'srand' => 'mt_srand', |
||
| 18 | 'getrandmax' => 'mt_getrandmax' |
||
| 19 | ]; |
||
| 20 | |||
| 21 | public function pass(FuncCall $funcCall, Context $context) |
||
| 36 | } |
||
| 37 |