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

src/Converter/JsonConverter.php 3 locations

@@ 273-280 (lines=8) @@
270
            $data[JSONConstants::JSON_CAP_ACL] = CapabilityAcl::cast($data[JSONConstants::JSON_CAP_ACL]);
271
        }
272
273
        if (isset($data[JSONConstants::JSON_CAP_CREATABLE_PROPERTY_TYPES])) {
274
            $data[JSONConstants::JSON_CAP_CREATABLE_PROPERTY_TYPES] = $this->convertCreatablePropertyTypes(
275
                $data[JSONConstants::JSON_CAP_CREATABLE_PROPERTY_TYPES]
276
            );
277
            if ($data[JSONConstants::JSON_CAP_CREATABLE_PROPERTY_TYPES] === null) {
278
                unset($data[JSONConstants::JSON_CAP_CREATABLE_PROPERTY_TYPES]);
279
            }
280
        }
281
282
        if (isset($data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES])) {
283
            $data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES] = $this->convertNewTypeSettableAttributes(
@@ 282-289 (lines=8) @@
279
            }
280
        }
281
282
        if (isset($data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES])) {
283
            $data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES] = $this->convertNewTypeSettableAttributes(
284
                $data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES]
285
            );
286
            if ($data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES] === null) {
287
                unset($data[JSONConstants::JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES]);
288
            }
289
        }
290
291
        $repositoryCapabilities = new RepositoryCapabilities();
292
        $repositoryCapabilities->setExtensions($this->convertExtension($data, JSONConstants::getCapabilityKeys()));
@@ 582-589 (lines=8) @@
579
580
        $data = $this->convertTypeDefinitionSpecificData($data, $typeDefinition);
581
582
        if (isset($data[JSONConstants::JSON_TYPE_TYPE_MUTABILITY])) {
583
            $data[JSONConstants::JSON_TYPE_TYPE_MUTABILITY] = $this->convertTypeMutability(
584
                $data[JSONConstants::JSON_TYPE_TYPE_MUTABILITY]
585
            );
586
            if ($data[JSONConstants::JSON_TYPE_TYPE_MUTABILITY] === null) {
587
                unset($data[JSONConstants::JSON_TYPE_TYPE_MUTABILITY]);
588
            }
589
        }
590
591
        if (isset($data[JSONConstants::JSON_TYPE_PROPERTY_DEFINITIONS])
592
            && is_array($data[JSONConstants::JSON_TYPE_PROPERTY_DEFINITIONS])