| Conditions | 5 | 
| Paths | 4 | 
| Total Lines | 22 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 14 | 
| CRAP Score | 5 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 28 | 10 | public function pass(FuncCall $funcCall, Context $context)  | 
            |
| 29 |     { | 
            ||
| 30 | 10 | $functionName = $this->resolveFunctionName($funcCall, $context);  | 
            |
| 31 | 10 |         if (!$functionName || !isset($this->map[$functionName])) { | 
            |
| 32 | 8 | return false;  | 
            |
| 33 | }  | 
            ||
| 34 | |||
| 35 | 2 |         if ($funcCall->getDocComment()) { | 
            |
| 36 | 1 | $phpdoc = $this->docBlockFactory->create($funcCall->getDocComment()->getText());  | 
            |
| 37 | 1 |             if ($phpdoc->hasTag('expected')) { | 
            |
| 38 | 1 | return false;  | 
            |
| 39 | }  | 
            ||
| 40 | 1 | }  | 
            |
| 41 | |||
| 42 | 2 | $context->notice(  | 
            |
| 43 | 2 | 'debug.code',  | 
            |
| 44 | 2 |             sprintf('Function %s() is a debug function, please don`t use it in production.', $functionName), | 
            |
| 45 | $funcCall  | 
            ||
| 46 | 2 | );  | 
            |
| 47 | |||
| 48 | 2 | return true;  | 
            |
| 49 | }  | 
            ||
| 50 | }  | 
            ||
| 51 |