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 = 6-6 lines in 2 locations

src/Templates/WorkflowTemplate.php 2 locations

@@ 172-177 (lines=6) @@
169
            }
170
        }
171
172
        foreach ($transitions as $transition) {
173
            if (isset($actions[$transition->Target])) {
174
                $transition->NextActionID = $actions[$transition->Target]->ID;
175
            }
176
            $transition->write();
177
        }
178
179
        return $actions;
180
    }
@@ 368-373 (lines=6) @@
365
            }
366
        }
367
368
        foreach ($transitions as $transition) {
369
            if (isset($actions[$transition->Target])) {
370
                $transition->NextActionID = $actions[$transition->Target]->ID;
371
            }
372
            $transition->write();
373
        }
374
375
        // Set the version and do the write at the end so that we don't trigger an infinite loop!!
376
        $definition->Description = $this->getDescription();