What are the potential pitfalls of not properly formatting PHP code, such as incorrect indentation or missing brackets?

Improperly formatting PHP code, such as incorrect indentation or missing brackets, can lead to syntax errors and make the code difficult to read and maintain. To solve this issue, it is important to properly indent your code for readability and consistency, and make sure all opening brackets have corresponding closing brackets.

// Incorrectly formatted PHP code
if ($condition) {
echo "Condition is true";
else {
echo "Condition is false";
}

// Properly formatted PHP code
if ($condition) {
    echo "Condition is true";
} else {
    echo "Condition is false";
}