| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function handle($request, Closure $next) |
||
| 32 | { |
||
| 33 | $currentLocale = $this->localization->getCurrentLocale(); |
||
| 34 | $supportedLocale = $this->localization->getSupportedLocales()[$currentLocale]; |
||
| 35 | |||
| 36 | /* |
||
| 37 | * setLocale for php. Enables localized dates, format numbers, etc. |
||
| 38 | */ |
||
| 39 | setlocale(LC_ALL, |
||
| 40 | $supportedLocale['regional'], |
||
| 41 | "{$supportedLocale['regional']}.utf-8", |
||
| 42 | "{$supportedLocale['regional']}.iso-8859-1", |
||
| 43 | $supportedLocale['locale_win'] |
||
| 44 | ); |
||
| 45 | |||
| 46 | /* |
||
| 47 | * setLocale to use Carbon source locales. Enables diffForHumans() localized |
||
| 48 | */ |
||
| 49 | Carbon::setLocale($currentLocale); |
||
| 50 | Carbon::setUtf8(true); |
||
| 51 | |||
| 52 | /* |
||
| 53 | * Set Captcha locale |
||
| 54 | */ |
||
| 55 | app('config')->set('no-captcha.lang', $currentLocale); |
||
| 56 | |||
| 57 | return $next($request); |
||
| 58 | } |
||
| 60 |
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