13
13
use function in_array ;
14
14
use function is_callable ;
15
15
use function uasort ;
16
- use Drupal ;
17
16
use Drupal \Component \Utility \Crypt ;
18
17
use Drupal \Component \Utility \Html ;
19
18
use Drupal \Component \Utility \NestedArray ;
@@ -105,7 +104,9 @@ public function __construct(BlockedLibraryManagerInterface $library_manager, Ass
105
104
* The settings to merge.
106
105
*/
107
106
protected function mergeSettings (array $ settings ): void {
108
- self ::$ drupalSettings = NestedArray::mergeDeepArray ([self ::$ drupalSettings , $ settings ], TRUE );
107
+ self ::$ drupalSettings = NestedArray::mergeDeepArray ([
108
+ self ::$ drupalSettings , $ settings
109
+ ], TRUE );
109
110
}
110
111
111
112
/**
@@ -182,7 +183,10 @@ private function generateAssetPlaceholder(array $asset): array {
182
183
183
184
// Merge attached settings back into the original assets.
184
185
$ placeholder_asset = AttachedAssets::createFromRenderArray ($ attached );
185
- $ this ->allowedAssets ->setSettings (NestedArray::mergeDeepArray ([$ placeholder_asset ->getSettings (), $ this ->allowedAssets ->getSettings ()], TRUE ));
186
+ $ this ->allowedAssets ->setSettings (NestedArray::mergeDeepArray ([
187
+ $ placeholder_asset ->getSettings (),
188
+ $ this ->allowedAssets ->getSettings ()
189
+ ], TRUE ));
186
190
$ this ->mergeSettings (['data ' => $ this ->allowedAssets ->getSettings ()]);
187
191
return $ placeholder ;
188
192
}
@@ -195,7 +199,9 @@ private function generateAssetPlaceholder(array $asset): array {
195
199
*/
196
200
private function getCssAssetCollection (): array {
197
201
$ optimize_css = !defined ('MAINTENANCE_MODE ' ) && $ this ->config ->get ('css.preprocess ' );
198
- return $ this ->getMergedAndSortedAssets (...$ this ->resolveAssets ([$ this ->assetResolver , 'getCssAssets ' ], $ optimize_css ));
202
+ return $ this ->getMergedAndSortedAssets (...$ this ->resolveAssets ([
203
+ $ this ->assetResolver , 'getCssAssets '
204
+ ], $ optimize_css ));
199
205
}
200
206
201
207
/**
0 commit comments