diff --git a/.php_cs b/.php_cs index d1f4eef..090c677 100644 --- a/.php_cs +++ b/.php_cs @@ -54,7 +54,6 @@ $fixers = [ 'remove_leading_slash_use', 'remove_lines_between_uses', 'return', - 'self_accessor', 'short_tag', 'single_array_no_trailing_comma', 'single_blank_line_before_namespace', diff --git a/src/DiDom/Document.php b/src/DiDom/Document.php index 53be63b..9c35db7 100644 --- a/src/DiDom/Document.php +++ b/src/DiDom/Document.php @@ -126,9 +126,9 @@ public function load($string, $isFile = false, $type = 'html') libxml_clear_errors(); libxml_disable_entity_loader(false); - libxml_use_internal_errors(false); + libxml_use_internal_errors(false); - return $this; + return $this; } /** diff --git a/src/DiDom/Query.php b/src/DiDom/Query.php index ba7603f..b05daf0 100644 --- a/src/DiDom/Query.php +++ b/src/DiDom/Query.php @@ -109,7 +109,6 @@ public static function buildXpath($segments, $prefix = '//') // if the attributes specified if (isset($segments['attributes'])) { foreach ($segments['attributes'] as $name => $value) { - $attributes[] = self::convertAttribute($name, $value); } }