.. _traits-alreadyparentstrait: .. _already-parents-trait: Already Parents Trait +++++++++++++++++++++ Trait is already used a `parent `_'s class or trait. There is no use to include it a second time, so one of them can be removed. .. code-block:: php See also `Traits `_. Connex PHP features ------------------- + `trait `_ Suggestions ___________ * Eliminate the trait in the parent class * Eliminate the trait in the child class Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Traits/AlreadyParentsTrait | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.8.0 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+