| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 25% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class UtilitaExtension extends \Twig_Extension |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | 1 | public function getFunctions() |
|
| 14 | { |
||
| 15 | return array( |
||
| 16 | 1 | new \Twig_SimpleFunction('db2data', array($this, 'getDb2data', 'is_safe' => array('html'))), |
|
| 17 | 1 | new \Twig_SimpleFunction('remote_file_exists', array($this, 'remoteFileExists', 'is_safe' => array('html'))), |
|
| 18 | ); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getDb2data($giorno) |
||
| 22 | { |
||
| 23 | // highlight_string highlights php code only if '<?php' tag is present. |
||
| 24 | |||
| 25 | return FiUtilita::db2data($giorno, true); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $url |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function remoteFileExists($url) |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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