@@ -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 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | private function handleInteger(array $field, Column $column, Collection $indexes): array |
43 | 43 | { |
44 | - if (($column->getUnsigned()||Config::get('database.default')=="sqlsrv") && $column->getAutoincrement()) { |
|
44 | + if (($column->getUnsigned() || Config::get('database.default') == "sqlsrv") && $column->getAutoincrement()) { |
|
45 | 45 | if ($field['type'] === 'integer') { |
46 | 46 | $field['type'] = ColumnType::INCREMENTS; |
47 | 47 | } else { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | public function generate(string $table, $foreignKeys, bool $ignoreForeignKeyNames): array |
27 | 27 | { |
28 | 28 | $this->table = $table; |
29 | - if($table == "m_event_list"){ |
|
29 | + if ($table == "m_event_list") { |
|
30 | 30 | $d = 1; |
31 | 31 | } |
32 | 32 | $fields = []; |
@@ -36,17 +36,17 @@ discard block |
||
36 | 36 | } |
37 | 37 | foreach ($foreignKeys as $foreignKey) { |
38 | 38 | $references = ""; |
39 | - $field=""; |
|
40 | - foreach($foreignKey->getLocalColumns() as $f){ |
|
41 | - $field .="'".$f."',"; |
|
39 | + $field = ""; |
|
40 | + foreach ($foreignKey->getLocalColumns() as $f) { |
|
41 | + $field .= "'".$f."',"; |
|
42 | 42 | } |
43 | - $field = substr($field,0,-1); |
|
44 | - $field.=")"; |
|
45 | - foreach($foreignKey->getForeignColumns() as $f){ |
|
46 | - $references .="'".$f."',"; |
|
43 | + $field = substr($field, 0, -1); |
|
44 | + $field .= ")"; |
|
45 | + foreach ($foreignKey->getForeignColumns() as $f) { |
|
46 | + $references .= "'".$f."',"; |
|
47 | 47 | } |
48 | - $references = substr($references,0,-1); |
|
49 | - $references.=")"; |
|
48 | + $references = substr($references, 0, -1); |
|
49 | + $references .= ")"; |
|
50 | 50 | $fields[] = [ |
51 | 51 | 'name' => $this->getName($foreignKey, $ignoreForeignKeyNames), |
52 | 52 | 'field' => $field, |