Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function mutate(Handler $ajax): Handler |
||
33 | { |
||
34 | if (false === $this->changeUrl) { |
||
35 | return $ajax; |
||
36 | } |
||
37 | |||
38 | $ajax->changeUrl( |
||
39 | $this->router->generate( |
||
40 | $this->request->attributes->get('_route'), |
||
41 | array_merge($this->request->attributes->get('_route_params'), $this->request->query->all()) |
||
42 | ) |
||
43 | ); |
||
44 | |||
45 | return $ajax; |
||
46 | } |
||
55 |