X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FSurveyRespondant.php;h=dd9b4fd7fd674d14b817e2f5eb62e8bda7eeb4be;hb=f118a5ba2e82f3423e982c02df4979c6c0922cdb;hp=f8b663eecefec1b3cbc7e124f26dbde3543f1967;hpb=5afcf74389296764bd92ed3bc3b2f5f209933bfe;p=civicrm-core.git diff --git a/api/v3/SurveyRespondant.php b/api/v3/SurveyRespondant.php index f8b663eece..dd9b4fd7fd 100644 --- a/api/v3/SurveyRespondant.php +++ b/api/v3/SurveyRespondant.php @@ -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']); }