What best practices should be followed when formatting PHP code, particularly when using if-else constructs?

When formatting PHP code, it is important to follow best practices to ensure readability and maintainability. When using if-else constructs, it is recommended to use proper indentation, braces for clarity, and consistent spacing to make the code easier to follow. Additionally, it is good practice to use meaningful variable names and comments to explain the logic behind the conditions.

// Example of properly formatted if-else construct
if ($condition) {
    // Code block for true condition
    echo "Condition is true";
} else {
    // Code block for false condition
    echo "Condition is false";
}