Sanitised PHP Script (Removed unreachable statements, PHPDoc properly formated)