@@ -55,6 +55,7 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * get_strategy_segment |
| 57 | 57 | * Works around Opauth's weird URL scheme - GoogleStrategy => /google/ |
| 58 | + * @param string $strategy |
|
| 58 | 59 | * @return string |
| 59 | 60 | */ |
| 60 | 61 | public static function get_strategy_segment($strategy) { |
@@ -291,6 +291,7 @@ discard block |
||
| 291 | 291 | /** |
| 292 | 292 | * Validates the Oauth response for Opauth. |
| 293 | 293 | * @throws InvalidArgumentException |
| 294 | + * @param Opauth $opauth |
|
| 294 | 295 | */ |
| 295 | 296 | protected function validateOpauthResponse($opauth, $response) { |
| 296 | 297 | if(!empty($response['error'])) { |
@@ -385,6 +386,9 @@ discard block |
||
| 385 | 386 | return unserialize(base64_decode($this->request->{$method.'Var'}('opauth'))); |
| 386 | 387 | } |
| 387 | 388 | |
| 389 | + /** |
|
| 390 | + * @param string $action |
|
| 391 | + */ |
|
| 388 | 392 | public function Link($action = null) { |
| 389 | 393 | return Controller::join_links( |
| 390 | 394 | self::config()->opauth_path, |
@@ -28,6 +28,10 @@ |
||
| 28 | 28 | 'httpSubmission', |
| 29 | 29 | ); |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param Controller $controller |
|
| 33 | + * @param string $name |
|
| 34 | + */ |
|
| 31 | 35 | public function __construct($controller, $name) { |
| 32 | 36 | parent::__construct($controller, $name, $this->getFields(), $this->getActions()); |
| 33 | 37 | $this->configureBackURL(); |
@@ -55,6 +55,7 @@ |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Try very hard to get a locale for this user. Helps for i18n etc. |
| 58 | + * @param string $language |
|
| 58 | 59 | * @return string |
| 59 | 60 | */ |
| 60 | 61 | public static function get_smart_locale($language = null) { |