Conditions | 2 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | public function authenticate($provider, $params = null) |
||
26 | { |
||
27 | try { |
||
28 | /** @var \Hybrid_Provider_Model $adapter */ |
||
29 | $adapter = $this->getAuth()::authenticate($provider, $params); |
||
30 | // then grab the user profile |
||
31 | return $adapter->getUserProfile(); |
||
32 | } catch (Exception $e) { |
||
33 | /** @noinspection PhpIncompatibleReturnTypeInspection */ |
||
34 | return $e; |
||
|
|||
35 | } |
||
57 |