Passed
Push — master ( 4a4957...316a3e )
by Peter
04:37
created

website-routes.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
use AbterPhp\Website\Constant\Routes;
6
use Opulence\Routing\Router;
7
8
/**
9
 * ----------------------------------------------------------
10
 * Create all of the routes for the HTTP kernel
11
 * ----------------------------------------------------------
12
 *
13
 * @var Router $router
14
 */
15
$router->group(
16
    ['controllerNamespace' => 'AbterPhp\Website\Http\Controllers'],
17
    function (Router $router) {
18
        /** @see \AbterPhp\Website\Http\Controllers\Website\Index::index() */
19
        $router->get(Routes::PATH_INDEX, 'Website\Index@index', [OPTION_NAME => Routes::ROUTE_INDEX]);
0 ignored issues
show
The constant OPTION_NAME was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
20
21
        /** @see \AbterPhp\Website\Http\Controllers\Website\Index::fallback() */
22
        $router->get(
23
            Routes::PATH_FALLBACK,
24
            'Website\Index@fallback',
25
            [
26
                OPTION_NAME => Routes::ROUTE_FALLBACK,
27
                OPTION_VARS => [Routes::VAR_ANYTHING => '[\w\d\-]+'],
0 ignored issues
show
The constant OPTION_VARS was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
28
            ]
29
        );
30
    }
31
);
32