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

app/Repositories/ServerRepository.php 2 locations

@@ 207-213 (lines=7) @@
204
                $totals = Models\Server::select(DB::raw('SUM(memory) as memory, SUM(disk) as disk'))->where('node_id', $node->id)->first();
205
206
                // Check memory limits
207
                if (is_numeric($node->memory_overallocate)) {
208
                    $newMemory = $totals->memory + $data['memory'];
209
                    $memoryLimit = ($node->memory * (1 + ($node->memory_overallocate / 100)));
210
                    if ($newMemory > $memoryLimit) {
211
                        throw new DisplayException('The amount of memory allocated to this server would put the node over its allocation limits. This node is allowed ' . ($node->memory_overallocate + 100) . '% of its assigned ' . $node->memory . 'Mb of memory (' . $memoryLimit . 'Mb) of which ' . (($totals->memory / $node->memory) * 100) . '% (' . $totals->memory . 'Mb) is in use already. By allocating this server the node would be at ' . (($newMemory / $node->memory) * 100) . '% (' . $newMemory . 'Mb) usage.');
212
                    }
213
                }
214
215
                // Check Disk Limits
216
                if (is_numeric($node->disk_overallocate)) {
@@ 216-222 (lines=7) @@
213
                }
214
215
                // Check Disk Limits
216
                if (is_numeric($node->disk_overallocate)) {
217
                    $newDisk = $totals->disk + $data['disk'];
218
                    $diskLimit = ($node->disk * (1 + ($node->disk_overallocate / 100)));
219
                    if ($newDisk > $diskLimit) {
220
                        throw new DisplayException('The amount of disk allocated to this server would put the node over its allocation limits. This node is allowed ' . ($node->disk_overallocate + 100) . '% of its assigned ' . $node->disk . 'Mb of disk (' . $diskLimit . 'Mb) of which ' . (($totals->disk / $node->disk) * 100) . '% (' . $totals->disk . 'Mb) is in use already. By allocating this server the node would be at ' . (($newDisk / $node->disk) * 100) . '% (' . $newDisk . 'Mb) usage.');
221
                    }
222
                }
223
            }
224
        }
225