Skip to content

Commit

Permalink
Merge pull request #15 from chrishalbert/carbonComposerReqChange
Browse files Browse the repository at this point in the history
[carbonComposerReqChange] Add eol statement.
  • Loading branch information
chrishalbert authored Jul 22, 2018
2 parents cb75670 + d2fc2bc commit c3d6086
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Hooks/PrintRan.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class PrintRan implements NomadicMigrationHookInterface
public function execute(NomadicMigration $migration = null)
{
$migrationFileName = $migration ? $migration->getFileName() : 'Migration';
echo $migrationFileName . ' finished at ' . Carbon::now()->toDateTimeString();
echo $migrationFileName . ' finished at ' . Carbon::now()->toDateTimeString() . PHP_EOL;
}
}
2 changes: 1 addition & 1 deletion src/Hooks/PrintRunning.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class PrintRunning implements NomadicMigrationHookInterface
public function execute(NomadicMigration $migration = null)
{
$migrationFileName = $migration ? $migration->getFileName() : 'Migration';
echo $migrationFileName . ' started at ' . Carbon::now()->toDateTimeString();
echo $migrationFileName . ' started at ' . Carbon::now()->toDateTimeString() . PHP_EOL;
}
}
8 changes: 4 additions & 4 deletions src/Traits/Printable.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ trait Printable
*/
public function initPrintable()
{
parent::addHook(NomadicMigration::PRE_MIGRATE, new PrintRunning());
parent::addHook(NomadicMigration::POST_MIGRATE, new PrintRan());
parent::addHook(NomadicMigration::PRE_ROLLBACK, new PrintRunning());
parent::addHook(NomadicMigration::POST_MIGRATE, new PrintRan());
$this->addHook(NomadicMigration::PRE_MIGRATE, new PrintRunning());
$this->addHook(NomadicMigration::POST_MIGRATE, new PrintRan());
$this->addHook(NomadicMigration::PRE_ROLLBACK, new PrintRunning());
$this->addHook(NomadicMigration::POST_ROLLBACK, new PrintRan());
}
}

0 comments on commit c3d6086

Please sign in to comment.