phpcs - Fix error, "CONST keyword must be lowercase; expected const but found CONST"
[civicrm-core.git] / CRM / ACL / BAO / EntityRole.php
index 45b5349e59f41b83c149f76f637bf6fee7c0eb69..bd17506f97d1be6d11e997605424e65e5c7a5c17 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -39,6 +39,9 @@
 class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
   static $_entityTable = NULL;
 
+  /**
+   * @return array|null
+   */
   static function entityTable() {
     if (!self::$_entityTable) {
       self::$_entityTable = array(
@@ -49,6 +52,11 @@ class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
     return self::$_entityTable;
   }
 
+  /**
+   * @param array $params
+   *
+   * @return CRM_ACL_DAO_EntityRole
+   */
   static function create(&$params) {
     $dao = new CRM_ACL_DAO_EntityRole();
     $dao->copyValues($params);
@@ -56,12 +64,16 @@ class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
     return $dao;
   }
 
+  /**
+   * @param array $params
+   * @param $defaults
+   */
   static function retrieve(&$params, &$defaults) {
     CRM_Core_DAO::commonRetrieve('CRM_ACL_DAO_EntityRole', $params, $defaults);
   }
 
   /**
-   * update the is_active flag in the db
+   * Update the is_active flag in the db
    *
    * @param int      $id        id of the database record
    * @param boolean  $is_active value we want to set the is_active field
@@ -74,7 +86,7 @@ class CRM_ACL_BAO_EntityRole extends CRM_ACL_DAO_EntityRole {
   }
 
   /**
-   * Function to delete Entity Role records
+   * Delete Entity Role records
    *
    * @param  int  $entityRoleId ID of the EntityRole record to be deleted.
    *