@@ -238,6 +238,9 @@ |
||
| 238 | 238 | } |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | + /** |
|
| 242 | + * @param string $provider_id |
|
| 243 | + */ |
|
| 241 | 244 | private function returnToCallbackUrl($provider_id) {
|
| 242 | 245 | // get the stored callback url |
| 243 | 246 | $callback_url = $this->hybridAuth->storage()->get( "hauth_session.$provider_id.hauth_return_to" ); |
@@ -37,6 +37,9 @@ |
||
| 37 | 37 | |
| 38 | 38 | private $debugMsg = ''; |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string[] $matchList |
|
| 42 | + */ |
|
| 40 | 43 | public function __construct($femaleNames=null, $malesNames=null, $merge = false, $matchList = null){ |
| 41 | 44 | // Use the double_metaphone module if it's available, or fall back to the |
| 42 | 45 | // standard metaphone() PHP call if not |
@@ -59,6 +59,9 @@ |
||
| 59 | 59 | * @param string | null $email |
| 60 | 60 | * @param string | null $headline |
| 61 | 61 | * @param array | null $tags array of strings |
| 62 | + * @param string $gender |
|
| 63 | + * @param string $firstName |
|
| 64 | + * @param string $lastName |
|
| 62 | 65 | */ |
| 63 | 66 | public function __construct($provider, |
| 64 | 67 | $gender = null, |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | * @param ObjectManager $manager |
| 62 | 62 | * @param array $config |
| 63 | 63 | * @param bool $storeForUser |
| 64 | - * @param $storeAsCookie |
|
| 65 | - * @param $expiresInDays |
|
| 64 | + * @param boolean $storeAsCookie |
|
| 65 | + * @param integer $expiresInDays |
|
| 66 | 66 | */ |
| 67 | 67 | public function __construct(UrlGeneratorInterface $router, TokenStorageInterface $tokenStorage, ObjectManager $manager, $config, $storeForUser, $storeAsCookie, $expiresInDays){ |
| 68 | 68 | $base_url = $router->generate($config[AzineHybridAuthExtension::ENDPOINT_ROUTE], array(), UrlGeneratorInterface::ABSOLUTE_URL); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * HybridAuthSessions will be restored from DB and/or cookies, according to the bundle configuration. |
| 85 | 85 | * |
| 86 | 86 | * @param $cookieSessionData |
| 87 | - * @param $provider |
|
| 87 | + * @param string $provider |
|
| 88 | 88 | * @return \Hybrid_Auth |
| 89 | 89 | */ |
| 90 | 90 | public function getInstance($cookieSessionData, $provider){ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * @param $authSessionData |
| 201 | 201 | * @param string $provider_id |
| 202 | 202 | * @param boolean $require_login |
| 203 | - * @return \Hybrid_Provider_Model |
|
| 203 | + * @return \Hybrid_Provider_Adapter |
|
| 204 | 204 | */ |
| 205 | 205 | public function getProvider($authSessionData, $provider_id, $require_login = true){ |
| 206 | 206 | $adapter = $this->getInstance($authSessionData, $provider_id)->getAdapter($provider_id); |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | 227 | * Get the Xing Adapter |
| 228 | - * @return \Hybrid_Providers_XING |
|
| 228 | + * @return \Hybrid_Provider_Adapter |
|
| 229 | 229 | */ |
| 230 | 230 | public function getXing(){ |
| 231 | 231 | return $this->getProvider(null, "xing"); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | /** |
| 235 | 235 | * Get the Xing api (OAuthClient) |
| 236 | 236 | * |
| 237 | - * @return \OAuth1Client |
|
| 237 | + * @return \stdClass |
|
| 238 | 238 | */ |
| 239 | 239 | public function getXingApi(){ |
| 240 | 240 | return $this->getXing()->api(); |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | /** |
| 244 | 244 | * Get the LinkedIn Adapter |
| 245 | 245 | * |
| 246 | - * @return \Hybrid_Providers_LinkedIn |
|
| 246 | + * @return \Hybrid_Provider_Adapter |
|
| 247 | 247 | */ |
| 248 | 248 | public function getLinkedIn(){ |
| 249 | 249 | return $this->getProvider(null, "linkedin"); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | /** |
| 253 | 253 | * Get the LinkedIn api (LinkedIn PHP-client) |
| 254 | 254 | * |
| 255 | - * @return \LinkedIn |
|
| 255 | + * @return \stdClass |
|
| 256 | 256 | */ |
| 257 | 257 | public function getLinkedInApi(){ |
| 258 | 258 | return $this->getLinkedIn()->api(); |
@@ -24,9 +24,9 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Guess the gender for a given firstname. The best guess is returned, ignoring the low confidence level. |
| 26 | 26 | * |
| 27 | - * @param \string $firstName |
|
| 27 | + * @param string $firstName |
|
| 28 | 28 | * @param int $looseness |
| 29 | - * @return \string sex => m | f | '' |
|
| 29 | + * @return string sex => m | f | '' |
|
| 30 | 30 | */ |
| 31 | 31 | public function gender($firstName, $looseness=1); |
| 32 | 32 | } |
| 33 | 33 | \ No newline at end of file |