| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 7 | public function export(array $assetBundles): void |
|
| 31 | { |
||
| 32 | try { |
||
| 33 | 7 | $data = Json::encode(AssetUtil::extractFilePathsForExport($assetBundles)); |
|
| 34 | 1 | } catch (JsonException $e) { |
|
| 35 | 1 | throw new RuntimeException('An error occurred during JSON encoding of asset bundles.', 0, $e); |
|
| 36 | } |
||
| 37 | |||
| 38 | 6 | AssetUtil::exportToFile($this->targetFile, $data); |
|
| 39 | } |
||
| 41 |