From 8752354d633d9e70e75d0aec019e0491d735d74e Mon Sep 17 00:00:00 2001 From: El RIDO Date: Fri, 25 Oct 2024 07:12:30 +0200 Subject: [PATCH] apply StyleCI fixes --- lib/Data/Database.php | 2 +- tst/Data/FilesystemTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Data/Database.php b/lib/Data/Database.php index 2fe59033..f9e0b8b5 100644 --- a/lib/Data/Database.php +++ b/lib/Data/Database.php @@ -506,7 +506,7 @@ class Database extends AbstractData private function _exec($sql, array $params) { $statement = $this->_db->prepare($sql); - $position = 1; + $position = 1; foreach ($params as &$parameter) { if (is_int($parameter)) { $statement->bindParam($position, $parameter, PDO::PARAM_INT); diff --git a/tst/Data/FilesystemTest.php b/tst/Data/FilesystemTest.php index 1e4f2b93..99966c4c 100644 --- a/tst/Data/FilesystemTest.php +++ b/tst/Data/FilesystemTest.php @@ -141,7 +141,7 @@ class FilesystemTest extends TestCase $commentid = Helper::getCommentId(); $ids = array(); for ($i = 0, $max = 10; $i < $max; ++$i) { - $dataid = Helper::getRandomId(); + $dataid = Helper::getRandomId(); $storagedir = $this->_path . DIRECTORY_SEPARATOR . substr($dataid, 0, 2) . DIRECTORY_SEPARATOR . substr($dataid, 2, 2) . DIRECTORY_SEPARATOR; $ids[$dataid] = $storagedir;