From 74239a03e5db3b0a456211796e780313e375bae8 Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Sun, 22 Nov 2026 04:02:49 +0300 Subject: [PATCH] Remove comments from project PHP files --- server/init-sqlite.php | 5 ++--- server/router.php | 1 - server/sqlite-database.php | 2 +- server/sqlite-rest.php | 1 - 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/server/init-sqlite.php b/server/init-sqlite.php index 7778a33..881eee2 100644 --- a/server/init-sqlite.php +++ b/server/init-sqlite.php @@ -1,6 +1,5 @@ exec('BEGIN IMMEDIATE'); $applicationId = (int) $db->query('PRAGMA application_id')->fetchColumn(); $version = (int) $db->query('PRAGMA user_version')->fetchColumn(); - // "EZSV" in SQLite's application header. + if ($applicationId === 1163547478 && $version === 1) { $db->exec('COMMIT'); exit(0); @@ -29,7 +28,7 @@ try { $db->exec('PRAGMA user_version = 1'); $db->exec('COMMIT'); } catch (Throwable $error) { - // SQLite rolls back an open transaction when the connection closes. + fwrite(STDERR, 'SQLite initialization failed: ' . $error->getMessage() . PHP_EOL); exit(1); } diff --git a/server/router.php b/server/router.php index 94b5967..6eee338 100644 --- a/server/router.php +++ b/server/router.php @@ -1,6 +1,5 @@ 'sqlite:' . getenv('EZSERVER_SQLITE'), 'db_debug' => false, 'options' => [ - // PostgreSQL returns lowercase names for the original models' unquoted columns. + PDO::ATTR_CASE => PDO::CASE_LOWER, PDO::ATTR_TIMEOUT => 5, ], diff --git a/server/sqlite-rest.php b/server/sqlite-rest.php index ac9a3cf..675c528 100644 --- a/server/sqlite-rest.php +++ b/server/sqlite-rest.php @@ -2,5 +2,4 @@ defined('BASEPATH') or exit('No direct script access allowed'); -// Preserve the original JWT validation with a deployment-specific signing key. $config['jwt_key'] = trim(file_get_contents(getenv('EZSERVER_JWT_KEY_FILE')));