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 = 21-21 lines in 2 locations

tests/class-text-parser-test.php 2 locations

@@ 128-148 (lines=21) @@
125
	 *
126
	 * @uses ::get_all
127
	 */
128
	public function test_load_email() {
129
		$parser = $this->parser;
130
131
		$string = 'Quoth the raven, "nevermore"! Please mail to [email protected].';
132
		$this->assertTrue( $parser->load( $string ) );
133
134
		$tokens = $parser->get_all();
135
		$this->assertCount( 19, $tokens );
136
137
		$this->assertArraySubset( [
138
			0 => new Token( 'Quoth', Token::WORD ),
139
		], $tokens );
140
		$this->assertArraySubset( [
141
			5 => new Token( ',', Token::PUNCTUATION ),
142
		], $tokens );
143
		$this->assertArraySubset( [
144
			17 => new Token( '[email protected]', Token::OTHER ),
145
		], $tokens );
146
147
		return $parser;
148
	}
149
150
	/**
151
	 * Test load with URL.
@@ 206-226 (lines=21) @@
203
	 *
204
	 * @uses ::get_all
205
	 */
206
	public function test_load_compound_word() {
207
		$parser = $this->parser;
208
209
		$string = 'Some don\'t trust the captain-owner.';
210
		$this->assertTrue( $parser->load( $string ) );
211
212
		$tokens = $parser->get_all();
213
		$this->assertCount( 10, $tokens );
214
215
		$this->assertArraySubset( [
216
			0 => new Token( 'Some', Token::WORD ),
217
		], $tokens );
218
		$this->assertArraySubset( [
219
			2 => new Token( "don't", Token::OTHER ),
220
		], $tokens );
221
		$this->assertArraySubset( [
222
			8 => new Token( 'captain-owner', Token::WORD ),
223
		], $tokens );
224
225
		return $parser;
226
	}
227
228
	/**
229
	 * Test load with an invalid encoding.