Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
44 | 3 | public function execute() |
|
45 | { |
||
46 | // Check if we are allowed to receive the raw data |
||
47 | 3 | $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 | 3 | $source = $this->getInput()->getString('source', ''); |
|
51 | |||
52 | 3 | $this->view->isAuthorizedRaw($authorizedRaw); |
|
53 | 3 | $this->view->setSource($source); |
|
54 | |||
55 | 3 | $this->getApplication()->setBody($this->view->render()); |
|
56 | |||
57 | 3 | return true; |
|
58 | } |
||
59 | } |
||
60 |