Update Participant.php

Removed 3 instances of assignment in if operators. This is ambiguous and against the Civi coding standards.
Refactored ParticipantListing.php

1) Commuted assigns in if statements into assigning, then checking, as otherwise fails code validators and breaches CiviCRM coding conventions.

2) Refactored repeated code found while repairing those errors into a separate reusable function that accepts parameters. I only did this where the code was identical. Where there was any distinction I didn't do this to prevent introducing bugs.

https://issues.civicrm.org/jira/browse/CRM-14434
fix inconsistent return value from fn
putting this in the queue when I remember as deep in something else but it fixed a fatal on off-site payment processor
CRM-12370 - add extension modules immediately after civicrm drupal module.

----------------------------------------
* CRM-12370: CRM_Utils_Hook::requireCiviModules() assigns infinite weight to extensions
  https://issues.civicrm.org/jira/browse/CRM-12370
CRM-15035 include/exclude - set tag defaults
CRM-15036 - force emailed social media image URLs to use HTTP.

----------------------------------------
* CRM-15036: Social media image URLs should always use HTTP in emails
  https://issues.civicrm.org/jira/browse/CRM-15036
CRM-15032 - change 4.4.0.mysql.tpl to UTF-8 encoding
CRM-14997 - fix regression that caused Add Contacts to Group button to be ALWAYS hidden.

----------------------------------------
* CRM-14997:
  https://issues.civicrm.org/jira/browse/CRM-14997
Merge pull request #3741 from davecivicrm/CRM-14997

CRM-14997 - fix regression that caused Add Contacts to Group button to b...
CRM-15037
CRM-15032 - change 4.4.0.mysql.tpl to UTF-8 encoding
CRM-13652 - Fix relationship api to process related memberships
Merge pull request #3743 from rohankatkar/CRM-15037

CRM-15037
Merge pull request #3737 from yashodha/4.4

CRM-15032 - change 4.4.0.mysql.tpl to UTF-8 encoding
Merge pull request #3744 from yashodha/CRM-15032

CRM-15032 - change 4.4.0.mysql.tpl to UTF-8 encoding
Merge pull request #3745 from colemanw/relMemberApi

CRM-13652 - Fix relationship api to process related memberships
Merge pull request #3748 from colemanw/relMemberApi

CRM-13652 - Fix relationship api to process related memberships
Merge pull request #3749 from civicrm/4.4

Merge branch 4.4 into master
CRM-15051, fixed highlighting for fields during contribution import

----------------------------------------
* CRM-15051: Total Amount not shown as required for Import Contributions - update existing contributions
  https://issues.civicrm.org/jira/browse/CRM-15051
-- fixed code to save line item when contribution is updated for membership, CRM-14918

----------------------------------------
* CRM-14918: Line Items are created for Participant when contribution is not recorded
  https://issues.civicrm.org/jira/browse/CRM-14918