.. _php-uppercasekeyword: .. _non-lowercase-keywords: Non-lowercase Keywords ++++++++++++++++++++++ The usual convention is to write PHP keywords (like ``as``, ``foreach``, ``switch``, ``case``, ``break``, etc.) all in lowercase. PHP understands them in lowercase, UPPERCASE or WilD Case, so there is nothing compulsory here. Although, it will look strange to many. Some keywords are missing from this analysis : ``extends``, ``implements``, ``as``. This is due to the internal `engine `_, which doesn't keep track of them in its AST representation. .. code-block:: php Connex PHP features ------------------- + `case `_ Suggestions ___________ * Use lowercase only PHP keywords, except for constants such as __CLASS__. Specs _____ +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Php/UpperCaseKeyword | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Coding conventions ` | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+--------------------------------------------------------------------------------------------------------------------------------------+