gregor-j/correct-horse

View on GitHub
src/Generators/RandomWord.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid unused private methods such as 'getRandomWord'.
Open

    private function getRandomWord(): string
    {
        return $this->dictionary->getRandomWord();
    }
Severity: Minor
Found in src/Generators/RandomWord.php by phpmd

UnusedPrivateMethod

Since: 0.2

Unused Private Method detects when a private method is declared but is unused.

Example

class Something
{
    private function foo() {} // unused
}

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

There are no issues that match your filters.

Category
Status