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

code/dataobjects/WorkflowTransition.php 1 location

@@ 256-267 (lines=12) @@
253
     *
254
     * @return ArrayList
255
     */
256
    public function getAssignedMembers()
257
    {
258
        $members = ArrayList::create($this->Users()->toArray());
259
        $groups  = $this->Groups();
260
261
        foreach ($groups as $group) {
262
            $members->merge($group->Members());
263
        }
264
265
        $members->removeDuplicates();
266
        return $members;
267
    }
268
269
    /*
270
     * A simple field same-value checker.

code/dataobjects/WorkflowInstance.php 1 location

@@ 470-483 (lines=14) @@
467
     * @todo   This could be made more efficient.
468
     * @return ArrayList
469
     */
470
    public function getAssignedMembers()
471
    {
472
        $list   = new ArrayList();
473
        $groups = $this->Groups();
474
475
        $list->merge($this->Users());
476
477
        foreach ($groups as $group) {
478
            $list->merge($group->Members());
479
        }
480
481
        $list->removeDuplicates();
482
        return $list;
483
    }
484
485
    /**
486
     *