.. _structures-shouldpreprocess: .. _preprocessable: Preprocessable ++++++++++++++ The following expressions are made of literals or already known values : they may be fully calculated before running PHP. By doing so, this will reduce the amount of work of PHP. This is a micro-optimisation, when this is used once, or the amount of work is small. It may be kept for readability. .. code-block:: php Connex PHP features ------------------- + `preprocess `_ + `readability `_ Suggestions ___________ * Do the work yourself, instead of giving it to PHP Specs _____ +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/ShouldPreprocess | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior `, :ref:`Rector ` | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Instant (5 mins) | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-phpadsnew-structures-shouldpreprocess` | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------+