class CRM_Mailing_Info extends CRM_Core_Component_Info {
/**
+ * @var string
* @inheritDoc
*/
protected $keyword = 'mailing';
-
/**
* @inheritDoc
* @return array
foreach ($reportTypes as $report) {
$result = civicrm_api3('ReportInstance', 'get', [
'sequential' => 1,
- 'report_id' => 'mailing/' . $report]);
+ 'report_id' => 'mailing/' . $report,
+ ]);
if (!empty($result['values'])) {
$reportIds[$report] = $result['values'][0]['id'];
}
'disableMandatoryTokensCheck' => (int) Civi::settings()->get('disable_mandatory_tokens_check'),
'fromAddress' => $fromAddress['values'],
'defaultTestEmail' => civicrm_api3('Contact', 'getvalue', [
- 'id' => 'user_contact_id',
- 'return' => 'email',
- ]),
+ 'id' => 'user_contact_id',
+ 'return' => 'email',
+ ]),
'visibility' => CRM_Utils_Array::makeNonAssociative(CRM_Core_SelectValues::groupVisibility()),
'workflowEnabled' => CRM_Mailing_Info::workflowEnabled(),
'reportIds' => $reportIds,
return $permissions;
}
-
/**
* @inheritDoc
* @return null