| Total Complexity | 10 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class TwigExtensionLegacy extends \Twig_Extension |
||
|
|
|||
| 6 | { |
||
| 7 | public function getFunction() |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getFilters() |
||
| 22 | { |
||
| 23 | $names = [ |
||
| 24 | 'format_cell' => 'format_cell', |
||
| 25 | ]; |
||
| 26 | |||
| 27 | $funcs = []; |
||
| 28 | foreach ($names as $twig => $local) { |
||
| 29 | $funcs[$twig] = new \Twig_SimpleFilter($twig, [$this, $local]); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $funcs; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getName() |
||
| 38 | } |
||
| 39 | |||
| 40 | public function format_cell($value) |
||
| 55 |
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