Skip to content

Commit

Permalink
fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Dec 6, 2023
1 parent 2c7f411 commit ecb755b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Database/Driver/PostgresQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion Database/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ecb755b

Please sign in to comment.