* @throws \Exception
*/
public function run() {
- CRM_Core_Error::fatal('This is not a real page!');
+ throw new CRM_Core_Exception('This is not a real page!');
}
/**
$sectionName = 'cg_' . $customGroup->id;
$section = [
'title' => ts('%1: %2', [1 => $title, 2 => $customGroup->title]),
- 'is_addable' => $customGroup->is_reserved ? FALSE : TRUE,
+ 'is_addable' => !$customGroup->is_reserved,
'custom_group_id' => $customGroup->id,
'extends_entity_column_id' => $customGroup->extends_entity_column_id,
'extends_entity_column_value' => CRM_Utils_Array::explodePadded($customGroup->extends_entity_column_value),