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

tests/ArraysTest.php 2 locations

@@ 414-427 (lines=14) @@
411
     * @test
412
     * @covers ::extract
413
     */
414
    public function extract()
415
    {
416
        $input = [
417
            ['key' => 'foo', 'value' => 'bar', 'extra' => 'abc'],
418
            ['extra' => 123, 'key' => 'baz', 'value' => 'fez'],
419
            ['value' => 'duplicate1', 'extra' => true, 'key' => 'boo'],
420
            ['extra' => true, 'key' => 'noValue'],
421
            ['value' => 'duplicate2', 'extra' => true, 'key' => 'boo'],
422
        ];
423
424
        $expected = ['foo' => 'bar', 'baz' => 'fez', 'boo' => 'duplicate2', 'noValue' => null];
425
426
        $this->assertSame($expected, A::extract($input, 'key', 'value'));
427
    }
428
429
    /**
430
     * Basic usage of extract() with 'takeFirst' option
@@ 435-448 (lines=14) @@
432
     * @test
433
     * @covers ::extract
434
     */
435
    public function extractTakeFirst()
436
    {
437
        $input = [
438
            ['key' => 'foo', 'value' => 'bar', 'extra' => 'abc'],
439
            ['extra' => 123, 'key' => 'baz', 'value' => 'fez'],
440
            ['value' => 'duplicate1', 'extra' => true, 'key' => 'boo'],
441
            ['extra' => true, 'key' => 'noValue'],
442
            ['value' => 'duplicate2', 'extra' => true, 'key' => 'boo'],
443
        ];
444
445
        $expected = ['foo' => 'bar', 'baz' => 'fez', 'boo' => 'duplicate1', 'noValue' => null];
446
447
        $this->assertSame($expected, A::extract($input, 'key', 'value', 'takeFirst'));
448
    }
449
450
    /**
451
     * Basic usage of extract() with 'throw' option