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

app/Repositories/ServerRepository.php 5 locations

@@ 580-583 (lines=4) @@
577
578
            // @TODO: verify that server can be set to this much memory without
579
            // going over node limits.
580
            if (isset($data['memory']) && $server->memory !== (int) $data['memory']) {
581
                $server->memory = $data['memory'];
582
                $newBuild['memory'] = (int) $server->memory;
583
            }
584
585
            if (isset($data['swap']) && $server->swap !== (int) $data['swap']) {
586
                $server->swap = $data['swap'];
@@ 585-588 (lines=4) @@
582
                $newBuild['memory'] = (int) $server->memory;
583
            }
584
585
            if (isset($data['swap']) && $server->swap !== (int) $data['swap']) {
586
                $server->swap = $data['swap'];
587
                $newBuild['swap'] = (int) $server->swap;
588
            }
589
590
            // @TODO: verify that server can be set to this much disk without
591
            // going over node limits.
@@ 592-595 (lines=4) @@
589
590
            // @TODO: verify that server can be set to this much disk without
591
            // going over node limits.
592
            if (isset($data['disk']) && $server->disk !== (int) $data['disk']) {
593
                $server->disk = $data['disk'];
594
                $newBuild['disk'] = (int) $server->disk;
595
            }
596
597
            if (isset($data['cpu']) && $server->cpu !== (int) $data['cpu']) {
598
                $server->cpu = $data['cpu'];
@@ 597-600 (lines=4) @@
594
                $newBuild['disk'] = (int) $server->disk;
595
            }
596
597
            if (isset($data['cpu']) && $server->cpu !== (int) $data['cpu']) {
598
                $server->cpu = $data['cpu'];
599
                $newBuild['cpu'] = (int) $server->cpu;
600
            }
601
602
            if (isset($data['io']) && $server->io !== (int) $data['io']) {
603
                $server->io = $data['io'];
@@ 602-605 (lines=4) @@
599
                $newBuild['cpu'] = (int) $server->cpu;
600
            }
601
602
            if (isset($data['io']) && $server->io !== (int) $data['io']) {
603
                $server->io = $data['io'];
604
                $newBuild['io'] = (int) $server->io;
605
            }
606
607
            // Try save() here so if it fails we haven't contacted the daemon
608
            // This won't be committed unless the HTTP request succeedes anyways