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 = 24-26 lines in 3 locations

tests/Hateoas/Tests/Serializer/JsonHalSerializerTest.php 1 location

@@ 281-306 (lines=26) @@
278
        );
279
    }
280
281
    public function testGh236()
282
    {
283
        $data = new CollectionRepresentation([new Gh236Foo()]);
284
285
        $hateoas = HateoasBuilder::buildHateoas();
286
287
        $this->assertSame(
288
            <<<JSON
289
{
290
    "_embedded": {
291
        "items": [
292
            {
293
                "a": {
294
                    "xxx": "yyy"
295
                },
296
                "_embedded": {
297
                    "b_embed": {
298
                        "xxx": "zzz"
299
                    }
300
                }
301
            }
302
        ]
303
    }
304
}
305
JSON
306
            ,
307
            $this->json(
308
                $hateoas->serialize($data, 'json', SerializationContext::create()->enableMaxDepthChecks())
309
            )

tests/Hateoas/Tests/Serializer/XmlHalSerializerTest.php 1 location

@@ 51-74 (lines=24) @@
48
        );
49
    }
50
51
    public function testGh236()
52
    {
53
        $data = new CollectionRepresentation([new Gh236Foo()]);
54
55
        $hateoas = HateoasBuilder::create()
56
            ->setXmlSerializer(new XmlHalSerializer())
57
            ->build();
58
59
        $this->assertSame(
60
            <<<XML
61
<?xml version="1.0" encoding="UTF-8"?>
62
<collection>
63
  <resource rel="items">
64
    <a>
65
      <xxx><![CDATA[yyy]]></xxx>
66
    </a>
67
    <resource rel="b_embed">
68
      <xxx><![CDATA[zzz]]></xxx>
69
    </resource>
70
  </resource>
71
</collection>
72
73
XML
74
            ,
75
            $hateoas->serialize($data, 'xml', SerializationContext::create()->enableMaxDepthChecks())
76
        );
77
    }

tests/Hateoas/Tests/Serializer/XmlSerializerTest.php 1 location

@@ 120-143 (lines=24) @@
117
        );
118
    }
119
120
    public function testGh236()
121
    {
122
        $data = new CollectionRepresentation([new Gh236Foo()]);
123
124
        $hateoas = HateoasBuilder::buildHateoas();
125
126
        $this->assertSame(
127
            <<<XML
128
<?xml version="1.0" encoding="UTF-8"?>
129
<collection>
130
  <entry rel="items">
131
    <entry>
132
      <a>
133
        <xxx><![CDATA[yyy]]></xxx>
134
      </a>
135
      <entry rel="b_embed">
136
        <xxx><![CDATA[zzz]]></xxx>
137
      </entry>
138
    </entry>
139
  </entry>
140
</collection>
141
142
XML
143
            ,
144
            $hateoas->serialize($data, 'xml', SerializationContext::create()->enableMaxDepthChecks())
145
        );
146
    }