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