.. _structures-emptyloop: .. _empty-loop: Empty Loop ++++++++++ This rule reports empty loop. An empty loop has no operation in its main block. Some empty loop may have features: they are calling methods in the condition, which may change the status of a resource. Empty loop may come from a typo, where a semi colon detach the block from its loop. .. code-block:: php Connex PHP features ------------------- + `loop `_ Suggestions ___________ * Remove the extra semicolon * Fill the loop with a payload Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/EmptyLoop | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.5.0 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+