| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class FuncTag extends Tag |
||
|
|
|||
| 6 | { |
||
| 7 | private $pattern = '/{\s?func ([\w]+)\((.*?)\)\s?}/is'; |
||
| 8 | private $match; |
||
| 9 | private $funcName; |
||
| 10 | private $funcArgs; |
||
| 11 | |||
| 12 | public function handle(): void |
||
| 13 | { |
||
| 14 | if (preg_match_all($this->pattern, self::$content, $matches, PREG_SET_ORDER)) { |
||
| 15 | for ($i = 0; $i < count($matches); $i++) { |
||
| 16 | $this->match = $matches[$i]; |
||
| 17 | $this->setFuncName(); |
||
| 18 | $this->setFuncArgs(); |
||
| 19 | $content = '<?php '.$this->funcName.'('.$this->funcArgs.'); ?>'; |
||
| 20 | self::$content = str_replace($matches[$i][0], $content, self::$content); |
||
| 21 | }; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | private function setFuncName() |
||
| 28 | } |
||
| 29 | |||
| 30 | private function setFuncArgs() |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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