Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.5 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function performAction() |
||
32 | 1 | { |
|
33 | $jsonData = $this->readData($this->path); |
||
34 | try { |
||
35 | $this->out = JsonPointer::getByPointer($jsonData, $this->pointer); |
||
36 | } catch (Exception $e) { |
||
37 | 1 | $this->response->error($e->getMessage()); |
|
38 | 1 | throw new ExitCode('', 1); |
|
39 | } |
||
40 | $this->postPerform(); |
||
41 | } |
||
43 | } |