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