| Conditions | 2 |
| Paths | 5 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function mutate(Handler $ajax): Handler |
||
| 32 | { |
||
| 33 | $ajax->container(sprintf('style:not(.%s):not([nonce])', $this->persistentClass))->remove(); |
||
| 34 | |||
| 35 | try { |
||
| 36 | $styleSheets = $this->renderBlock->render($this->view, 'stylesheets', $this->parameters); |
||
| 37 | $ajax->container('style:last-of-type')->insertAfter($styleSheets); |
||
| 38 | } catch (AjaxcomException $exception) { |
||
| 39 | // do nothing |
||
| 40 | } finally { |
||
| 41 | return $ajax; |
||
| 42 | } |
||
| 45 |