Completed
Pull Request — 1.1 (#32)
by Daniel
02:40
created
code/OpauthAuthenticator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
code/OpauthController.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -291,6 +291,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
code/OpauthLoginForm.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -28,6 +28,10 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
code/OpauthResponseHelper.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -55,6 +55,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.