anonymous()
last analyzed

Size

Total Lines 36
Code Lines 31

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 31
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 36
1
<?php
2
3
use Illuminate\Routing\Router;
4
5
Admin::registerAuthRoutes();
6
7
Route::group([
8
    'prefix'        => config('admin.route.prefix'),
9
    'namespace'     => config('admin.route.namespace'),
10
    'middleware'    => config('admin.route.middleware'),
11
], function(Router $router) {
12
13
    $router->get('/', 'HomeController@index')->name('admin.index');
14
    $router->resource('users', UserController::class);
0 ignored issues
show
Bug introduced by
The type UserController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
    $router->resource('announcements', AnnouncementController::class);
0 ignored issues
show
Bug introduced by
The type AnnouncementController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
    $router->get('problems/import', 'ProblemController@import');
17
    $router->resource('problems', ProblemController::class);
0 ignored issues
show
Bug introduced by
The type ProblemController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
    $router->resource('solutions', SolutionController::class);
0 ignored issues
show
Bug introduced by
The type SolutionController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
    $router->resource('submissions', SubmissionController::class);
0 ignored issues
show
Bug introduced by
The type SubmissionController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
20
    $router->resource('contests', ContestController::class);
0 ignored issues
show
Bug introduced by
The type ContestController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
21
    $router->resource('groups', GroupController::class);
0 ignored issues
show
Bug introduced by
The type GroupController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
    $router->resource('dojos', DojoController::class);
0 ignored issues
show
Bug introduced by
The type DojoController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
    $router->resource('dojophases', DojoPhaseController::class);
0 ignored issues
show
Bug introduced by
The type DojoPhaseController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
    $router->resource('dojopasses', DojoPassesController::class);
0 ignored issues
show
Bug introduced by
The type DojoPassesController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
25
    $router->resource('judge-server', JudgeServerController::class);
0 ignored issues
show
Bug introduced by
The type JudgeServerController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
26
    $router->resource('judger', JudgerController::class);
0 ignored issues
show
Bug introduced by
The type JudgerController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
27
    $router->resource('abuses', AbuseController::class);
0 ignored issues
show
Bug introduced by
The type AbuseController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
28
    $router->resource('carousels', CarouselController::class);
0 ignored issues
show
Bug introduced by
The type CarouselController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
29
30
    Route::match(['GET', 'POST'], 'codetester', 'CodeTesterController@tester')->name('admin.codetester.tester');
31
    Route::match(['GET', 'POST'], 'settings', 'SettingsController@index')->name('admin.settings.index');
32
33
    Route::group(['prefix' => 'api'], function(Router $router) {
34
        $router->get('/problems', 'ApiController@problems')->name('admin.api.problems');
35
        $router->get('/users', 'ApiController@users')->name('admin.api.users');
36
    });
37
38
    Route::group(['prefix' => 'babel'], function(Router $router) {
39
        $router->get('/', 'BabelController@index')->name('admin.babel.index');
40
        $router->get('installed', 'BabelController@installed')->name('admin.babel.installed');
41
        $router->get('marketspace', 'BabelController@marketspace')->name('admin.babel.marketspace');
42
        $router->get('marketspace/{code}', 'BabelController@detail')->name('admin.babel.detail');
43
        $router->get('update/{extension}', 'BabelController@update')->name('admin.babel.update');
44
        $router->post('update/{extension}', 'BabelController@updateExtension')->name('admin.babel.updateExtension');
45
        $router->get('install/{extension}', 'BabelController@install')->name('admin.babel.install');
46
        $router->post('install/{extension}', 'BabelController@installExtension')->name('admin.babel.installExtension');
47
    });
48
49
});
50