[#36] Fix indentation

This commit is contained in:
Jens Schuppe 2020-08-14 10:43:06 +02:00
parent 3553ed83b9
commit 6b42c72bf8

View file

@ -802,15 +802,15 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
return self::$_contributionStatusOptions; return self::$_contributionStatusOptions;
} }
/** /**
* Retrieves active groups used as mailing lists within the system as options * Retrieves active groups used as mailing lists within the system as options
* for select form elements. * for select form elements.
* *
* @param $double_opt_in * @param $double_opt_in
* *
* @return array * @return array
* *
*/ */
public static function getNewsletterGroups() { public static function getNewsletterGroups() {
if (!isset(static::$_newsletterGroups)) { if (!isset(static::$_newsletterGroups)) {
static::$_newsletterGroups = array(); static::$_newsletterGroups = array();
@ -819,7 +819,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
'option_group_id' => 'group_type', 'option_group_id' => 'group_type',
'name' => CRM_Twingle_Submission::GROUP_TYPE_NEWSLETTER, 'name' => CRM_Twingle_Submission::GROUP_TYPE_NEWSLETTER,
)); ));
if ($group_types['count'] > 0) { if ($group_types['count'] > 0) {
$group_type = reset($group_types['values']); $group_type = reset($group_types['values']);
$query = civicrm_api3('Group', 'get', array( $query = civicrm_api3('Group', 'get', array(
'is_active' => 1, 'is_active' => 1,