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

src/WorkflowRunParams/EntryIdResolver.php 9 locations

@@ 354-357 (lines=4) @@
351
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
352
            }
353
354
            if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) {
355
                $errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME);
356
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
357
            }
358
            $workflowName = $metadataItem[static::WORKFLOW_NAME];
359
360
            if (!array_key_exists(static::ROUTER_NAME, $metadataItem)) {
@@ 360-363 (lines=4) @@
357
            }
358
            $workflowName = $metadataItem[static::WORKFLOW_NAME];
359
360
            if (!array_key_exists(static::ROUTER_NAME, $metadataItem)) {
361
                $errMsg = sprintf('there is no option %s', static::ROUTER_NAME);
362
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
363
            }
364
            $routerName = $metadataItem[static::ROUTER_NAME];
365
366
            $prefix = '';
@@ 385-388 (lines=4) @@
382
            $index[$uniqueKey] = [];
383
384
385
            if (!array_key_exists(static::MAP, $metadataItem)) {
386
                $errMsg = sprintf('there is no option %s', static::MAP);
387
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
388
            }
389
            if (!is_array($metadataItem[static::MAP])) {
390
                $errMsg = sprintf('option %s is not array', static::MAP);
391
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
@@ 389-392 (lines=4) @@
386
                $errMsg = sprintf('there is no option %s', static::MAP);
387
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
388
            }
389
            if (!is_array($metadataItem[static::MAP])) {
390
                $errMsg = sprintf('option %s is not array', static::MAP);
391
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
392
            }
393
            $map = $metadataItem[static::MAP];
394
395
            foreach ($map as $mapItem) {
@@ 396-399 (lines=4) @@
393
            $map = $metadataItem[static::MAP];
394
395
            foreach ($map as $mapItem) {
396
                if (!array_key_exists(static::ENTITY_CLASS_NAME, $mapItem)) {
397
                    $errMsg = sprintf('there is no option %s', static::ENTITY_CLASS_NAME);
398
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
399
                }
400
                $entityClassName = $mapItem[static::ENTITY_CLASS_NAME];
401
402
                if (array_key_exists($entityClassName, $index[$uniqueKey])) {
@@ 408-411 (lines=4) @@
405
                }
406
                $index[$uniqueKey][$entityClassName] = [];
407
408
                if (!array_key_exists(static::IDENTIFIERS_MAP, $mapItem)) {
409
                    $errMsg = sprintf('there is no option %s', static::IDENTIFIERS_MAP);
410
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
411
                }
412
                if (!is_array($mapItem[static::IDENTIFIERS_MAP])) {
413
                    $errMsg = sprintf('option %s is not array', static::IDENTIFIERS_MAP);
414
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
@@ 412-415 (lines=4) @@
409
                    $errMsg = sprintf('there is no option %s', static::IDENTIFIERS_MAP);
410
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
411
                }
412
                if (!is_array($mapItem[static::IDENTIFIERS_MAP])) {
413
                    $errMsg = sprintf('option %s is not array', static::IDENTIFIERS_MAP);
414
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
415
                }
416
417
                $identifiersMap = $mapItem[static::IDENTIFIERS_MAP];
418
@@ 420-423 (lines=4) @@
417
                $identifiersMap = $mapItem[static::IDENTIFIERS_MAP];
418
419
                foreach ($identifiersMap as $identifierItem) {
420
                    if (!array_key_exists(static::PROPERTY_NAME, $identifierItem)) {
421
                        $errMsg = sprintf('there is no option %s', static::PROPERTY_NAME);
422
                        throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
423
                    }
424
                    $propertyName = $identifierItem[static::PROPERTY_NAME];
425
426
                    if (array_key_exists($propertyName, $index[$uniqueKey][$entityClassName])) {
@@ 441-444 (lines=4) @@
438
                    }
439
                    $index[$uniqueKey][$entityClassName][$propertyName][static::MODE] = $mode;
440
441
                    if (!array_key_exists(static::PARAM_NAME, $identifierItem)) {
442
                        $errMsg = sprintf('there is no option %s', static::PARAM_NAME);
443
                        throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
444
                    }
445
                    $paramName = $identifierItem[static::PARAM_NAME];
446
                    $index[$uniqueKey][$entityClassName][$propertyName][static::PARAM_NAME] = $paramName;
447
                }