Update Registration.php - Code cleaned & refactored with PSR-0/1/2 code conventions

I have cleaned codes and refactored the class with an eye on PSR-0/1/2 code conventions