| Conditions | 6 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 4 | public function matches($other): bool |
|
| 27 | { |
||
| 28 | 4 | foreach ($other as $field) { |
|
| 29 | 4 | if ($this->allowPanels && $field instanceof Panel) { |
|
| 30 | 2 | if (! $this->matches($field->data)) { |
|
| 31 | 2 | return false; |
|
| 32 | } |
||
| 33 | 4 | } elseif (! $field instanceof Field) { |
|
| 34 | 4 | return false; |
|
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | 3 | return true; |
|
| 39 | } |
||
| 41 |