Passed
Pull Request — master (#1974)
by
unknown
03:28
created
src/Phinx/Db/Adapter/PostgresAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
     protected function getChangeColumnInstructions($tableName, $columnName, Column $newColumn)
541 541
     {
542 542
         $instructions = new AlterInstructions();
543
-        if ($newColumn->getType()==='boolean') {
543
+        if ($newColumn->getType() === 'boolean') {
544 544
             $sql = sprintf('ALTER COLUMN %s DROP DEFAULT', $this->quoteColumnName($columnName));
545 545
             $instructions->addAlter($sql);
546 546
         }
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
         $sql = preg_replace('/ NULL/', '', $sql);
562 562
         //If it is set, DEFAULT is the last definition
563 563
         $sql = preg_replace('/DEFAULT .*/', '', $sql);
564
-        if ($newColumn->getType()==='boolean') {
564
+        if ($newColumn->getType() === 'boolean') {
565 565
             $sql .= sprintf(
566 566
                 ' USING (CASE WHEN %s=0 THEN FALSE ELSE TRUE END)',
567 567
                 $this->quoteColumnName($columnName)
@@ -1257,7 +1257,7 @@  discard block
 block discarded – undo
1257 1257
         }
1258 1258
 
1259 1259
         $order = $index->getOrder() ?? [];
1260
-        $columnNames = array_map(function ($columnName) use ($order) {
1260
+        $columnNames = array_map(function($columnName) use ($order) {
1261 1261
             $ret = '"' . $columnName . '"';
1262 1262
             if (isset($order[$columnName])) {
1263 1263
                 $ret .= ' ' . $order[$columnName];
Please login to merge, or discard this patch.