| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 30 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 19 | public function visitPhpFunctionCall(FuncCall $funcCall, Context $context)  | 
            ||
| 20 |     { | 
            ||
| 21 | $name = false;  | 
            ||
| 22 | |||
| 23 |         if ($funcCall->name instanceof Name && !$funcCall->name->isFullyQualified()) { | 
            ||
| 24 | $name = $funcCall->name->getFirst();  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 |         if ($name && isset($this->map[$name])) { | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 28 | $context->notice(  | 
            ||
| 29 | 'fcall.cast',  | 
            ||
| 30 |                 sprintf('Please use (%s) cast instead of function call.', $this->map[$name]), | 
            ||
| 31 | $funcCall  | 
            ||
| 32 | );  | 
            ||
| 33 | }  | 
            ||
| 34 | }  | 
            ||
| 35 | }  | 
            ||
| 36 | 
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: