Skip to content

Commit

Permalink
Merge pull request #87 from RyanDaDeng/analysis-0gjeVW
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RyanDaDeng authored Sep 29, 2021
2 parents 79ae056 + 61bac26 commit 755c086
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/Core/GoogleReCaptchaV3Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function setSuccess($value)
}

/**
* @param string $value
* @param string $value
*/
public function setMessage($value)
{
Expand Down
1 change: 1 addition & 0 deletions src/Facades/GoogleReCaptchaV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @method static renderOne($id, $action)
* @method static init()
* @method static renderField($id, $action, $class = '', $style = '')
*
* @see \TimeHunter\LaravelGoogleReCaptchaV3\GoogleReCaptchaV3
*/
class GoogleReCaptchaV3 extends Facade
Expand Down
13 changes: 7 additions & 6 deletions src/GoogleReCaptchaV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ public function prepareBackgroundViewData()
}

/**
* @param array $params
* @param array $params
* @return \Illuminate\Contracts\View\View|mixed
*
* @throws \Illuminate\Contracts\Container\BindingResolutionException
*/
public function init(array $params = [])
Expand Down Expand Up @@ -105,8 +106,8 @@ public function renderOne($id, $action)
/**
* @param $id
* @param $action
* @param string $class
* @param string $style
* @param string $class
* @param string $style
* @return \Illuminate\Contracts\View\View|mixed
*/
public function renderField($id, $action, $class = '', $style = '')
Expand Down Expand Up @@ -146,7 +147,7 @@ protected function getFieldView()

/**
* @param $response
* @param null $ip
* @param null $ip
* @return GoogleReCaptchaV3Response
*/
public function verifyResponse($response, $ip = null)
Expand All @@ -163,7 +164,7 @@ public function getConfig()
}

/**
* @param string|null $value
* @param string|null $value
* @return $this
*/
public function setAction($value = null)
Expand All @@ -174,7 +175,7 @@ public function setAction($value = null)
}

/**
* @param string|null $value
* @param string|null $value
* @return $this
*/
public function setScore($value = null)
Expand Down
2 changes: 1 addition & 1 deletion src/Interfaces/RequestClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface RequestClientInterface
/**
* @param $url
* @param $body
* @param array $options
* @param array $options
* @return mixed
*/
public function post($url, $body, $options = []);
Expand Down
6 changes: 3 additions & 3 deletions src/Services/GoogleReCaptchaV3Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function ifInSkippedIps($ip)

/**
* @param $response
* @param null $ip
* @param null $ip
* @return GoogleReCaptchaV3Response
*/
public function verifyResponse($response, $ip = null)
Expand Down Expand Up @@ -142,7 +142,7 @@ public function getConfig()
}

/**
* @param string|null $value
* @param string|null $value
* @return $this
*/
public function setAction($value = null)
Expand All @@ -153,7 +153,7 @@ public function setAction($value = null)
}

/**
* @param string|null $value
* @param string|null $value
* @return $this
*/
public function setScore($value = null)
Expand Down
4 changes: 2 additions & 2 deletions src/Validations/GoogleReCaptchaV3ValidationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function __construct($action = null)
}

/**
* @param string $attribute
* @param mixed $value
* @param string $attribute
* @param mixed $value
* @return bool
*/
public function passes($attribute, $value)
Expand Down

0 comments on commit 755c086

Please sign in to comment.