RebelCode/sql-migrations

View on GitHub

Showing 5 of 13 total issues

Avoid using undefined variables such as '$direction' which will lead to PHP notices.
Open

                $this->onMigrationsError($version, $direction, $sMigrations, $exception);
Severity: Minor
Found in src/AbstractMigrator.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$direction' which will lead to PHP notices.
Open

        $versions = $this->getMigrationInfo($targetVer, $direction);
Severity: Minor
Found in src/AbstractMigrator.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$direction' which will lead to PHP notices.
Open

            $uMigrations = $this->getMigrations($version, $direction);
Severity: Minor
Found in src/AbstractMigrator.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$direction' which will lead to PHP notices.
Open

            $sMigrations = $this->sortMigrations($uMigrations, $direction);
Severity: Minor
Found in src/AbstractMigrator.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Avoid using undefined variables such as '$direction' which will lead to PHP notices.
Open

                $this->runMigrations($version, $direction, $sMigrations);
Severity: Minor
Found in src/AbstractMigrator.php by phpmd

UndefinedVariable

Since: 2.8.0

Detects when a variable is used that has not been defined before.

Example

class Foo
{
    private function bar()
    {
        // $message is undefined
        echo $message;
    }
}

Source https://phpmd.org/rules/cleancode.html#undefinedvariable

Severity
Category
Status
Source
Language