class Reek::SmellDetectors::RepeatedConditional

Simulated Polymorphism occurs when

Conditional code is hard to read and understand, because the reader must hold more state in his head. When the same value is tested in multiple places throughout an application, any change to the set of possible values will require many methods and classes to change. Tests for the type of an object may indicate that the abstraction represented by that type is not completely defined (or understood).

RepeatedConditional checks for multiple conditionals testing the same value throughout a single class.

See {file:docs/Repeated-Conditional.md} for details.