+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2017 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* Array of parameters determined by getfields.
*/
function _civicrm_api3_entity_tag_get_spec(&$params) {
- $params['entity_id']['api.aliases'] = array('contact_id');
+ $params['entity_id']['api.aliases'] = ['contact_id'];
$params['entity_table']['api.default'] = 'civicrm_contact';
}
*/
function _civicrm_api3_entity_tag_common($params, $op = 'add') {
- $entityIDs = $tagIDs = array();
+ $entityIDs = $tagIDs = [];
$entityTable = 'civicrm_contact';
if (is_array($params)) {
foreach ($params as $n => $v) {
}
}
- $values = array('is_error' => 0);
+ $values = ['is_error' => 0];
if ($op == 'add') {
$values['total_count'] = $values['added'] = $values['not_added'] = 0;
foreach ($tagIDs as $tagID) {