Passed
Pull Request — master (#2066)
by
unknown
02:50
created
src/Phinx/Util/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public static function mapClassNameToFileName($className)
105 105
     {
106
-        $snake = function ($matches) {
106
+        $snake = function($matches) {
107 107
             return '_' . strtolower($matches[0]);
108 108
         };
109 109
         $fileName = preg_replace_callback('/\d+|[A-Z]/', $snake, $className);
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      */
266 266
     public static function getFiles($paths)
267 267
     {
268
-        $files = static::globAll(array_map(function ($path) {
268
+        $files = static::globAll(array_map(function($path) {
269 269
             return $path . DIRECTORY_SEPARATOR . '*.php';
270 270
         }, (array)$paths));
271 271
         // glob() can return the same file multiple times
Please login to merge, or discard this patch.
src/Phinx/Db/Adapter/MysqlAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
 
1304 1304
         $values = $column->getValues();
1305 1305
         if ($values && is_array($values)) {
1306
-            $def .= '(' . implode(', ', array_map(function ($value) {
1306
+            $def .= '(' . implode(', ', array_map(function($value) {
1307 1307
                 // we special case NULL as it's not actually allowed an enum value,
1308 1308
                 // and we want MySQL to issue an error on the create statement, but
1309 1309
                 // quote coerces it to an empty string, which will not error
@@ -1370,7 +1370,7 @@  discard block
 block discarded – undo
1370 1370
 
1371 1371
         $columnNames = $index->getColumns();
1372 1372
         $order = $index->getOrder() ?? [];
1373
-        $columnNames = array_map(function ($columnName) use ($order) {
1373
+        $columnNames = array_map(function($columnName) use ($order) {
1374 1374
             $ret = '`' . $columnName . '`';
1375 1375
             if (isset($order[$columnName])) {
1376 1376
                 $ret .= ' ' . $order[$columnName];
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
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
         }
1256 1256
 
1257 1257
         $order = $index->getOrder() ?? [];
1258
-        $columnNames = array_map(function ($columnName) use ($order) {
1258
+        $columnNames = array_map(function($columnName) use ($order) {
1259 1259
             $ret = '"' . $columnName . '"';
1260 1260
             if (isset($order[$columnName])) {
1261 1261
                 $ret .= ' ' . $order[$columnName];
@@ -1267,8 +1267,8 @@  discard block
 block discarded – undo
1267 1267
         $includedColumns = $index->getInclude() ? sprintf('INCLUDE ("%s")', implode('","', $index->getInclude())) : '';
1268 1268
 
1269 1269
         $createIndexSentence = 'CREATE %s INDEX %s ON %s ';
1270
-        if($index->getType() === self::GIN_INDEX_TYPE) {
1271
-            $createIndexSentence .= ' USING ' . $index->getType() .'(%s) %s;';
1270
+        if ($index->getType() === self::GIN_INDEX_TYPE) {
1271
+            $createIndexSentence .= ' USING ' . $index->getType() . '(%s) %s;';
1272 1272
         } else {
1273 1273
             $createIndexSentence .= '(%s) %s;';
1274 1274
         }
Please login to merge, or discard this patch.