.. _classes-wrongcase: .. _wrong-class-name-case: Wrong Class Name Case +++++++++++++++++++++ The spotted classes are used with a different case than their definition. While PHP accepts this, it makes the code harder to read. It may also be a violation of coding conventions. .. code-block:: php See also `PHP class name constant case sensitivity and PSR-11 `_. Suggestions ___________ * Match the defined class name with the called name Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Classes/WrongCase | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Coding conventions ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-wordpress-classes-wrongcase` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+