minor function tidy-ups
[civicrm-core.git] / tests / phpunit / CiviTest / Custom.php
index fe871a49f057b268925a7b55d1672ff0ddf5b9db..699efaa87623db4ccf1ab53ddadaeb1bf7b6eb8a 100644 (file)
@@ -13,9 +13,10 @@ class Custom extends CiviUnitTestCase {
    * @param null $extends
    * @param bool $isMultiple
    *
-   * @return object of created group
+   * @return object
+   *   of created group
    */
-  static function createGroup($group, $extends = NULL, $isMultiple = FALSE) {
+  public static function createGroup($group, $extends = NULL, $isMultiple = FALSE) {
     if (empty($group)) {
       if (isset($extends) &&
         !is_array($extends)
@@ -61,11 +62,12 @@ class Custom extends CiviUnitTestCase {
   /**
    * Helper function to create Custom Field
    * @deprecated use parent object create fn
-   * @param $params
+   * @param array $params
    * @param null $fields
-   * @return object of created field
-*/
-  static function createField($params, $fields = NULL) {
+   * @return object
+   *   of created field
+   */
+  public static function createField($params, $fields = NULL) {
     if (empty($params)) {
       $params = array(
         'custom_group_id' => $fields['groupId'],
@@ -99,9 +101,9 @@ class Custom extends CiviUnitTestCase {
   /**
    * Helper function to delete custom field
    * @deprecated use function on parent class
-   * @param  object of Custom Field to delete
+   * @param object of Custom Field to delete
    */
-  static function deleteField($params) {
+  public static function deleteField($params) {
     require_once 'CRM/Core/BAO/CustomField.php';
     CRM_Core_BAO_CustomField::deleteField($params);
   }
@@ -109,14 +111,13 @@ class Custom extends CiviUnitTestCase {
   /**
    * Helper function to delete custom group
    * @deprecated use function on parent class
-   * @param  object Custom Group to delete
-   * @return boolean true if Group deleted, false otherwise
+   * @param object Custom Group to delete
+   * @return boolean
+   *   true if Group deleted, false otherwise
    */
-  static function deleteGroup($params) {
+  public static function deleteGroup($params) {
     require_once 'CRM/Core/BAO/CustomGroup.php';
     $deleteCustomGroup = CRM_Core_BAO_CustomGroup::deleteGroup($params, TRUE);
     return $deleteCustomGroup;
   }
 }
-
-