Merge pull request #4923 from colemanw/invoice_id
[civicrm-core.git] / api / v3 / EntityTag.php
index 071b8051adba7e18e6de846c74ecbd808898737a..249515640d38a8a1d3696d66dd2bb0c3a2a014e5 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
@@ -53,7 +52,7 @@ function civicrm_api3_entity_tag_get($params) {
   if (empty($params['entity_id'])) {
     return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
   }
-  else{
+  else {
     //do legacy non-standard behaviour
     $values = CRM_Core_BAO_EntityTag::getTag($params['entity_id'], $params['entity_table']);
     $result = array();
@@ -103,6 +102,7 @@ function civicrm_api3_entity_tag_delete($params) {
 
 /**
  * modify metadata
+ * @param array $params
  */
 function _civicrm_api3_entity_tag_delete_spec(&$params) {
   // set as not required as tag_id also acceptable & no either/or std yet
@@ -111,15 +111,15 @@ function _civicrm_api3_entity_tag_delete_spec(&$params) {
 
 /**
  *
- * @param <type> $params
+ * @param array $params
  * @param string $op
  *
- * @return array <type>
+ * @return array
+ *   <type>
  */
 function _civicrm_api3_entity_tag_common($params, $op = 'add') {
 
   $entityIDs   = array();
-  $tagsIDs     = array();
   $entityTable = 'civicrm_contact';
   if (is_array($params)) {
     foreach ($params as $n => $v) {