Skip to content

Commit 351277e

Browse files
committed
refactor: rename variable
1 parent 2f02ec0 commit 351277e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Database/MigrationRunner.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -458,18 +458,18 @@ protected function migrationFromFile(string $path, string $namespace)
458458
return false;
459459
}
460460

461-
$name = basename($path, '.php');
461+
$filename = basename($path, '.php');
462462

463-
if (! preg_match($this->regex, $name)) {
463+
if (! preg_match($this->regex, $filename)) {
464464
return false;
465465
}
466466

467467
$locator = Services::locator(true);
468468

469469
$migration = new stdClass();
470470

471-
$migration->version = $this->getMigrationNumber($name);
472-
$migration->name = $this->getMigrationName($name);
471+
$migration->version = $this->getMigrationNumber($filename);
472+
$migration->name = $this->getMigrationName($filename);
473473
$migration->path = $path;
474474
$migration->class = $locator->getClassname($path);
475475
$migration->namespace = $namespace;

0 commit comments

Comments
 (0)