| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 31 | protected function checkAlreadyLogin(Request $request) |
||
| 32 | { |
||
| 33 | if ($this->get('dos.user.security')->isLoggedIn()) { |
||
| 34 | if ($this->alreadyLoginUrl) { |
||
| 35 | return $this->redirect($this->alreadyLoginUrl); |
||
| 36 | } |
||
| 37 | |||
| 38 | if ($this->alreadyLoginRoute) { |
||
| 39 | return $this->redirectToRoute($this->alreadyLoginRoute); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $this->redirect($request->headers->get('referer', $request->getUriForPath('/'))); |
||
| 43 | } |
||
| 44 | |||
| 45 | return; |
||
| 46 | } |
||
| 47 | |||
| 65 |