Skip to content

Commit

Permalink
Revert some changes and add suppression of `RiskyTruthyFalsyCompariso…
Browse files Browse the repository at this point in the history
…n` to config
  • Loading branch information
Tigrov committed Jan 29, 2024
1 parent 334661b commit e26cfd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
</projectFiles>
<issueHandlers>
<MixedAssignment errorLevel="suppress"/>
<RiskyTruthyFalsyComparison errorLevel="suppress" />
</issueHandlers>
</psalm>
4 changes: 2 additions & 2 deletions src/DDLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public function createIndex(
[$schema, $table] = $tableParts;
}

return 'CREATE ' . ($indexType !== null ? $indexType . ' ' : '') . 'INDEX '
. $this->quoter->quoteTableName(($schema !== null ? $schema . '.' : '') . $name)
return 'CREATE ' . (!empty($indexType) ? $indexType . ' ' : '') . 'INDEX '
. $this->quoter->quoteTableName((!empty($schema) ? $schema . '.' : '') . $name)
. ' ON '
. $this->quoter->quoteTableName($table)
. ' (' . $this->queryBuilder->buildColumns($columns) . ')';
Expand Down

0 comments on commit e26cfd5

Please sign in to comment.