Run PHP-CS-Fixer on all files

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2022-08-07 10:52:23 +02:00
parent 69e118ad45
commit 6ec4b8a529
47 changed files with 2643 additions and 2831 deletions

View File

@@ -1,6 +1,7 @@
<?php
require "auth.php";
require "password.php";
require 'auth.php';
require 'password.php';
check_cors();
?>
@@ -30,20 +31,21 @@ body {
</head>
<body>
<?php
if($auth) {
if(strlen($pwhash) > 0) {
if ($auth) {
if (strlen($pwhash) > 0) {
echo '<div class="qrcode">';
require_once("../../vendor/qrcode.php");
require_once '../../vendor/qrcode.php';
$qr = QRCode::getMinimumQRCode($pwhash, QR_ERROR_CORRECT_LEVEL_Q);
// The size of each block (in pixels) should be an integer
$qr->printSVG(10);
echo "</div>";
echo 'Raw API Token: <code class="token">' . $pwhash . "</code></div>";
echo '</div>';
echo 'Raw API Token: <code class="token">'.$pwhash.'</code></div>';
} else {
echo "<p>No password set</p>";
echo '<p>No password set</p>';
}
} else {
echo "<p>Not authorized!</p>";
echo '<p>Not authorized!</p>';
}
?>
</body>