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('meta:not(.%s)', $this->persistentClass))->remove(); |
||
34 | |||
35 | try { |
||
36 | $metaTags = $this->renderBlock->render($this->view, 'metatags', $this->parameters); |
||
37 | $ajax->container('meta:last-of-type')->insertAfter($metaTags); |
||
38 | } catch (AjaxcomException $exception) { |
||
39 | // do nothing |
||
40 | } finally { |
||
41 | return $ajax; |
||
42 | } |
||
45 |