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