Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
71 | private function validateBag(): void |
||
72 | { |
||
73 | foreach ($this->getBag()->all() as $source) { |
||
74 | // if already there, add jquery-ui again to force weight setting is correct |
||
75 | // jQueryUI must be loaded before Bootstrap, refs #3912 |
||
76 | if ('jquery-ui.min.js' === mb_substr($source, -16) |
||
77 | || 'jquery-ui.js' === mb_substr($source, -12) |
||
78 | ) { |
||
79 | $this->bag->add([$source => AssetBag::WEIGHT_JQUERY_UI]); |
||
80 | } |
||
84 |