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

src/WorkflowRunParams/EntryIdResolver.php 6 locations

@@ 183-186 (lines=4) @@
180
181
        $index = [];
182
        foreach ($metadata as $metadataItem) {
183
            if (!array_key_exists(static::WORKFLOW_MANAGER_NAME, $metadataItem)) {
184
                $errMsg = sprintf('there is no option %s', static::WORKFLOW_MANAGER_NAME);
185
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
186
            }
187
            $workflowManagerName = $metadataItem[static::WORKFLOW_MANAGER_NAME];
188
189
            if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) {
@@ 189-192 (lines=4) @@
186
            }
187
            $workflowManagerName = $metadataItem[static::WORKFLOW_MANAGER_NAME];
188
189
            if (!array_key_exists(static::WORKFLOW_NAME, $metadataItem)) {
190
                $errMsg = sprintf('there is no option %s', static::WORKFLOW_NAME);
191
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
192
            }
193
            $workflowName = $metadataItem[static::WORKFLOW_NAME];
194
195
            if (!array_key_exists(static::MAP, $metadataItem)) {
@@ 195-198 (lines=4) @@
192
            }
193
            $workflowName = $metadataItem[static::WORKFLOW_NAME];
194
195
            if (!array_key_exists(static::MAP, $metadataItem)) {
196
                $errMsg = sprintf('there is no option %s', static::MAP);
197
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
198
            }
199
            if (!is_array($metadataItem[static::MAP])) {
200
                $errMsg = sprintf('option %s is not array', static::MAP);
201
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
@@ 199-202 (lines=4) @@
196
                $errMsg = sprintf('there is no option %s', static::MAP);
197
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
198
            }
199
            if (!is_array($metadataItem[static::MAP])) {
200
                $errMsg = sprintf('option %s is not array', static::MAP);
201
                throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
202
            }
203
            $map = $metadataItem[static::MAP];
204
205
            if (!array_key_exists($workflowManagerName, $index)) {
@@ 213-216 (lines=4) @@
210
            }
211
212
            foreach ($map as $mapItem) {
213
                if (!array_key_exists(static::ENTITY_CLASS_NAME, $mapItem)) {
214
                    $errMsg = sprintf('there is no option %s', static::ENTITY_CLASS_NAME);
215
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
216
                }
217
                $entityClassName = $mapItem[static::ENTITY_CLASS_NAME];
218
219
                if (array_key_exists($entityClassName, $index[$workflowManagerName][$workflowName])) {
@@ 224-227 (lines=4) @@
221
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
222
                }
223
224
                if (!array_key_exists(static::ROUTER_PARAM_NAME, $mapItem)) {
225
                    $errMsg = sprintf('there is no option %s', static::ROUTER_PARAM_NAME);
226
                    throw new Exception\InvalidWorkflowEntryToObjectMetadataException($errMsg);
227
                }
228
                $routerParamName = $mapItem[static::ROUTER_PARAM_NAME];
229
230
                $index[$workflowManagerName][$workflowName][$entityClassName] = $routerParamName;