src/Generators/DictionaryWordTrait.php
Reference to undeclared property \GregorJ\CorrectHorse\Generators\DictionaryWordTrait->items
Open
Open
$this->items[] = $word;
- Exclude checks
Call to undeclared method \GregorJ\CorrectHorse\Generators\DictionaryWordTrait::reset
Open
Open
$this->reset();
- Exclude checks
Reference to undeclared property \GregorJ\CorrectHorse\Generators\DictionaryWordTrait->items
Open
Open
return in_array($word, $this->items, true);
- Exclude checks
Call to undeclared method \GregorJ\CorrectHorse\Generators\DictionaryWordTrait::getRandomWord
Open
Open
$word = $this->getRandomWord();
- Exclude checks
Remove this commented out code. Open
Open
//abstract private function getRandomWord(): string;
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"