Lines 100.00% 8 / 8
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 apply 100.00% 8 / 8 100.00% 1 / 1 1
17final class RoutingConfiguration
18{
19    /**
20     * @param App<null> $app
21     */
22    public static function apply(App $app): void
23    {
24        $app->get("/", HomeController::class);
25        $app->get("/list", ListController::class)->setName("list");
26        $app->get("/add", AddFormController::class)->setName("add");
27        $app->post("/add", AddActionController::class);
28        $app->get("/edit/{id}", EditFormController::class)->setName("edit");
29        $app->post("/edit/{id}", EditActionController::class);
30        $app->get("/remove/{id}", RemoveFormController::class)->setName("remove");
31        $app->post("/remove/{id}", RemoveActionController::class);
32    }
33}