| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 18 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function pass(FuncCall $funcCall, Context $context)  | 
            ||
| 13 |     { | 
            ||
| 14 | $functionName = $this->resolveFunctionName($funcCall, $context);  | 
            ||
| 15 | |||
| 16 |         if ($functionName !== 'unserialize') { | 
            ||
| 17 | return false;  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 |         if (count($funcCall->args) < 2) { | 
            ||
| 21 | $context->notice(  | 
            ||
| 22 | 'unsafe.unserialize',  | 
            ||
| 23 |                 sprintf('unserialize() should be used with a list of allowed classes or false as 2nd parameter.'), | 
            ||
| 24 | $funcCall  | 
            ||
| 25 | );  | 
            ||
| 26 | return true;  | 
            ||
| 27 | }  | 
            ||
| 28 | return false;  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 42 |