Refactored Participant.php

Commuted assign in if statements, which are against CiviCRM coding standards and good conventions, to be assigned outside the statement.

Jira issue: https://issues.civicrm.org/jira/browse/CRM-14434