1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-06-11 00:03:15 +02:00

Use autoloading.

This commit is contained in:
Anthony Birkett
2021-05-30 11:30:29 +01:00
parent b5d355514b
commit a2f7834ef5
8 changed files with 19 additions and 43 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1);
require __DIR__ . '/../SourceQuery/bootstrap.php';
require __DIR__ . '/../vendor/autoload.php';
use xPaw\SourceQuery\SourceQuery;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1);
require __DIR__ . '/../SourceQuery/bootstrap.php';
require __DIR__ . '/../vendor/autoload.php';
use xPaw\SourceQuery\SourceQuery;
+3 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1);
require __DIR__ . '/../SourceQuery/bootstrap.php';
require __DIR__ . '/../vendor/autoload.php';
use xPaw\SourceQuery\SourceQuery;
@@ -115,6 +115,8 @@ $Timer = number_format(microtime(true) - $Timer, 4, '.', '');
echo 'true';
} elseif ($InfoValue === false) {
echo 'false';
} elseif (is_int($InfoValue)) {
echo $InfoValue;
} else {
echo htmlspecialchars($InfoValue);
}