Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
luceos authored and StyleCIBot committed Sep 28, 2020
1 parent c56bf26 commit ce70b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Database/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function createTable($name, callable $definition)
{
return [
'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);
});
},
Expand Down Expand Up @@ -59,7 +59,7 @@ public static function addColumns($tableName, array $columnDefinitions)
{
return [
'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) {
$type = array_shift($options);
$table->addColumn($type, $columnName, $options);
Expand Down

0 comments on commit ce70b57

Please sign in to comment.