Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
29 | public function runInternal(Model $model) |
||
30 | { |
||
31 | // Populate |
||
32 | $this->populate($model); |
||
33 | |||
34 | // Check access |
||
35 | if (($access = $this->checkAccess($model)) !== true) { |
||
36 | return $access; |
||
37 | } |
||
38 | |||
39 | if (!$this->performAction($model)) { |
||
40 | return $this->handleFailResponse($model); |
||
41 | } |
||
42 | |||
43 | return $this->handleSuccessResponse($model); |
||
44 | } |
||
45 | } |
||
46 |