Refactored Participant.php

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