| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | 5 | public function pass(FuncCall $funcCall, Context $context) |
|
| 24 | { |
||
| 25 | 5 | $functionName = $this->resolveFunctionName($funcCall, $context); |
|
| 26 | 5 | if ($functionName && isset($this->map[$functionName])) { |
|
| 27 | 1 | $context->notice( |
|
| 28 | 1 | 'fcall.alias', |
|
| 29 | 1 | sprintf('%s() is an alias of function. Use %s(...).', $functionName, $this->map[$functionName]), |
|
| 30 | $funcCall |
||
| 31 | 1 | ); |
|
| 32 | 1 | } |
|
| 33 | 5 | } |
|
| 34 | } |
||
| 35 |