| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 1 | public function execute() |
|
| 45 | { |
||
| 46 | // Check if we are allowed to receive the raw data |
||
| 47 | 1 | $authorizedRaw = $this->getInput()->server->getString('HTTP_JOOMLA_RAW', 'fail') === $this->getApplication()->get('stats.rawdata', false); |
|
| 48 | |||
| 49 | // Check if a single data source is requested |
||
| 50 | 1 | $source = $this->getInput()->getString('source', ''); |
|
| 51 | |||
| 52 | 1 | $this->view->isAuthorizedRaw($authorizedRaw); |
|
| 53 | 1 | $this->view->setSource($source); |
|
| 54 | |||
| 55 | 1 | $this->getApplication()->setBody($this->view->render()); |
|
| 56 | |||
| 57 | 1 | return true; |
|
| 58 | } |
||
| 59 | } |
||
| 60 |