.. _structures-assignedinonebranch: .. _assigned-in-one-branch: Assigned In One Branch ++++++++++++++++++++++ This rule reports variables that are assigned in one branch, and not in the other. This situation means that, depending on the branch used, some variables may not always be available. Such inbalance may generate warnings. This rule looks at if/then structures. .. code-block:: php Connex PHP features ------------------- + `assignation `_ Suggestions ___________ * Assign in the second branch * Assign outside the condition Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/AssignedInOneBranch | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 1.0.5 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | High | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+