Organize scattered PHP files into scripts/ and tests/ directories

This commit is contained in:
2025-11-12 08:34:20 +01:00
parent 0622f40004
commit 8f072292c1
28 changed files with 10 additions and 10 deletions
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
View File

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 281 KiB

View File

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 218 KiB

View File

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 361 KiB

View File

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 281 KiB

Regular → Executable
View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Regular → Executable
View File
View File
View File
View File
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
require 'vendor/autoload.php'; require '../vendor/autoload.php';
require 'config.php'; require '../config.php';
= new PDO('sqlite:' . DB_PATH); = new PDO('sqlite:' . DB_PATH);
->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
try { try {
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
require 'vendor/autoload.php'; require '../vendor/autoload.php';
require 'config.php'; require '../config.php';
= App\Database\Database::getInstance(); = App\Database\Database::getInstance();
= ->query('SELECT id, name FROM items'); = ->query('SELECT id, name FROM items');
= ->fetchAll(PDO::FETCH_ASSOC); = ->fetchAll(PDO::FETCH_ASSOC);
+2 -2
View File
@@ -1,7 +1,7 @@
<?php <?php
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/config.php'; require __DIR__ . '/../config.php';
use App\Database; use App\Database;
use App\Models\Category; use App\Models\Category;
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
require 'vendor/autoload.php'; require '../vendor/autoload.php';
require 'config.php'; require '../config.php';
use AppDatabaseDatabase; use AppDatabaseDatabase;
$db = App\Database\Database::getInstance(); $db = App\Database\Database::getInstance();
$db->exec('ALTER TABLE items ADD COLUMN id_code TEXT UNIQUE'); $db->exec('ALTER TABLE items ADD COLUMN id_code TEXT UNIQUE');
Regular → Executable
View File
Regular → Executable
View File
Regular → Executable
View File
-1
View File
@@ -1 +0,0 @@
<?php require "config.php"; global $translator; echo $translator->trans("Category not found");
View File
+1 -1
View File
@@ -1,5 +1,5 @@
<?php$ <?php$
require 'vendor/autoload.php';$ require '../vendor/autoload.php';$
use chillerlan\QRCode\QRCode;$ use chillerlan\QRCode\QRCode;$
use chillerlan\QRCode\QROptions;$ use chillerlan\QRCode\QROptions;$
= new QROptions(['outputType' => QRCode::OUTPUT_MARKUP_SVG, 'eccLevel' => QRCode::ECC_L]);$ = new QROptions(['outputType' => QRCode::OUTPUT_MARKUP_SVG, 'eccLevel' => QRCode::ECC_L]);$
+1
View File
@@ -0,0 +1 @@
<?php require "../config.php"; global $translator; echo $translator->trans("Category not found");