@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $env = $this->getEnvironment($environment); |
| 122 | 122 | $versions = $env->getVersionLog(); |
| 123 | 123 | |
| 124 | - $maxNameLength = $versions ? max(array_map(function ($version) { |
|
| 124 | + $maxNameLength = $versions ? max(array_map(function($version) { |
|
| 125 | 125 | return strlen($version['migration_name']); |
| 126 | 126 | }, $versions)) : 0; |
| 127 | 127 | |
@@ -285,7 +285,7 @@ discard block |
||
| 285 | 285 | $versions = array_keys($this->getMigrations($environment)); |
| 286 | 286 | $dateString = $dateTime->format('YmdHis'); |
| 287 | 287 | |
| 288 | - $outstandingMigrations = array_filter($versions, function ($version) use ($dateString) { |
|
| 288 | + $outstandingMigrations = array_filter($versions, function($version) use ($dateString) { |
|
| 289 | 289 | return $version <= $dateString; |
| 290 | 290 | }); |
| 291 | 291 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | $target = 0; |
| 464 | 464 | } elseif (!is_numeric($target) && $target !== null) { // try to find a target version based on name |
| 465 | 465 | // search through the migrations using the name |
| 466 | - $migrationNames = array_map(function ($item) { |
|
| 466 | + $migrationNames = array_map(function($item) { |
|
| 467 | 467 | return $item['migration_name']; |
| 468 | 468 | }, $executedVersions); |
| 469 | 469 | $found = array_search($target, $migrationNames, true); |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | $this->getOutput()->writeln('Migration file'); |
| 709 | 709 | $this->getOutput()->writeln( |
| 710 | 710 | array_map( |
| 711 | - function ($phpFile) { |
|
| 711 | + function($phpFile) { |
|
| 712 | 712 | return " <info>{$phpFile}</info>"; |
| 713 | 713 | }, |
| 714 | 714 | $phpFiles |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | */ |
| 105 | 105 | public static function mapClassNameToFileName($className) |
| 106 | 106 | { |
| 107 | - $snake = function ($matches) { |
|
| 107 | + $snake = function($matches) { |
|
| 108 | 108 | return '_' . strtolower($matches[0]); |
| 109 | 109 | }; |
| 110 | 110 | $fileName = preg_replace_callback('/\d+|[A-Z]/', $snake, $className); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | */ |
| 273 | 273 | public static function getFiles($paths) |
| 274 | 274 | { |
| 275 | - $files = static::globAll(array_map(function ($path) { |
|
| 275 | + $files = static::globAll(array_map(function($path) { |
|
| 276 | 276 | return $path . DIRECTORY_SEPARATOR . "*.php"; |
| 277 | 277 | }, (array)$paths)); |
| 278 | 278 | // glob() can return the same file multiple times |
@@ -56,7 +56,7 @@ |
||
| 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), |
@@ -8,8 +8,8 @@ |
||
| 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)) { |
@@ -6,7 +6,7 @@ |
||
| 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 |