| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 16 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 40 | 5 | public function isCompliant(DenormalizerContextInterface $context, $object): bool  | 
            |
| 41 |     { | 
            ||
| 42 | 5 |         if ([] === $this->groups) { | 
            |
| 43 | 1 | return true;  | 
            |
| 44 | }  | 
            ||
| 45 | |||
| 46 | 4 | $contextGroups = $context->getAttribute(self::ATTRIBUTE_GROUPS, [self::GROUP_DEFAULT]);  | 
            |
| 47 | |||
| 48 | 4 |         foreach ($this->groups as $group) { | 
            |
| 49 | 4 |             if (in_array($group, $contextGroups, true)) { | 
            |
| 50 | 4 | return true;  | 
            |
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 | |||
| 54 | 2 | return false;  | 
            |
| 55 | }  | 
            ||
| 56 | }  | 
            ||
| 57 |