.. _structures-gtorltfavorite: .. _comparisons-orientation: Comparisons Orientation +++++++++++++++++++++++ Maths has two comparisons styles : ``>`` or ``<``. Both may include equality : ``<=`` and ``>=``. The analyzed code has less than 10% of one of them : for consistency reasons, it is recommended to make them all the same. It is recommended to always use the same comparison style. .. code-block:: php $c) { } elseif ($c > $b) { } else { // equality case } // Alterning comparison style lead to harder to read code if ($b > 3) { } elseif ($b < 3) { } ?> See also `Comparison Operators `_. Connex PHP features ------------------- + `comparison `_ Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/GtOrLtFavorite | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`Preferences ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.3.2 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+