| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | protected function runInternal($data) |
||
| 36 | { |
||
| 37 | // Check access |
||
| 38 | if (($access = $this->checkAccess($data)) !== true) { |
||
| 39 | return $access; |
||
| 40 | } |
||
| 41 | |||
| 42 | if (!$this->performAction($data)) { |
||
| 43 | return $this->handleFailResponse($data); |
||
| 44 | } |
||
| 45 | |||
| 46 | return $this->handleSuccessResponse($data); |
||
| 47 | } |
||
| 48 | |||
| 90 |