Skip to content

Commit f33c1ee

Browse files
committed
Database MigrationRunner checkMigration() typos changes
1 parent 38abfb1 commit f33c1ee

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

system/Database/MigrationRunner.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,11 @@ public function findMigrations(): array
471471
*
472472
* @param array $migrations
473473
* @param string $method
474-
* @param string $targetversion
474+
* @param string $targetVersion
475475
*
476476
* @return boolean
477477
*/
478-
protected function checkMigrations(array $migrations, string $method, string $targetversion)
478+
protected function checkMigrations(array $migrations, string $method, string $targetVersion): bool
479479
{
480480
// Check if no migrations found
481481
if (empty($migrations))
@@ -487,14 +487,14 @@ protected function checkMigrations(array $migrations, string $method, string $ta
487487
throw new \RuntimeException(lang('Migrations.empty'));
488488
}
489489

490-
// Check if $targetversion file is found
491-
if ((int)$targetversion !== 0 && ! array_key_exists($targetversion, $migrations))
490+
// Check if $targetVersion file is found
491+
if ((int)$targetVersion !== 0 && ! array_key_exists($targetVersion, $migrations))
492492
{
493493
if ($this->silent)
494494
{
495495
return false;
496496
}
497-
throw new \RuntimeException(lang('Migrations.notFound') . $targetversion);
497+
throw new \RuntimeException(lang('Migrations.notFound') . $targetVersion);
498498
}
499499

500500
ksort($migrations);

0 commit comments

Comments
 (0)