phpmyadmin/phpmyadmin

View on GitHub
src/Routing/Routes.php

Summary

Maintainability
D
1 day
Test Coverage

Method collect has 267 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function collect(RouteCollector $routes): void
    {
        $routes->addRoute(['GET', 'POST'], '[/]', HomeController::class);
        $routes->addRoute(['GET', 'POST'], '/browse-foreigners', BrowseForeignersController::class);
        $routes->get('/changelog', ChangeLogController::class);
Severity: Major
Found in src/Routing/Routes.php - About 1 day to fix

    File Routes.php has 314 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    declare(strict_types=1);
    
    namespace PhpMyAdmin\Routing;
    Severity: Minor
    Found in src/Routing/Routes.php - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status