Conditions | 5 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
25 | 8 | public function matches($other): bool |
|
26 | { |
||
27 | 8 | foreach ($other as $field) { |
|
28 | 8 | if ($field instanceof Field) { |
|
29 | if ( |
||
30 | 8 | $field->attribute === $this->fieldName || |
|
31 | 8 | \mb_strtolower($field->name) === \mb_strtolower($this->fieldName) |
|
32 | ) { |
||
33 | 8 | return true; |
|
34 | } |
||
35 | } |
||
36 | } |
||
37 | |||
38 | 4 | return false; |
|
39 | } |
||
41 |