Skip to content

Commit

Permalink
Fix by Scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Pozdnyakov committed Feb 24, 2019
1 parent 6b7de00 commit ebd15c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Start.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct(array $argv)
}
$this->params = array_splice($argv, 2);
$di = new Di();
$di->setShared('db', function () {
$di->setShared('db', function() {
return Factory::load(require PathProvider::getConfig());
});
$di->set('modelsManager', new Manager());
Expand Down
1 change: 1 addition & 0 deletions src/command/Down.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function run()
}
if ($this->actionConfirmation('Revert the above migrations?')) {
foreach ($migrations as $migration) {
/** @var TblMigration $migration */
echo "Migration {$migration->getMigration()}: ";
$result = $this->down($migration);
echo $result ? 'true' : 'false';
Expand Down
2 changes: 1 addition & 1 deletion src/command/MigrationRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getExistingMigrations(): array
{
$migrations = scandir(PathProvider::getMigrationDir());
$ignore = ['.', '..'];
return array_filter($migrations, function ($item) use ($ignore) {
return array_filter($migrations, function($item) use ($ignore) {
return !in_array($item, $ignore);
});
}
Expand Down

0 comments on commit ebd15c5

Please sign in to comment.