Skip to content

Commit

Permalink
Whitespace formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
totov committed Jun 19, 2020
1 parent ec9afd8 commit 141d498
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/controllers/RecaptchaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class RecaptchaController extends Controller
public function actionVerifySubmission()
{
// ensure the request is a post
$this->requirePostRequest();
// grab the request object
$request = Craft::$app->getRequest();
// grab the intended action (required)
$this->requirePostRequest();
// grab the request object
$request = Craft::$app->getRequest();
// grab the intended action (required)
$action = $request->getRequiredParam('verified-action');

// grab the recaptcha response (required)
Expand All @@ -36,8 +36,8 @@ public function actionVerifySubmission()
if ($verified) {
return Controller::run('/' . $action, func_get_args()); // run the intended action (add / to force it's scope to be outside the plugin) with all the params passed to this controller action
} else {
Craft::$app->getSession()->setError('Unable to verify your submission.');
return null;
Craft::$app->getSession()->setError('Unable to verify your submission.');
return null;
}
}
}

0 comments on commit 141d498

Please sign in to comment.