@@ -15,7 +15,7 @@ |
||
15 | 15 | private $matcher; |
16 | 16 | |
17 | 17 | /** |
18 | - * @param Matcher|string|null $elementMatcher |
|
18 | + * @param null|Matcher $elementMatcher |
|
19 | 19 | * |
20 | 20 | * @return self |
21 | 21 | */ |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $description->appendText('having child '); |
38 | 38 | if ($this->matcher) { |
39 | 39 | if ($this->matcher instanceof Matcher) { |
40 | - $description->appendDescriptionOf( $this->matcher ); |
|
40 | + $description->appendDescriptionOf($this->matcher); |
|
41 | 41 | } else { |
42 | 42 | $description->appendValue($this->matcher); |
43 | 43 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | if ($this->valueMatcher instanceof Matcher) { |
94 | 94 | /** @var \DOMAttr $attribute */ |
95 | 95 | foreach ($item->attributes as $attribute) { |
96 | - if ( $this->attributeNameMatcher->matches($attribute->name) |
|
96 | + if ($this->attributeNameMatcher->matches($attribute->name) |
|
97 | 97 | && $this->valueMatcher->matches($attribute->value) |
98 | 98 | ) { |
99 | 99 | return true; |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } else { |
103 | 103 | /** @var \DOMAttr $attribute */ |
104 | 104 | foreach ($item->attributes as $attribute) { |
105 | - if ( $this->attributeNameMatcher->matches($attribute->name) |
|
105 | + if ($this->attributeNameMatcher->matches($attribute->name) |
|
106 | 106 | && $attribute->value === $this->valueMatcher |
107 | 107 | ) { |
108 | 108 | return true; |