Skip to content

Refactor asset registration and update asset manager configuration. #59

Refactor asset registration and update asset manager configuration.

Refactor asset registration and update asset manager configuration. #59

Triggered via push February 28, 2024 10:18
Status Success
Total duration 41s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
mutation / PHP 8.1-ubuntu-latest: src/Asset/DateTimePickerAsset.php#L32
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $jsFiles = $environment === 'prod' ? 'js/tempus-dominus.min.js' : 'js/tempus-dominus.js'; $this->css = [$cssFiles]; $this->js = [$jsFiles]; - $this->publishOptions['only'] = [$cssFiles, "{$cssFiles}.map", $jsFiles, "{$jsFiles}.map"]; + $this->publishOptions['only'] = ["{$cssFiles}.map", $jsFiles, "{$jsFiles}.map"]; } }
mutation / PHP 8.1-ubuntu-latest: src/Asset/JQueryProviderAsset.php#L29
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $environment = defined('YII_ENV') ? YII_ENV : 'prod'; $jsFiles = $environment === 'prod' ? 'jQuery-provider.min.js' : 'jQuery-provider.js'; $this->js = [$jsFiles]; - $this->publishOptions['only'] = [$jsFiles]; + $this->publishOptions['only'] = []; } }