| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 8 | public function register(Container $container): void |
|
| 34 | { |
||
| 35 | 8 | $container->set( |
|
| 36 | 8 | TranslatorInterface::class, |
|
| 37 | function (ContainerInterface $container) { |
||
| 38 | 6 | $aliases = $container->get(Aliases::class); |
|
| 39 | |||
| 40 | 6 | $translator = new Translator( |
|
| 41 | 6 | $container->get(EventDispatcherInterface::class), |
|
| 42 | 6 | new PhpFile($aliases->get($this->translatePath)), |
|
| 43 | 6 | null |
|
| 44 | ); |
||
| 45 | |||
| 46 | 6 | $translator->setDefaultLocale($this->locale); |
|
| 47 | |||
| 48 | 6 | return $translator; |
|
| 49 | 8 | } |
|
| 53 |
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