| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | 39 | private function determineType(Const_ $constant): ?string  | 
            |
| 38 |     { | 
            ||
| 39 | 39 |         if ($constant->value instanceof Scalar) { | 
            |
| 40 | 36 | return self::$types[\gettype($constant->value->value)];  | 
            |
| 41 | }  | 
            ||
| 42 | 6 |         if ($constant->value instanceof ConstFetch) { | 
            |
| 43 | 3 |             if (\in_array($constant->value->name->parts[0], ['true', 'false'], true)) { | 
            |
| 44 | 3 | return 'bool';  | 
            |
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 | 3 | return null; // It's an expression  | 
            |
| 48 | }  | 
            ||
| 50 |