Skip to content

Commit

Permalink
Merge pull request #30 from RyanDaDeng/analysis-XWMLkJ
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RyanDaDeng authored Jan 26, 2019
2 parents 8368c67 + 98a13ac commit c20b58f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/GoogleReCaptchaV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function prepareBackgroundViewData()
*/
public function init()
{
if (!$this->getConfig()->isServiceEnabled()) {
if (! $this->getConfig()->isServiceEnabled()) {
return;
}
$default = [
Expand All @@ -97,22 +97,21 @@ public function renderOne($id, $action)
self::$collection[$id] = $action;
}


/**
* @param $id
* @param $action
* @param $class
* @param string $style
* @return \Illuminate\Contracts\View\View|mixed
*/
public function renderField($id, $action, $class,$style = '')
public function renderField($id, $action, $class, $style = '')
{
self::$hasAction = true;
self::$collection[$id] = $action;

return app('view')->make($this->getFieldView(), ['id' => $id, 'class'=>$class, 'style' => $style]);
}


/**
* @param $mappers
*/
Expand All @@ -132,7 +131,6 @@ protected function getView()
return $this->defaultTemplate;
}


/**
* @return mixed|string
*/
Expand Down

0 comments on commit c20b58f

Please sign in to comment.