Apply fixes from StyleCI · yiisoft/db-pgsql@fe5e150

Original file line numberDiff line numberDiff line change

@@ -55,7 +55,6 @@

5555

* is_pkey: bool|null,

5656

* dimension: int

5757

* }

58-

*

5958

* @psalm-type ConstraintArray = array<

6059

* array-key,

6160

* array {

@@ -70,7 +69,6 @@

7069

* check_expr: string

7170

* }

7271

* >

73-

*

7472

* @psalm-type FindConstraintArray = array{

7573

* constraint_name: string,

7674

* column_name: string,

@@ -804,7 +802,7 @@ protected function findColumns(TableSchemaInterface $table): bool

804802

) {

805803

$loadColumnSchema->defaultValue(new Expression($defaultValue));

806804

} elseif ($loadColumnSchema->getType() === 'boolean') {

807-

$loadColumnSchema->defaultValue(($defaultValue === 'true'));

805+

$loadColumnSchema->defaultValue($defaultValue === 'true');

808806

} elseif (is_string($defaultValue) && preg_match("/^B'(.*?)'::/", $defaultValue, $matches)) {

809807

$loadColumnSchema->defaultValue(bindec($matches[1]));

810808

} elseif (is_string($defaultValue) && preg_match("/^'(\d+)'::\"bit\"$/", $defaultValue, $matches)) {