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
     * @covers ::extract
412
     * @uses \DominionEnterprises\Util\Arrays::get
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
@@ 436-449 (lines=14) @@
433
     * @covers ::extract
434
     * @uses \DominionEnterprises\Util\Arrays::get
435
     */
436
    public function extractTakeFirst()
437
    {
438
        $input = [
439
            ['key' => 'foo', 'value' => 'bar', 'extra' => 'abc'],
440
            ['extra' => 123, 'key' => 'baz', 'value' => 'fez'],
441
            ['value' => 'duplicate1', 'extra' => true, 'key' => 'boo'],
442
            ['extra' => true, 'key' => 'noValue'],
443
            ['value' => 'duplicate2', 'extra' => true, 'key' => 'boo'],
444
        ];
445
446
        $expected = ['foo' => 'bar', 'baz' => 'fez', 'boo' => 'duplicate1', 'noValue' => null];
447
448
        $this->assertSame($expected, A::extract($input, 'key', 'value', 'takeFirst'));
449
    }
450
451
    /**
452
     * Basic usage of extract() with 'throw' option