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