| Conditions | 3 |
| Paths | 3 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 44 | public function indexAction() |
||
| 45 | { |
||
| 46 | $user = $this->auth->getUser(); |
||
| 47 | $error = false; |
||
| 48 | |||
| 49 | if ($this->params()->fromPost('confirm')) |
||
| 50 | { |
||
| 51 | if ($this->dependencies->removeItems($user)) { |
||
| 52 | $this->auth->clearIdentity(); |
||
| 53 | $user->setStatus(Status::INACTIVE); |
||
| 54 | return $this->redirect()->toRoute('lang'); |
||
| 55 | } else { |
||
| 56 | $error = true; |
||
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | return [ |
||
| 61 | 'lists' => $this->dependencies->getLists(), |
||
| 62 | 'user' => $user, |
||
| 63 | 'limit' => 20, |
||
| 64 | 'error' => $error, |
||
| 65 | ]; |
||
| 66 | } |
||
| 67 | } |
||
| 68 |