Skip to content

Commit

Permalink
Array syntax reformat on activity files
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Apr 5, 2019
1 parent c2be63a commit 464bd0b
Show file tree
Hide file tree
Showing 9 changed files with 441 additions and 351 deletions.
4 changes: 2 additions & 2 deletions CRM/Activity/ActionMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CRM_Activity_ActionMapping extends \Civi\ActionSchedule\Mapping {
* @param \Civi\ActionSchedule\Event\MappingRegisterEvent $registrations
*/
public static function onRegisterActionMappings(\Civi\ActionSchedule\Event\MappingRegisterEvent $registrations) {
$registrations->register(CRM_Activity_ActionMapping::create(array(
$registrations->register(CRM_Activity_ActionMapping::create([
'id' => CRM_Activity_ActionMapping::ACTIVITY_MAPPING_ID,
'entity' => 'civicrm_activity',
'entity_label' => ts('Activity'),
Expand All @@ -65,7 +65,7 @@ public static function onRegisterActionMappings(\Civi\ActionSchedule\Event\Mappi
'entity_status' => 'activity_status',
'entity_status_label' => ts('Activity Status'),
'entity_date_start' => 'activity_date_time',
)));
]));
}

/**
Expand Down
Loading

0 comments on commit 464bd0b

Please sign in to comment.