Refactored Participant.php

Commuted assigns in if statements to assigns that are then checked in if statements. These were in breach of CiviCRM coding standards. These were found while investigating https://issues.civicrm.org/jira/browse/CRM-14434.