This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
18
{
19
# Dump SQLite database.
20
$this->prepareDatabase();
21
22
$uri = new \ByJG\Util\Uri("sqlite://{$this->path}");
23
$this->migrate = new \ByJG\DbMigration\Migration($uri, __DIR__ . '/../example/sqlite', true, $this->migrationTable);
This method seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
29
{
30
$this->migrationTable = 'migration_table';
31
32
$this->prepareDatabase();
33
34
$uri = new \ByJG\Util\Uri("sqlite://{$this->path}");
35
$this->migrate = new \ByJG\DbMigration\Migration($uri, __DIR__ . '/../example/sqlite', true, $this->migrationTable);
It seems like you call parent on a different method (testUpVersion1() instead of testUsingCustomTable()). Are you sure this is correct? If so, you might want to change this to $this->testUpVersion1().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.