.. _structures-oneexpressionbracketsconsistency: .. _one-expression-brackets-consistency: One Expression Brackets Consistency +++++++++++++++++++++++++++++++++++ Brackets around one-line expressions are not consistent. PHP makes bracket optional when a control structure pilot only one expression. Both are semantically identical. This analysis reports code that uses brackets while the vast majority of other expressions uses none. Or the contrary. Another analysis, [Structures/Bracketless], reports the absence of brackets as an `error `_. .. code-block:: php Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/OneExpressionBracketsConsistency | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Preferences ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.9.5 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+