IndexTaxonomyRoutes::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 7
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Jidaikobo\Kontiki\Controllers\Routes;
4
5
use Slim\Routing\RouteCollectorProxy;
6
7
class IndexTaxonomyRoutes
8
{
9
    public static function register(
10
        RouteCollectorProxy $app,
11
        string $basePath,
12
        string $controllerClass
13
    ): void {
14
        $app->get("/{$basePath}/index/taxonomy", [$controllerClass, 'indexTaxonomy'])
15
            ->setName("{$basePath}|x_index_taxonomy|sidebar,dashboard");
16
    }
17
}
18