Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class LocaleSelector |
||
11 | { |
||
12 | /** |
||
13 | * @var \Illuminate\Contracts\Config\Repository |
||
14 | */ |
||
15 | protected $config; |
||
16 | |||
17 | /** |
||
18 | * @var \Illuminate\Contracts\Translation\Translator |
||
19 | */ |
||
20 | protected $translator; |
||
21 | |||
22 | /** |
||
23 | * SetLocaleFromHeader constructor. |
||
24 | * |
||
25 | * @param \Illuminate\Contracts\Config\Repository $config |
||
26 | * @param \Illuminate\Contracts\Translation\Translator $translator |
||
27 | */ |
||
28 | public function __construct(Repository $config, Translator $translator) |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Handle an incoming request. |
||
36 | * |
||
37 | * @param \Illuminate\Http\Request $request |
||
38 | * @param \Closure $next |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function handle(Request $request, Closure $next) |
||
54 |
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