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