| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function process($html) |
||
| 34 | { |
||
| 35 | $request = $this->stack->getMasterRequest(); |
||
| 36 | |||
| 37 | $params = [ |
||
| 38 | 'token' => $request->attributes->get('token'), |
||
| 39 | 'panel' => $request->query->get('panel'), |
||
| 40 | 'package' => $request->query->get('package'), |
||
| 41 | ]; |
||
| 42 | |||
| 43 | $url = $this->generator->generate('_profiler', $params); |
||
| 44 | |||
| 45 | return preg_replace('/<a([^>]*) href="(?!http|#)([^"]*)"/', sprintf('<a$1 href="%s&page=$2"', $url), $html); |
||
| 46 | } |
||
| 47 | } |
||
| 48 |