Conditions | 4 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function handle($request, Closure $next) |
||
20 | { |
||
21 | $this->app = app(); |
||
22 | $this->config = $this->app['config']; |
||
23 | |||
24 | $supportedLocales = $this->config->get('url-aliases-laravellocalization.supportedLocales'); |
||
25 | |||
26 | if (empty($request->segment(1)) || count($request->segments()) == 1 && in_array($request->segment(1), array_keys($supportedLocales))) { |
||
27 | return $next($request); |
||
28 | } |
||
29 | |||
30 | abort(404); |
||
31 | } |
||
33 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths