Passed
Pull Request — master (#1974)
by
unknown
03:28
created
src/Phinx/Console/Command/ListAliases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                         sprintf('%s %s', str_repeat('=', $maxAliasLength), str_repeat('=', $maxClassLength)),
57 57
                     ],
58 58
                     array_map(
59
-                        function ($alias, $class) use ($maxAliasLength, $maxClassLength) {
59
+                        function($alias, $class) use ($maxAliasLength, $maxClassLength) {
60 60
                             return sprintf('%s %s', str_pad($alias, $maxAliasLength), str_pad($class, $maxClassLength));
61 61
                         },
62 62
                         array_keys($aliases),
Please login to merge, or discard this patch.
src/composer_autoloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  *
7 7
  * @return bool
8 8
  */
9
-return function () {
9
+return function() {
10 10
     $files = [
11 11
       __DIR__ . '/../../../autoload.php', // composer dependency
12 12
       __DIR__ . '/../vendor/autoload.php', // stand-alone package
Please login to merge, or discard this patch.
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.