From ecb755b46bd7a3644793ee7779cd6031da457975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Wed, 6 Dec 2023 12:47:25 +0100 Subject: [PATCH] fix CS --- Database/Driver/PostgresQuery.php | 4 ++-- Database/Query.php | 2 +- Editor.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Database/Driver/PostgresQuery.php b/Database/Driver/PostgresQuery.php index 15964b7..85d835d 100644 --- a/Database/Driver/PostgresQuery.php +++ b/Database/Driver/PostgresQuery.php @@ -93,12 +93,12 @@ protected function _prepare($sql) // Get the pkey field name $pkRes = $resource->prepare( - "SELECT a.attname + 'SELECT a.attname FROM pg_index i JOIN pg_attribute a ON a.attrelid = i.indrelid AND a.attnum = ANY(i.indkey) WHERE i.indrelid = (:tableName)::regclass - AND i.indisprimary" + AND i.indisprimary' ); $pkRes->bindValue('tableName', $table[0]); $pkRes->execute(); diff --git a/Database/Query.php b/Database/Query.php index f5fb579..63bf004 100644 --- a/Database/Query.php +++ b/Database/Query.php @@ -1010,7 +1010,7 @@ protected function _build_where() if ($this->_where[$i - 1]['group'] === '(') { $condition .= '1=1'; } - // else nothing + // else nothing reindent once https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7497 is fixed } elseif ($this->_where[$i - 1]['group'] === '(') { // Nothing } else { diff --git a/Editor.php b/Editor.php index 73bb38e..b8c8b52 100644 --- a/Editor.php +++ b/Editor.php @@ -1533,7 +1533,7 @@ private function _fileDataFields(&$files, $fields, $limitTable, $idsIn = null, $ if ($fileData !== null) { if (isset($files[$table])) { - $files[$table] = $files[$table] + $fileData; + $files[$table] += $fileData; } else { $files[$table] = $fileData; }