if ($this->_interviewToRelease) {
//user came from interview form.
foreach ([
- 'surveyId',
- 'contactIds',
- 'interviewerId',
- ] as $fld) {
+ 'surveyId',
+ 'contactIds',
+ 'interviewerId',
+ ] as $fld) {
$this->{"_$fld"} = $this->get($fld);
}
$activityStatus = CRM_Core_PseudoConstant::activityStatus('name');
$statusIds = [];
- foreach ([
- 'Scheduled',
- ] as $name) {
+ foreach (['Scheduled'] as $name) {
if ($statusId = array_search($name, $activityStatus)) {
$statusIds[] = $statusId;
}