@@ -100,7 +100,7 @@ |
||
100 | 100 | */ |
101 | 101 | private function escapeScriptTagContents($html) |
102 | 102 | { |
103 | - return preg_replace_callback('#(<script.*>)(.*)(</script>)#isU', function ($matches) { |
|
103 | + return preg_replace_callback('#(<script.*>)(.*)(</script>)#isU', function($matches) { |
|
104 | 104 | return $matches[1] . str_replace('</', '<\/', $matches[2]) . $matches[3]; |
105 | 105 | }, $html); |
106 | 106 | } |
@@ -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 | } |
@@ -50,7 +50,7 @@ |
||
50 | 50 | protected function matchesSafelyWithDiagnosticDescription($item, Description $mismatchDescription) |
51 | 51 | { |
52 | 52 | if ($this->matcher instanceof Matcher) { |
53 | - return $this->matcher->matches( $item->textContent ); |
|
53 | + return $this->matcher->matches($item->textContent); |
|
54 | 54 | } else { |
55 | 55 | return $item->textContent === $this->matcher; |
56 | 56 | } |
@@ -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; |