.. _variables-variablelong: .. _variables-with-long-names: Variables With Long Names +++++++++++++++++++++++++ This analysis collects all variables with more than 20 characters longs. This may be configured with the ``variableLength`` parameter. PHP has not limitation on variable name size. While short name are often obscure, long names are usually better. Yet, there exists a limit to convenient variable name length. .. code-block:: php +----------------+---------+---------+----------------------------------------------------------------+ | Name | Default | Type | Description | +----------------+---------+---------+----------------------------------------------------------------+ | variableLength | 20 | integer | Minimum size of a long variable name, including the initial $. | +----------------+---------+---------+----------------------------------------------------------------+ See also `Basics `_. Suggestions ___________ * Try to use short variable names. Specs _____ +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Variables/VariableLong | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Appinfo `, :ref:`CE `, :ref:`Changed Behavior ` | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Community Edition `_, `Exakat Cloud `_ | +--------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+