src/Generators/RandomWord.php
Avoid unused private methods such as 'getRandomWord'. Open
Open
private function getRandomWord(): string
{
return $this->dictionary->getRandomWord();
}
- Read upRead up
- Exclude checks
UnusedPrivateMethod
Since: 0.2
Unused Private Method detects when a private method is declared but is unused.
Example
class Something
{
private function foo() {} // unused
}