Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 18, 2023
1 parent 7ef2068 commit fe5e150
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Schema.php
Expand Up @@ -55,7 +55,6 @@
* is_pkey: bool|null,
* dimension: int
* }
*
* @psalm-type ConstraintArray = array<
* array-key,
* array {
Expand All @@ -70,7 +69,6 @@
* check_expr: string
* }
* >
*
* @psalm-type FindConstraintArray = array{
* constraint_name: string,
* column_name: string,
Expand Down Expand Up @@ -804,7 +802,7 @@ protected function findColumns(TableSchemaInterface $table): bool
) {
$loadColumnSchema->defaultValue(new Expression($defaultValue));
} elseif ($loadColumnSchema->getType() === 'boolean') {
$loadColumnSchema->defaultValue(($defaultValue === 'true'));
$loadColumnSchema->defaultValue($defaultValue === 'true');
} elseif (is_string($defaultValue) && preg_match("/^B'(.*?)'::/", $defaultValue, $matches)) {
$loadColumnSchema->defaultValue(bindec($matches[1]));
} elseif (is_string($defaultValue) && preg_match("/^'(\d+)'::\"bit\"$/", $defaultValue, $matches)) {
Expand Down

0 comments on commit fe5e150

Please sign in to comment.