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