.. _structures-nohardcodedport: .. _no-hardcoded-port: No Hardcoded Port +++++++++++++++++ When connecting to a remove server, port is an important information. It is recommended to make this configurable (with constant or configuration), to as to be able to change this value without changing the code. .. code-block:: php Connex PHP features ------------------- + `port `_ Suggestions ___________ * Move the port to a configuration file, an environment variable Specs _____ +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/NoHardcodedPort | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Analyze `, :ref:`Changed Behavior `, :ref:`Security ` | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Examples | :ref:`case-wordpress-structures-nohardcodedport` | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------+