| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function pass(FuncCall $funcCall, Context $context) |
||
| 30 | { |
||
| 31 | $functionName = $this->resolveFunctionName($funcCall, $context); |
||
| 32 | if ($functionName && isset($this->map[$functionName])) { |
||
| 33 | $context->notice( |
||
| 34 | 'fcall.alias', |
||
| 35 | sprintf('%s() is an alias of another function. Use %s() instead.', $functionName, $this->map[$functionName]), |
||
| 36 | $funcCall |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | } |
||
| 41 |