PHP - Zend coding standards

@markewallace - Hi Mark. Here some changes to the core where the code didn't adhere to the PHP Zend coding standards.