| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 14 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 16 | 2 | #[Override] | |
| 17 | public function render(CellDataInterface $data, PanelAttributesInterface $panel): string | ||
| 18 |     { | ||
| 19 | 2 |         if ($data->getAnomalyTypes() === null) { | |
| 20 | 1 | return ''; | |
| 21 | } | ||
| 22 | |||
| 23 | 1 | $zIndex = PanelLayerEnum::ANOMALIES->value; | |
| 24 | |||
| 25 | 1 | return implode( | |
| 26 | 1 | "\n", | |
| 27 | 1 |             array_map(function (string $anomalyType) use (&$zIndex, $panel): string { | |
| 28 | 1 | return sprintf( | |
| 29 | 1 | '<img src="/assets/map/anomalies/%s.png" class="visualPanelLayer" style="z-index: %d; %s opacity: 0.8;" />', | |
| 30 | 1 | $anomalyType, | |
| 31 | 1 | $zIndex++, | |
| 32 | 1 | $panel->getHeightAndWidth() | |
| 33 | 1 | ); | |
| 34 | 1 | }, $data->getAnomalyTypes()) | |
| 35 | 1 | ); | |
| 38 | 
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