| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ActivityController extends Zend_Controller_Action |
||
| 8 | { |
||
| 9 | 3 | public function init(): void |
|
| 10 | { |
||
| 11 | // Init the Context Switch Action helper |
||
| 12 | 3 | $contextSwitch = $this->_helper->contextSwitch(); |
|
| 13 | |||
| 14 | // Add the new context |
||
| 15 | 3 | $contextSwitch->setContexts([ |
|
| 16 | 3 | 'rss' => ['suffix' => 'rss'], |
|
| 17 | ]); |
||
| 18 | |||
| 19 | 3 | $contextSwitch->addActionContext('index', 'rss')->initContext(); |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | 3 | public function indexAction(): void |
|
| 45 | 3 | } |
|
| 46 | } |
||
| 47 |