How can the code structure and indentation in the PHP script be improved to enhance readability and maintainability, as suggested by forum contributors?

The code structure and indentation in the PHP script can be improved by following a consistent and clear indentation style, such as using tabs or spaces for each level of nesting. This will make the code easier to read and maintain for both the original developer and others who may work on the script in the future.

<?php

// Original code with inconsistent indentation
function calculateTotal($price, $quantity) {
$total = $price * $quantity;
return $total;
}

// Improved code with consistent indentation
function calculateTotal($price, $quantity) {
    $total = $price * $quantity;
    return $total;
}

?>