clean up
improve method documentation and more
This commit is contained in:
parent
9df3ff4153
commit
88474c10ac
10 changed files with 305 additions and 381 deletions
|
@ -152,8 +152,9 @@ function civicrm_api3_twingle_project_Get(array $params): array {
|
|||
}
|
||||
}
|
||||
try {
|
||||
TwingleProject::translateKeys($returnValues[$project['id']], TwingleProject::OUT);
|
||||
TwingleProject::formatValues($returnValues[$project['id']], TwingleProject::OUT);
|
||||
$tmp_project = new TwingleProject([]);
|
||||
$tmp_project->translateKeys($returnValues[$project['id']], TwingleProject::OUT);
|
||||
$tmp_project->formatValues($returnValues[$project['id']], TwingleProject::OUT);
|
||||
}
|
||||
catch (Exception $e) {
|
||||
throw new API_Exception($e->getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue