Bugfix to prevent cast error when closing resources and adjacent
function formatting update.
Merge branch 'master' of ssh://git@github.com/optimis/deardoc-php-cloudfiles.git