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-12 lines in 5 locations

tests/Hateoas/Tests/Serializer/ExclusionManagerTest.php 5 locations

@@ 15-24 (lines=10) @@
12
13
class ExclusionManagerTest extends TestCase
14
{
15
    public function testDoesNotSkipNonNullEmbedded()
16
    {
17
        $exclusionManager = new ExclusionManager($this->mockExpressionEvaluator());
18
19
        $object = new \StdClass();
20
        $relation = new Relation('foo', 'foo', 'foo');
21
        $context = SerializationContext::create();
22
23
        $this->assertFalse($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
24
    }
25
26
    public function testSkipNullEmbedded()
27
    {
@@ 26-35 (lines=10) @@
23
        $this->assertFalse($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
24
    }
25
26
    public function testSkipNullEmbedded()
27
    {
28
        $exclusionManager = new ExclusionManager($this->mockExpressionEvaluator());
29
30
        $object = new \StdClass();
31
        $relation = new Relation('foo', 'foo');
32
        $context = SerializationContext::create();
33
34
        $this->assertTrue($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
35
    }
36
37
    public function testDoesNotSkipNonNullLink()
38
    {
@@ 37-46 (lines=10) @@
34
        $this->assertTrue($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
35
    }
36
37
    public function testDoesNotSkipNonNullLink()
38
    {
39
        $exclusionManager = new ExclusionManager($this->mockExpressionEvaluator());
40
41
        $object = new \StdClass();
42
        $relation = new Relation('foo', 'foo');
43
        $context = SerializationContext::create();
44
45
        $this->assertFalse($exclusionManager->shouldSkipLink($object, $relation, $context));
46
    }
47
48
    public function testSkipNullLink()
49
    {
@@ 48-57 (lines=10) @@
45
        $this->assertFalse($exclusionManager->shouldSkipLink($object, $relation, $context));
46
    }
47
48
    public function testSkipNullLink()
49
    {
50
        $exclusionManager = new ExclusionManager($this->mockExpressionEvaluator());
51
52
        $object = new \StdClass();
53
        $relation = new Relation('foo', null, 'foo');
54
        $context = SerializationContext::create();
55
56
        $this->assertTrue($exclusionManager->shouldSkipLink($object, $relation, $context));
57
    }
58
59
    public function testSkip()
60
    {
@@ 88-99 (lines=12) @@
85
        $this->assertTrue($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
86
    }
87
88
    public function testSkipEmbedded()
89
    {
90
        $exclusionManager = new ExclusionManager($this->mockExpressionEvaluator());
91
92
        $object = new \StdClass();
93
        $relation = new Relation('foo', 'foo', 'foo');
94
        $context = SerializationContext::create()
95
            ->addExclusionStrategy($this->mockExclusionStrategy(true))
96
        ;
97
98
        $this->assertTrue($exclusionManager->shouldSkipEmbedded($object, $relation, $context));
99
    }
100
101
    /**
102
     * @dataProvider getTestSkipExcludeIfData