mheinzerling/php-databaseutils

View on GitHub
src/structure/index/Primary.php

Summary

Maintainability
A
0 mins
Test Coverage

Avoid unused parameters such as '$setting'.
Open

    public function modifySql(Index $before, SqlSetting $setting):?string
Severity: Minor
Found in src/structure/index/Primary.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$setting'.
Open

    public function toAlterDropSql(SqlSetting $setting): string
Severity: Minor
Found in src/structure/index/Primary.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

Avoid unused parameters such as '$setting'.
Open

    public function toSql(SqlSetting $setting): string
Severity: Minor
Found in src/structure/index/Primary.php by phpmd

UnusedFormalParameter

Since: 0.2

Avoid passing parameters to methods or constructors and then not using those parameters.

Example

class Foo
{
    private function bar($howdy)
    {
        // $howdy is not used
    }
}

Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter

TODO found
Open

        return "TODO: PRIMARY changed to (" . implode(", ", array_keys($this->fields)) . ") from (" . implode(", ", array_keys($before->fields)) . ") ";
Severity: Minor
Found in src/structure/index/Primary.php by fixme

TODO found
Open

        if (!$before instanceof Primary) return "TODO: change index type to primary " . $this->getName();
Severity: Minor
Found in src/structure/index/Primary.php by fixme

There are no issues that match your filters.

Category
Status