Merge pull request #22968 from civicrm/5.48
[civicrm-core.git] / api / v3 / SurveyRespondant.php
index f8b663eecefec1b3cbc7e124f26dbde3543f1967..dd9b4fd7fd674d14b817e2f5eb62e8bda7eeb4be 100644 (file)
@@ -54,9 +54,9 @@ function _civicrm_api3_survey_respondant_deprecation() {
  *
  * @return array
  */
-function civicrm_api3_survey_respondant_get(&$params) {
+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']);
   }