| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class JavascriptExecution implements JavascriptExecutionInterface |
||
| 9 | { |
||
| 10 | /** @var array<int, array<string>> */ |
||
| 11 | private static array $execjs = []; |
||
| 12 | |||
| 13 | 214 | #[Override] |
|
| 14 | public function getExecuteJS(JavascriptExecutionTypeEnum $when): ?array |
||
| 15 | { |
||
| 16 | 214 | if (!array_key_exists($when->value, self::$execjs)) { |
|
| 17 | 211 | return null; |
|
| 18 | } |
||
| 19 | |||
| 20 | 23 | return self::$execjs[$when->value]; |
|
| 21 | } |
||
| 22 | |||
| 23 | 23 | #[Override] |
|
| 33 | 23 | }; |
|
| 34 | } |
||
| 35 | |||
| 36 | 217 | #[Override] |
|
| 42 |
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