Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Allowing folder in seed folder to improve readability (freitasmurillo#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
freitasmurillo authored Mar 6, 2018
1 parent ad8f68c commit 0917864
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function runMigration($classes)
$pendingMigrations = $this->getPendingMigrations($classes, $ranMigrations);

if (count($pendingMigrations) == 0) {
echo "Nothing new to migrate";
echo "Nothing new to migrate \n";
return;
}

Expand Down
5 changes: 4 additions & 1 deletion src/Resolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ protected function getClasses($dir)
$classes = [];
while (false != ($file = readdir($dirHandler))) {
if ($file != "." && $file != "..") {
require_once("$dir" . "/" . $file);
if (is_dir("{$dir}/{$file}")) {
return self::getClasses("{$dir}/{$file}");
}
require_once("{$dir}/{$file}");
$classes[] = $this->buildClass($file);;
}
}
Expand Down

0 comments on commit 0917864

Please sign in to comment.