| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | class HtmlMatcher extends DiagnosingMatcher | 
| 10 | 10 |  { | 
| 11 | - /** | |
| 11 | + /** | |
| 12 | 12 | * @link http://www.xmlsoft.org/html/libxml-xmlerror.html#xmlParserErrors | 
| 13 | 13 | * @link https://github.com/Chronic-Dev/libxml2/blob/683f296a905710ff285c28b8644ef3a3d8be9486/include/libxml/xmlerror.h#L257 | 
| 14 | 14 | */ | 
| @@ -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 | } | 
| @@ -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 | } | 
| @@ -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; |