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 2 locations

src/WorkflowRunParams/EntryIdResolver.php 2 locations

@@ 336-343 (lines=8) @@
333
334
        $index = [];
335
        foreach ($metadata as $metadataItem) {
336
            if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && !array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) {
337
                $errMsg = sprintf(
338
                    'You must specify the %s or %s',
339
                    static::WORKFLOW_MANAGER_NAME,
340
                    static::WORKFLOW_MANAGER_ALIAS
341
                );
342
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
343
            }
344
345
            if (array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) {
346
                $errMsg = sprintf(
@@ 345-352 (lines=8) @@
342
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
343
            }
344
345
            if (array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem) && array_key_exists(static::WORKFLOW_MANAGER_ALIAS, $metadataItem)) {
346
                $errMsg = sprintf(
347
                    'You can not specify both %s and %s',
348
                    static::WORKFLOW_MANAGER_NAME,
349
                    static::WORKFLOW_MANAGER_ALIAS
350
                );
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);