Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function getTranslation(string $key): string |
||
24 | { |
||
25 | if (isset($this->translations[$key])) { |
||
26 | return $this->translations[$key]; |
||
27 | } |
||
28 | |||
29 | if (config('saas-ready.translation.strategy') === 'single') { |
||
30 | $translation = Translation::findByKey($key, ['translations']); |
||
31 | $this->translations[$key] = $translation?->translations[$this->langCode] ?? $key; |
||
32 | |||
33 | return $this->translations[$key]; |
||
34 | } |
||
35 | |||
36 | return $key; |
||
37 | } |
||
48 |
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