| Total Complexity | 10 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class TwigExtension extends \Twig\Extension\AbstractExtension |
||
|
|
|||
| 6 | { |
||
| 7 | public function getFunction() |
||
| 8 | { |
||
| 9 | $names = [ |
||
| 10 | 'format_cell' => 'format_cell', |
||
| 11 | ]; |
||
| 12 | |||
| 13 | $funcs = []; |
||
| 14 | foreach ($names as $twig => $local) { |
||
| 15 | $funcs[$twig] = new \Twig\TwigFunction($twig, [$this, $local]); |
||
| 16 | } |
||
| 17 | |||
| 18 | return $funcs; |
||
| 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\TwigFilter($twig, [$this, $local]); |
||
| 30 | } |
||
| 31 | |||
| 32 | return $funcs; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function getName() |
||
| 36 | { |
||
| 37 | return 'dtc_grid'; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function format_cell($value) |
||
| 52 | } |
||
| 53 | } |
||
| 54 | } |
||
| 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