Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
28 | public function runInternal(ActiveRecord $record) |
||
29 | { |
||
30 | if (($access = $this->checkAccess($record)) !== true) { |
||
31 | return $access; |
||
32 | } |
||
33 | |||
34 | if (!$this->performAction( |
||
35 | $this->populate($record) |
||
36 | )) { |
||
37 | return $this->handleFailResponse($record); |
||
38 | } |
||
39 | |||
40 | return $this->handleSuccessResponse($record); |
||
41 | } |
||
42 | } |
||
43 |