| Conditions | 2 |
| Paths | 3 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function authenticate($provider) |
||
| 25 | { |
||
| 26 | try { |
||
| 27 | // try to authenticate with the selected provider |
||
| 28 | $adapter = $this->getAuth()::authenticate($provider); |
||
| 29 | // then grab the user profile |
||
| 30 | return $adapter->getUserProfile(); |
||
| 31 | } catch (Exception $e) { |
||
| 32 | return $e; |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 55 |