public function query_tags_to_ignore( \DOMXPath $xpath, \DOMNode $initial_node, Settings $settings ) {
		$elements    = [];
		$query_parts = [];
		if ( ! empty( $settings['ignoreTags'] ) ) {
			$query_parts[] = '//' . \implode( ' | //', /** Array. @scrutinizer ignore-type */ $settings['ignoreTags'] );
		}
		if ( ! empty( $settings['ignoreClasses'] ) ) {
			$query_parts[] = "//*[contains(concat(' ', @class, ' '), ' " . \implode( " ') or contains(concat(' ', @class, ' '), ' ", /** Array. @scrutinizer ignore-type */ $settings['ignoreClasses'] ) . " ')]";
		}
		if ( ! empty( $settings['ignoreIDs'] ) ) {
			$query_parts[] = '//*[@id=\'' . \implode( '\' or @id=\'', /** Array. @scrutinizer ignore-type */ $settings['ignoreIDs'] ) . '\']';
		}

		if ( ! empty( $query_parts ) ) {
			$ignore_query = \implode( ' | ', $query_parts );

			$nodelist = $xpath->query( $ignore_query, $initial_node );
			if ( false !== $nodelist ) {
				$elements = DOM::nodelist_to_array( $nodelist );
			}
		}

		return $elements;
	}
public function query_tags_to_ignore( \DOMXPath $xpath, \DOMNode $initial_node, Settings $settings ) {
		$elements    = [];
		$query_parts = [];
		if ( ! empty( $settings['ignoreTags'] ) ) {
			$query_parts[] = '//' . \implode( ' | //', /** Array. @scrutinizer ignore-type */ $settings['ignoreTags'] );
		}
		if ( ! empty( $settings['ignoreClasses'] ) ) {
			$query_parts[] = "//*[contains(concat(' ', @class, ' '), ' " . \implode( " ') or contains(concat(' ', @class, ' '), ' ", /** Array. @scrutinizer ignore-type */ $settings['ignoreClasses'] ) . " ')]";
		}
		if ( ! empty( $settings['ignoreIDs'] ) ) {
			$query_parts[] = '//*[@id=\'' . \implode( '\' or @id=\'', /** Array. @scrutinizer ignore-type */ $settings['ignoreIDs'] ) . '\']';
		}

		if ( ! empty( $query_parts ) ) {
			$ignore_query = \implode( ' | ', $query_parts );

			$nodelist = $xpath->query( $ignore_query, $initial_node );
			if ( false !== $nodelist ) {
				$elements = DOM::nodelist_to_array( $nodelist );
			}
		}

		return $elements;
	}
public function query_tags_to_ignore ( \ DOMXPath $ xpath , \ DOMNode $ initial_node , Settings $ settings ) { $ elements = [ ] ; $ query_parts = [ ] ; if ( ! empty ( $ settings [ 'ignoreTags' ] ) ) { $ query_parts [ ] = '//' . \ implode ( ' | //' , /** Array. @scrutinizer ignore-type */ $ settings [ 'ignoreTags' ] ) ; } if ( ! empty ( $ settings [ 'ignoreClasses' ] ) ) { $ query_parts [ ] = "//*[contains(concat(' ', @class, ' '), ' " . \ implode ( " ') or contains(concat(' ', @class, ' '), ' " , /** Array. @scrutinizer ignore-type */ $ settings [ 'ignoreClasses' ] ) . " ')]" ; } if ( ! empty ( $ settings [ 'ignoreIDs' ] ) ) { $ query_parts [ ] = '//*[@id=\'' . \ implode ( '\' or @id=\'' , /** Array. @scrutinizer ignore-type */ $ settings [ 'ignoreIDs' ] ) . '\']' ; } if ( ! empty ( $ query_parts ) ) { $ ignore_query = \ implode ( ' | ' , $ query_parts ) ; $ nodelist = $ xpath -> query ( $ ignore_query , $ initial_node ) ; if ( false !== $ nodelist ) { $ elements = DOM :: nodelist_to_array ( $ nodelist ) ; } } return $ elements ; }
Retrieves an array of nodes that should be skipped during processing.

@param \DOMXPath $xpath        A valid XPath instance for the DOM to be queried.
@param \DOMNode  $initial_node The starting node of the XPath query.
@param Settings  $settings     The settings to apply.

@return \DOMNode[] An array of \DOMNode (can be empty).
Retrieves an array of nodes that should be skipped during processing .