| Conditions | 8 | 
| Paths | 6 | 
| Total Lines | 18 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 8 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 28 | 10 | public function matches($other): bool | |
| 29 |     { | ||
| 30 | 10 |         foreach ($other as $field) { | |
| 31 | 10 |             if ($this->allowPanels && $field instanceof Panel) { | |
| 32 | 2 |                 if ($this->matches($field->data)) { | |
| 33 | 2 | return true; | |
| 34 | } | ||
| 35 | 10 |             } elseif ($field instanceof Field) { | |
| 36 | if ( | ||
| 37 | 10 | $field->attribute === $this->fieldName || | |
| 38 | 10 | \mb_strtolower($field->name) === \mb_strtolower($this->fieldName) | |
| 39 |                 ) { | ||
| 40 | 10 | return true; | |
| 41 | } | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | 4 | return false; | |
| 46 | } | ||
| 48 |