| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function handleBlock() |
||
| 33 | { |
||
| 34 | if ($id = $this->owner->getRequest()->param('ID')) { |
||
| 35 | $blocks = $this->owner->data()->getBlockList(null, true, true, true); |
||
| 36 | if ($block = $blocks->find('ID', $id)) { |
||
| 37 | return $block->getController(); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return $block->getController(); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |