Test Failed
Pull Request — master (#101)
by Maximo
05:24
created

api/routes/api.php (2 issues)

Labels
Severity
1
<?php
2
3
use Baka\Router\RouteGroup;
0 ignored issues
show
The type Baka\Router\RouteGroup 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...
4
use Baka\Router\Route;
0 ignored issues
show
The type Baka\Router\Route 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...
5
6
$routes = [
7
    Route::get('/')->controller('IndexController'),
8
    Route::get('/status')->controller('IndexController')->action('status'),
9
];
10
11
$routeGroup = RouteGroup::from($routes)
12
                ->defaultNamespace('Gewaer\Api\Controllers')
13 71
                ->defaultPrefix('/v1');
14 71
15
return $routeGroup->toCollections();
16