gregor-j/correct-horse

View on GitHub
src/Generators/RandomLowerCaseWord.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Avoid unused private methods such as 'getRandomWord'.
Open

    private function getRandomWord(): string
    {
        return strtolower($this->dictionary->getRandomWord());
    }

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