Removing static methods from Curl.php, fixing warning in getHomeDirectory method and updating indentation