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