X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FEntity.php;h=4bab9fe8935bc4c8ba5df96be52ee59c159aeea2;hb=dc5eecd6cd63c3c906cdd6a0021306c21b8e9f13;hp=03453eb8355351272e5c0963f4b7f02f3677d25f;hpb=357af5d17f9ce6542bc66142bce67190dbcf9dab;p=civicrm-core.git diff --git a/api/v3/Entity.php b/api/v3/Entity.php index 03453eb835..4bab9fe893 100644 --- a/api/v3/Entity.php +++ b/api/v3/Entity.php @@ -3,13 +3,15 @@ /** * Get list of deprecated entities. * + * This is called by the api wrapper when returning the result of api.Entity.get. + * * @param array $entities * * @return array * Array of deprecated api entities */ function _civicrm_api3_entity_deprecation($entities) { - $deprecated = array(); + $deprecated = []; if (!empty($entities['values'])) { foreach ($entities['values'] as $entity) { if (is_string(_civicrm_api3_deprecation_check($entity))) { @@ -58,5 +60,5 @@ function civicrm_api3_entity_delete($params) { function civicrm_api3_entity_getfields($params) { // we return an empty array so it makes it easier to write generic getdefaults / required tests // without putting an exception in for entity - return civicrm_api3_create_success(array()); + return civicrm_api3_create_success([]); }