@@ -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 |
@@ -24,9 +24,9 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Guess the gender for a given firstname. The guesser will return an array with |
| 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 |
@@ -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, |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param ObjectManager $manager |
| 63 | 63 | * @param array $config |
| 64 | 64 | * @param bool $storeForUser |
| 65 | - * @param $storeAsCookie |
|
| 65 | + * @param boolean $storeAsCookie |
|
| 66 | 66 | */ |
| 67 | 67 | public function __construct(UrlGeneratorInterface $router, TokenStorageInterface $tokenStorage, ObjectManager $manager, $config, $storeForUser, $storeAsCookie){ |
| 68 | 68 | $base_url = $router->generate($config[AzineHybridAuthExtension::ENDPOINT_ROUTE], array(), UrlGeneratorInterface::ABSOLUTE_URL); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * HybridAuthSessions will be restored from DB and/or cookies, according to the bundle configuration. |
| 84 | 84 | * |
| 85 | 85 | * @param $cookieSessionData |
| 86 | - * @param $provider |
|
| 86 | + * @param string $provider |
|
| 87 | 87 | * @return \Hybrid_Auth |
| 88 | 88 | */ |
| 89 | 89 | public function getInstance($cookieSessionData, $provider){ |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param $authSessionData |
| 202 | 202 | * @param string $provider_id |
| 203 | 203 | * @param boolean $require_login |
| 204 | - * @return \Hybrid_Provider_Model |
|
| 204 | + * @return \Hybrid_Provider_Adapter |
|
| 205 | 205 | */ |
| 206 | 206 | public function getProvider($authSessionData, $provider_id, $require_login = true){ |
| 207 | 207 | $adapter = $this->getInstance($authSessionData, $provider_id)->getAdapter($provider_id); |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | /** |
| 228 | 228 | * Get the Xing Adapter |
| 229 | - * @return \Hybrid_Providers_XING |
|
| 229 | + * @return \Hybrid_Provider_Adapter |
|
| 230 | 230 | */ |
| 231 | 231 | public function getXing(){ |
| 232 | 232 | return $this->getProvider(null, "xing"); |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | /** |
| 236 | 236 | * Get the Xing api (OAuthClient) |
| 237 | 237 | * |
| 238 | - * @return \OAuth1Client |
|
| 238 | + * @return \stdClass |
|
| 239 | 239 | */ |
| 240 | 240 | public function getXingApi(){ |
| 241 | 241 | return $this->getXing()->api(); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | /** |
| 245 | 245 | * Get the LinkedIn Adapter |
| 246 | 246 | * |
| 247 | - * @return \Hybrid_Providers_LinkedIn |
|
| 247 | + * @return \Hybrid_Provider_Adapter |
|
| 248 | 248 | */ |
| 249 | 249 | public function getLinkedIn(){ |
| 250 | 250 | return $this->getProvider(null, "linkedin"); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | /** |
| 254 | 254 | * Get the LinkedIn api (LinkedIn PHP-client) |
| 255 | 255 | * |
| 256 | - * @return \LinkedIn |
|
| 256 | + * @return \stdClass |
|
| 257 | 257 | */ |
| 258 | 258 | public function getLinkedInApi(){ |
| 259 | 259 | return $this->getLinkedIn()->api(); |