| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function showAction($id = null) |
||
| 23 | { |
||
| 24 | $id = $this->get('request')->get($this->admin->getIdParameter()); |
||
|
|
|||
| 25 | $obj = $this->admin->getObject($id); |
||
| 26 | |||
| 27 | $page = $obj->getPage(); |
||
| 28 | if ($page && $this->container->has('zicht_url.provider') && $this->get('zicht_url.provider')->supports($page)) { |
||
| 29 | return $this->redirect($this->get('zicht_url.provider')->url($page)); |
||
| 30 | } |
||
| 31 | |||
| 32 | return parent::showAction($id); |
||
| 33 | } |
||
| 48 |