Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function mutate(Handler $ajax): Handler |
||
31 | { |
||
32 | foreach ($this->data as $item) { |
||
33 | $block = $item['block']; |
||
34 | try { |
||
35 | $html = $this->renderBlock->render($block, $this->view, $this->parameters); |
||
36 | } catch (AjaxcomException $exception) { |
||
37 | continue; |
||
38 | } |
||
39 | |||
40 | $ajax->container($item['selector'])->html($html); |
||
41 | } |
||
42 | |||
43 | return $ajax; |
||
44 | } |
||
53 |