mirror of
https://github.com/flarum/core.git
synced 2025-07-20 00:01:17 +02:00
Apply fixes from StyleCI
[ci skip] [skip ci]
This commit is contained in:
committed by
StyleCI Bot
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);
|
||||||
|
Reference in New Issue
Block a user