Explicitly define variable/function scope

To meet PHP 5 best practices / standards