Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 10-10 lines in 2 locations

src/class-dom.php 2 locations

@@ 261-270 (lines=10) @@
258
	 *
259
	 * @return \DOMText|null The first child of type \DOMText, the element itself if it is of type \DOMText or null.
260
	 */
261
	public static function get_first_textnode( \DOMNode $node = null, $recursive = false ) {
262
		return self::get_edge_textnode( function( \DOMNodeList $children, \DOMText &$first_textnode = null ) {
263
			$i = 0;
264
265
			while ( $i < $children->length && empty( $first_textnode ) ) {
266
				$first_textnode = self::get_first_textnode( $children->item( $i ), true );
267
				$i++;
268
			}
269
		}, $node, $recursive );
270
	}
271
272
	/**
273
	 * Retrieves the last \DOMText child of the element. Block-level child elements are ignored.
@@ 280-289 (lines=10) @@
277
	 *
278
	 * @return \DOMText|null The last child of type \DOMText, the element itself if it is of type \DOMText or null.
279
	 */
280
	public static function get_last_textnode( \DOMNode $node = null, $recursive = false ) {
281
		return self::get_edge_textnode( function( \DOMNodeList $children, \DOMText &$last_textnode = null ) {
282
			$i = $children->length - 1;
283
284
			while ( $i >= 0 && empty( $last_textnode ) ) {
285
				$last_textnode = self::get_last_textnode( $children->item( $i ), true );
286
				$i--;
287
			}
288
		}, $node, $recursive );
289
	}
290
291
	/**
292
	 * Retrieves an edge \DOMText child of the element specified by the callable.