Conditions | 3 |
Paths | 5 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
37 | public function mutate(Handler $ajax): Handler |
||
38 | { |
||
39 | foreach ($this->getBlocks() as $block) { |
||
40 | try { |
||
41 | $blockId = str_replace('-', '_', $block->getId()); |
||
42 | $html = $this->renderBlock->render($this->view, $blockId, $this->parameters); |
||
43 | $ajax->container(sprintf('#%s', $block->getId()))->html($html); |
||
44 | } catch (AjaxcomException $exception) { |
||
45 | continue; |
||
46 | } |
||
47 | } |
||
48 | |||
49 | return $ajax; |
||
50 | } |
||
67 |