What are common formatting issues to watch out for when writing PHP code?

One common formatting issue in PHP code is inconsistent indentation, which can make the code harder to read and maintain. To solve this, make sure to use consistent indentation throughout the codebase, typically using spaces or tabs for each level of indentation. Example:

// Inconsistent indentation
function exampleFunction() {
    $variable = 'value';
  echo $variable;
}

// Consistent indentation
function exampleFunction() {
    $variable = 'value';
    echo $variable;
}