mirror of
https://github.com/flarum/framework.git
synced 2025-03-10 12:21:11 +08:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
parent
352f537c9d
commit
52394776ff
@ -27,7 +27,7 @@ abstract class Migration
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'up' => function (Builder $schema) use ($name, $definition) {
|
'up' => function (Builder $schema) use ($name, $definition) {
|
||||||
$schema->create($name, function (Blueprint $table) use ($schema, $definition) {
|
$schema->create($name, function (Blueprint $table) use ($definition) {
|
||||||
$definition($table);
|
$definition($table);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -59,7 +59,7 @@ abstract class Migration
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'up' => function (Builder $schema) use ($tableName, $columnDefinitions) {
|
'up' => function (Builder $schema) use ($tableName, $columnDefinitions) {
|
||||||
$schema->table($tableName, function (Blueprint $table) use ($schema, $columnDefinitions) {
|
$schema->table($tableName, function (Blueprint $table) use ($columnDefinitions) {
|
||||||
foreach ($columnDefinitions as $columnName => $options) {
|
foreach ($columnDefinitions as $columnName => $options) {
|
||||||
$type = array_shift($options);
|
$type = array_shift($options);
|
||||||
$table->addColumn($type, $columnName, $options);
|
$table->addColumn($type, $columnName, $options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user