| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 48 | public function skipProperty(PropertyMetadataInterface $property, ContextInterface $context) |
|
| 41 | { |
||
| 42 | 48 | if (!$property->hasGroups()) { |
|
| 43 | 48 | return !in_array(self::GROUP_DEFAULT, $this->groups, true); |
|
| 44 | } |
||
| 45 | |||
| 46 | 48 | foreach ($this->groups as $group) { |
|
| 47 | 48 | if ($property->hasGroup($group)) { |
|
| 48 | 48 | return false; |
|
| 49 | } |
||
| 50 | 24 | } |
|
| 51 | |||
| 52 | 32 | return true; |
|
| 53 | } |
||
| 54 | } |
||
| 55 |