Code Duplication    Length = 7-7 lines in 3 locations

src/ServiceProvider/RouteProvider.php 3 locations

@@ 85-91 (lines=7) @@
82
            $controller->deleteAllSubmit();
83
        })->setName('run.deleteAll.submit');
84
85
        $app->get('/url/view', static function () use ($di, $app): void {
86
            /** @var Controller\RunController $controller */
87
            $controller = $di[Controller\RunController::class];
88
            $request = $app->request();
89
90
            $controller->url($request);
91
        })->setName('url.view');
92
93
        $app->get('/run/compare', static function () use ($di, $app): void {
94
            /** @var Controller\RunController $controller */
@@ 160-166 (lines=7) @@
157
            $controller->get();
158
        })->setName('watch.list');
159
160
        $app->post('/watch', static function () use ($di, $app): void {
161
            /** @var Controller\WatchController $controller */
162
            $controller = $di[Controller\WatchController::class];
163
            $request = $app->request();
164
165
            $controller->post($request);
166
        })->setName('watch.save');
167
168
        // Custom report routes.
169
        $app->get('/custom', static function () use ($di): void {
@@ 175-181 (lines=7) @@
172
            $controller->get();
173
        })->setName('custom.view');
174
175
        $app->get('/custom/help', static function () use ($di, $app): void {
176
            /** @var Controller\CustomController $controller */
177
            $controller = $di[Controller\CustomController::class];
178
            $request = $app->request();
179
180
            $controller->help($request);
181
        })->setName('custom.help');
182
183
        $app->post('/custom/query', static function () use ($di, $app): void {
184
            /** @var Controller\CustomController $controller */