Skip to content

Commit b8ad66f

Browse files
committed
phpcs fix
1 parent c7d634a commit b8ad66f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/RecaptchaWidget.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,19 +202,19 @@ public function run()
202202
'tabindex' => $this->tabindex,
203203
'callback' => new JsExpression('function (response) {
204204
document.getElementById("' . $id . '-input").value = response;
205-
var userCallback = ' . Json::encode($this->callback). ';
205+
var userCallback = ' . Json::encode($this->callback) . ';
206206
if (userCallback) {
207207
userCallback.call(this, response);
208208
}
209209
}'),
210210
'expired-callback' => new JsExpression('function () {
211-
var userCallback = ' . Json::encode($this->expiredCallback). ';
211+
var userCallback = ' . Json::encode($this->expiredCallback) . ';
212212
if (userCallback) {
213213
userCallback.call(this);
214214
}
215215
}'),
216216
'error-callback' => new JsExpression('function () {
217-
var userCallback = ' . Json::encode($this->errorCallback). ';
217+
var userCallback = ' . Json::encode($this->errorCallback) . ';
218218
if (userCallback) {
219219
userCallback.call(this);
220220
}

src/views/recaptcha.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@
5858
if ($request->isPjax) {
5959
$this->registerJs($jsCallbackName . '();', View::POS_END);
6060
}
61-

0 commit comments

Comments
 (0)