Conditions | 2 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
13 | private function getBlockContent(): void |
||
14 | { |
||
15 | $search = "/@(\s?)+extends.*@(\s?)+block(\s?)+([\w]+)/is"; |
||
16 | |||
17 | Tag::match($search, function($blockName) { |
||
18 | |||
19 | $search = "/@(\s?)+block(\s?)+$blockName(.*?)@(\s?)+endblock/is"; |
||
20 | |||
21 | Tag::match($search, function($content) use ($blockName) { |
||
22 | |||
23 | if (!array_key_exists($blockName, Tag::$blocks)) { |
||
24 | Tag::$blocks[$blockName] = $content; |
||
25 | } |
||
26 | |||
27 | Tag::replace(''); |
||
28 | |||
29 | $this->getBlockContent(); |
||
30 | }); |
||
50 |
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