* Create Activity.
*
* @param array $params
+ *
* @return array|int
*/
- public function activityCreate($params = array()) {
- $params = array_merge(array(
+ public function activityCreate($params = []) {
+ $params = array_merge([
'subject' => 'Discussion on warm beer',
'activity_date_time' => date('Ymd'),
- 'duration_hours' => 30,
- 'duration_minutes' => 20,
+ 'duration' => 90,
'location' => 'Baker Street',
'details' => 'Lets schedule a meeting',
'status_id' => 1,