@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | |
| 34 | 34 | $this->app->singleton( |
| 35 | 35 | self::COMMAND, |
| 36 | - function (Container $app) { |
|
| 36 | + function(Container $app) { |
|
| 37 | 37 | return new MigrateGenerateCommand( |
| 38 | 38 | $app->make(Generator::class), |
| 39 | 39 | $app->make(SchemaGenerator::class), |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $this->commands(self::COMMAND); |
| 47 | 47 | |
| 48 | 48 | // Bind the Repository Interface to $app['migrations.repository'] |
| 49 | - $this->app->bind('Illuminate\Database\Migrations\MigrationRepositoryInterface', function ($app) { |
|
| 49 | + $this->app->bind('Illuminate\Database\Migrations\MigrationRepositoryInterface', function($app) { |
|
| 50 | 50 | return $app['migration.repository']; |
| 51 | 51 | }); |
| 52 | 52 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $this->app->singleton(Compiler::class, TemplateCompiler::class); |
| 58 | 58 | |
| 59 | - $this->app->singleton(MigrationsGeneratorSetting::class, function () { |
|
| 59 | + $this->app->singleton(MigrationsGeneratorSetting::class, function() { |
|
| 60 | 60 | return new MigrationsGeneratorSetting(); |
| 61 | 61 | }); |
| 62 | 62 | } |
@@ -16,15 +16,15 @@ |
||
| 16 | 16 | { |
| 17 | 17 | // Check for multiple columns |
| 18 | 18 | if (count($foreignKey['fields']) > 1) { |
| 19 | - $value = "['" . implode("', '", $foreignKey['fields']) . "']"; |
|
| 20 | - $references = "['" . implode("', '", $foreignKey['references']) . "']"; |
|
| 19 | + $value = "['".implode("', '", $foreignKey['fields'])."']"; |
|
| 20 | + $references = "['".implode("', '", $foreignKey['references'])."']"; |
|
| 21 | 21 | } else { |
| 22 | - $value = "'" . $foreignKey['fields'][0] . "'"; |
|
| 23 | - $references = "'" . $foreignKey['references'][0] . "'"; |
|
| 22 | + $value = "'".$foreignKey['fields'][0]."'"; |
|
| 23 | + $references = "'".$foreignKey['references'][0]."'"; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | if (!empty($foreignKey['name'])) { |
| 27 | - $value .= ", '" . $foreignKey['name'] . "'"; |
|
| 27 | + $value .= ", '".$foreignKey['name']."'"; |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $output = sprintf( |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | { |
| 39 | 39 | // Convert column property to case insensitive |
| 40 | 40 | // Issue https://github.com/kitloong/laravel-migrations-generator/issues/34 |
| 41 | - $lowerKey = (new Collection($column))->mapWithKeys(function ($item, $key) { |
|
| 41 | + $lowerKey = (new Collection($column))->mapWithKeys(function($item, $key) { |
|
| 42 | 42 | return [strtolower($key) => $item]; |
| 43 | 43 | }); |
| 44 | 44 | |