IndexPublishedRoutes   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 6 1
1
<?php
2
3
namespace Jidaikobo\Kontiki\Controllers\Routes;
4
5
use Slim\Routing\RouteCollectorProxy;
6
7
class IndexPublishedRoutes
8
{
9
    public static function register(
10
        RouteCollectorProxy $app,
11
        string $basePath,
12
        string $controllerClass
13
    ): void {
14
        $app->get("/{$basePath}/index/published", [$controllerClass, 'indexPublished']);
15
    }
16
}
17