@@ 95-101 (lines=7) @@ | ||
92 | if ($this->attributeNameMatcher instanceof Matcher) { |
|
93 | if ($this->valueMatcher instanceof Matcher) { |
|
94 | /** @var \DOMAttr $attribute */ |
|
95 | foreach ($item->attributes as $attribute) { |
|
96 | if ( $this->attributeNameMatcher->matches($attribute->name) |
|
97 | && $this->valueMatcher->matches($attribute->value) |
|
98 | ) { |
|
99 | return true; |
|
100 | } |
|
101 | } |
|
102 | } else { |
|
103 | /** @var \DOMAttr $attribute */ |
|
104 | foreach ($item->attributes as $attribute) { |
|
@@ 104-110 (lines=7) @@ | ||
101 | } |
|
102 | } else { |
|
103 | /** @var \DOMAttr $attribute */ |
|
104 | foreach ($item->attributes as $attribute) { |
|
105 | if ( $this->attributeNameMatcher->matches($attribute->name) |
|
106 | && $attribute->value === $this->valueMatcher |
|
107 | ) { |
|
108 | return true; |
|
109 | } |
|
110 | } |
|
111 | } |
|
112 | } else { |
|
113 | if ($this->valueMatcher instanceof Matcher) { |