Total Complexity | 5 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
9 | class Core extends Smarty |
||
10 | { |
||
11 | private $temp = '.'; |
||
12 | |||
13 | 1 | public function __construct(string $tempDirectory) |
|
14 | { |
||
15 | 1 | parent::__construct(); |
|
16 | 1 | $this->temp = $tempDirectory; |
|
17 | 1 | $this->setCompileDir("{$this->temp}/smarty_compiled_templates"); |
|
18 | 1 | } |
|
19 | |||
20 | public function __destruct() |
||
21 | { |
||
22 | if($this->temp === '.' && file_exists("./smarty_compiled_templates")) { |
||
23 | Filesystem::get("./smarty_compiled_templates")->delete(); |
||
24 | } |
||
25 | } |
||
26 | |||
27 | 1 | public function setData($data) |
|
31 | 1 | } |
|
32 | } |
||
33 |
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