| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | public function request() |
||
| 43 | { |
||
| 44 | if (!($this->authentication instanceof LoginAuthentication)) { |
||
| 45 | return $this->authentication; |
||
| 46 | } |
||
| 47 | |||
| 48 | $token = $this->loginService->login($this->authentication->getLogin(), $this->authentication->getPassword()); |
||
| 49 | |||
| 50 | return new TokenAuthentication($token); |
||
| 51 | } |
||
| 53 |