X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FEntityTag.php;h=6ed334f78124d9bfb1be27316c4151ed2d8a7fe6;hb=cf8f0fff2d9b29aeeb6b511208054da760b4d544;hp=39a6f8ace4c692b9864ce3959011c7db01d9ef99;hpb=88b7febc2dc37927adeedadf3b99fdd0bd805262;p=civicrm-core.git diff --git a/api/v3/EntityTag.php b/api/v3/EntityTag.php index 39a6f8ace4..6ed334f781 100644 --- a/api/v3/EntityTag.php +++ b/api/v3/EntityTag.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -54,7 +54,7 @@ function civicrm_api3_entity_tag_get($params) { * 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'; } @@ -101,7 +101,7 @@ function _civicrm_api3_entity_tag_delete_spec(&$params) { */ 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) { @@ -135,7 +135,7 @@ function _civicrm_api3_entity_tag_common($params, $op = 'add') { } } - $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) {