Passed
Push — master ( e71f2d...9973b3 )
by mark
02:41 queued 12s
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 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
  */
9 9
 return function () {
10 10
     $files = [
11
-      __DIR__ . '/../../../autoload.php', // composer dependency
12
-      __DIR__ . '/../vendor/autoload.php', // stand-alone package
11
+        __DIR__ . '/../../../autoload.php', // composer dependency
12
+        __DIR__ . '/../vendor/autoload.php', // stand-alone package
13 13
     ];
14 14
     foreach ($files as $file) {
15 15
         if (is_file($file)) {
Please login to merge, or discard this 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/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 2 patches
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.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -267,9 +267,9 @@  discard block
 block discarded – undo
267 267
             // Handle id => "field_name" to support AUTO_INCREMENT
268 268
             $column = new Column();
269 269
             $column->setName($options['id'])
270
-                   ->setType('integer')
271
-                   ->setSigned($options['signed'] ?? true)
272
-                   ->setIdentity(true);
270
+                    ->setType('integer')
271
+                    ->setSigned($options['signed'] ?? true)
272
+                    ->setIdentity(true);
273 273
 
274 274
             if (isset($options['limit'])) {
275 275
                 $column->setLimit($options['limit']);
@@ -442,11 +442,11 @@  discard block
 block discarded – undo
442 442
 
443 443
             $column = new Column();
444 444
             $column->setName($columnInfo['Field'])
445
-                   ->setNull($columnInfo['Null'] !== 'NO')
446
-                   ->setType($phinxType['name'])
447
-                   ->setSigned(strpos($columnInfo['Type'], 'unsigned') === false)
448
-                   ->setLimit($phinxType['limit'])
449
-                   ->setScale($phinxType['scale']);
445
+                    ->setNull($columnInfo['Null'] !== 'NO')
446
+                    ->setType($phinxType['name'])
447
+                    ->setSigned(strpos($columnInfo['Type'], 'unsigned') === false)
448
+                    ->setLimit($phinxType['limit'])
449
+                    ->setScale($phinxType['scale']);
450 450
 
451 451
             if ($columnInfo['Extra'] === 'auto_increment') {
452 452
                 $column->setIdentity(true);
Please login to merge, or discard this patch.