Merge pull request #13906 from agh1/whygroupcontribamt
[civicrm-core.git] / api / v3 / SurveyRespondant.php
index eb5fe593d166a5c43fecf45ff0ee82c229ca5a10..5fccf6bc6f57a2d6f9388f60e0d10ce3ba903482 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | Copyright Tech To The People (c) 2010                              |
  +--------------------------------------------------------------------+
@@ -56,7 +56,7 @@ function _civicrm_api3_survey_respondant_deprecation() {
  */
 function civicrm_api3_survey_respondant_get(&$params) {
 
-  civicrm_api3_verify_one_mandatory($params, NULL, array('survey_id', 'id'));
+  civicrm_api3_verify_one_mandatory($params, NULL, ['survey_id', 'id']);
 
   if (array_key_exists('survey_id', $params)) {
     $surveyID = $params['survey_id'];
@@ -70,7 +70,7 @@ function civicrm_api3_survey_respondant_get(&$params) {
     $interviewerID = $params['interviewer_id'];
   }
 
-  $statusIds = array();
+  $statusIds = [];
   if (array_key_exists('status_id', $params)) {
     $statusIds = explode(',', $params['status_id']);
   }