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 = 9-9 lines in 4 locations

tests/Serializer/SerializerTest.php 4 locations

@@ 14-22 (lines=9) @@
11
 */
12
class SerializerTest extends PHPUnit_Framework_TestCase
13
{
14
    public function testCollectionWithDefaultResourceKey()
15
    {
16
        $serializer = new Serializer();
17
        $result = $serializer->collection(null, ['foo']);
18
19
        $this->assertSame([
20
            'data' => ['foo']
21
        ], $result);
22
    }
23
24
    public function testCollectionWithCustomResourceKey()
25
    {
@@ 24-32 (lines=9) @@
21
        ], $result);
22
    }
23
24
    public function testCollectionWithCustomResourceKey()
25
    {
26
        $serializer = new Serializer();
27
        $result = $serializer->collection('custom', ['foo']);
28
29
        $this->assertSame([
30
            'custom' => ['foo']
31
        ], $result);
32
    }
33
34
    public function testItemWithDefaultResourceKey()
35
    {
@@ 34-42 (lines=9) @@
31
        ], $result);
32
    }
33
34
    public function testItemWithDefaultResourceKey()
35
    {
36
        $serializer = new Serializer();
37
        $result = $serializer->item(null, ['foo']);
38
39
        $this->assertSame([
40
            'data' => ['foo']
41
        ], $result);
42
    }
43
44
    public function testITemWithCustomResourceKey()
45
    {
@@ 44-52 (lines=9) @@
41
        ], $result);
42
    }
43
44
    public function testITemWithCustomResourceKey()
45
    {
46
        $serializer = new Serializer();
47
        $result = $serializer->collection('custom', ['foo']);
48
49
        $this->assertSame([
50
            'custom' => ['foo']
51
        ], $result);
52
    }
53
}
54