apply StyleCI fixes

This commit is contained in:
El RIDO 2024-10-25 07:12:30 +02:00
parent 0268e01ab5
commit 8752354d63
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ class Database extends AbstractData
private function _exec($sql, array $params) private function _exec($sql, array $params)
{ {
$statement = $this->_db->prepare($sql); $statement = $this->_db->prepare($sql);
$position = 1; $position = 1;
foreach ($params as &$parameter) { foreach ($params as &$parameter) {
if (is_int($parameter)) { if (is_int($parameter)) {
$statement->bindParam($position, $parameter, PDO::PARAM_INT); $statement->bindParam($position, $parameter, PDO::PARAM_INT);

View File

@ -141,7 +141,7 @@ class FilesystemTest extends TestCase
$commentid = Helper::getCommentId(); $commentid = Helper::getCommentId();
$ids = array(); $ids = array();
for ($i = 0, $max = 10; $i < $max; ++$i) { for ($i = 0, $max = 10; $i < $max; ++$i) {
$dataid = Helper::getRandomId(); $dataid = Helper::getRandomId();
$storagedir = $this->_path . DIRECTORY_SEPARATOR . substr($dataid, 0, 2) . $storagedir = $this->_path . DIRECTORY_SEPARATOR . substr($dataid, 0, 2) .
DIRECTORY_SEPARATOR . substr($dataid, 2, 2) . DIRECTORY_SEPARATOR; DIRECTORY_SEPARATOR . substr($dataid, 2, 2) . DIRECTORY_SEPARATOR;
$ids[$dataid] = $storagedir; $ids[$dataid] = $storagedir;