code cleanup

This commit is contained in:
Marc Michalsky forumZFD 2021-02-10 18:08:48 +01:00
parent a99e25c40a
commit 34bf53b51b
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
4 changed files with 10 additions and 6 deletions

View file

@ -59,7 +59,7 @@ function _civicrm_api3_twingle_project_Create_spec(array &$spec) {
}
/**
* TwingleProject.Create API
* # TwingleProject.Create API
*
* @param array $params
*
@ -85,6 +85,7 @@ function civicrm_api3_twingle_project_Create(array $params): array {
$result['values']['id'] = $result['values']['project_id'];
unset($result['values']['project_id']);
$project = new TwingleProject($result['values'], $params['id']);
unset($params['id']);
$project->update($params);
$project->setEmbedData($params);
}