Skip to content

Commit b38b777

Browse files
committed
Minor typo
1 parent 7c44b51 commit b38b777

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/Console/ConsoleCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ByJG\DbMigration\Console;
44

5-
use ByJG\AnyDataset\ConnectionManagement;
65
use ByJG\DbMigration\Migration;
76
use ByJG\Util\Uri;
87
use Symfony\Component\Console\Command\Command;
@@ -89,6 +88,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
8988
}
9089
}
9190

91+
/**
92+
* @param \Exception|\Error $ex
93+
* @param \Symfony\Component\Console\Output\OutputInterface $output
94+
*/
9295
protected function handleError($ex, OutputInterface $output)
9396
{
9497
$output->writeln('-- Error migrating tables --');

src/Database/PgsqlDatabase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ protected static function getDbDriverWithoutDatabase(Uri $uri)
2121
return Factory::getDbRelationalInstance($customUri->withPath('/')->__toString());
2222
}
2323

24+
/**
25+
* @param \ByJG\AnyDataset\DbDriverInterface $dbDriver
26+
* @param $database
27+
*/
2428
protected static function createDatabaseIfNotExists($dbDriver, $database)
2529
{
2630
$currentDbName = $dbDriver->getScalar(

src/Migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function updateTableVersion()
174174
*/
175175
public function getCurrentVersion()
176176
{
177-
return $this->getDbCommand()->getVersion();;
177+
return $this->getDbCommand()->getVersion();
178178
}
179179

180180
/**

0 commit comments

Comments
 (0)