.. _structures-unusedglobal: .. _unused-global: Unused Global +++++++++++++ A global keyword is used in a method, yet the variable is not actually used. This makes PHP import values for nothing, or may create interference .. code-block:: php Connex PHP features ------------------- + `global `_ + `unused `_ Suggestions ___________ * Remove the global declaration * Remove the global variable altogether Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/UnusedGlobal | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-dolphin-structures-unusedglobal` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+