Skip to content

Commit 9c9ed33

Browse files
authored
prettier
Signed-off-by: GitHub <noreply@github.com>
1 parent 98a4273 commit 9c9ed33

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

public/check/index.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ function onSubmit(token) {
123123
}
124124
$pin = $_POST["pin"];
125125
$recaptcha = new ReCaptcha($recaptcha_secret);
126-
$responseData = $recaptcha
127-
->setExpectedHostname($host)
128-
->setExpectedAction("check")
129-
->setScoreThreshold($recaptcha_score)
130-
->verify($_POST["g-recaptcha-response"], $_SERVER["REMOTE_ADDR"]);
126+
$responseData = $recaptcha->setExpectedHostname($host)->setExpectedAction("check")->setScoreThreshold($recaptcha_score)->verify($_POST["g-recaptcha-response"], $_SERVER["REMOTE_ADDR"]);
131127
$query = $db->prepare("SELECT * FROM People WHERE pin=:pin AND cf = true");
132128
$query->bindValue(":pin", $pin);
133129
if (!$responseData->isSuccess()) {

public/send/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
$html = str_replace("?nn?", $row["nn"], $html);
174174
$html = str_replace("?bookinglink?", '<a href="https://' . $host . "?bookingtoken=" . $row["bookingtoken"] . '">https://' . $host . "?bookingtoken=" . $row["bookingtoken"] . "</a>", $html);
175175
$html = str_replace("?stornolink?", '<a href="https://' . $host . "?stornotoken=" . $row["stornotoken"] . '">https://' . $host . "?stornotoken=" . $row["stornotoken"] . "</a>", $html);
176-
$html = str_replace("?qrcode?", '<img src="' . (new QRCode())->render("https://" . $host . "/check?pin=" . $row["pin"]) . '" style="width: 25%" alt="QRCode"/>', $html);
176+
$html = str_replace("?qrcode?", '<img src="' . new QRCode()->render("https://" . $host . "/check?pin=" . $row["pin"]) . '" style="width: 25%" alt="QRCode"/>', $html);
177177
if ($enyear) {
178178
$html = str_replace("?year?", $row["year"], $html);
179179
}

renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"extends": [
3-
"config:recommended"
4-
],
2+
"extends": ["config:recommended"],
53
"baseBranches": [],
64
"forkProcessing": "enabled",
75
"lockFileMaintenance": {

0 commit comments

Comments
 (0)