Refactor asset registration and update asset manager configuration. #59
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'] = [];
}
}
|