.. _traits-multipleusage: .. _multiple-usage-of-same-trait: Multiple Usage Of Same Trait ++++++++++++++++++++++++++++ The same trait is used several times. One trait usage is sufficient. PHP doesn't raise any `error `_ when traits are included multiple times. .. code-block:: php See also `Traits `_. Connex PHP features ------------------- + `trait `_ Suggestions ___________ * Remove any multiple traits from use expressions * Review the class tree, and remove any trait mentioned multiple times Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Traits/MultipleUsage | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Suggestions ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.5.7 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-nextcloud-traits-multipleusage` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+