Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | final protected function parse(string $file, bool $debug = false): string |
||
28 | { |
||
29 | $content = \file_get_contents(__DIR__.'/Fixture/'.$file); |
||
30 | |||
31 | $loader = \class_exists(ArrayLoader::class) |
||
32 | ? new ArrayLoader() |
||
33 | : new \Twig_Loader_Array([]); |
||
34 | $env = new Environment($loader); |
||
35 | $env->addExtension(new SymfonyTranslationExtension($translator = new IdentityTranslator())); |
||
36 | $env->addExtension(new TranslationExtension($translator, $debug)); |
||
37 | |||
38 | return (string) $env->parse($env->tokenize(new Source($content, '')))->getNode('body'); |
||
39 | } |
||
41 |
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