INFRA-132 - Put "else" and "catch" on new line
[civicrm-core.git] / tests / phpunit / CiviTest / Custom.php
index cd5da954f2b81227cc5e68ae3bd1fcb2c5b926d6..73a70de32c11cf9ca2efe9d66bef904fbfcde32d 100644 (file)
@@ -1,12 +1,21 @@
 <?php
+
+/**
+ * Class Custom
+ */
 class Custom extends CiviUnitTestCase {
   /**
    * Helper function to create Custom Group
    *
    * @deprecated - use functions on test case parent class
+   *
+   * @param $group
+   * @param null $extends
+   * @param bool $isMultiple
+   *
    * @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)
@@ -52,9 +61,11 @@ class Custom extends CiviUnitTestCase {
   /**
    * Helper function to create Custom Field
    * @deprecated use parent object create fn
+   * @param array $params
+   * @param null $fields
    * @return object of created field
    */
-  static function createField($params, $fields = NULL) {
+  public static function createField($params, $fields = NULL) {
     if (empty($params)) {
       $params = array(
         'custom_group_id' => $fields['groupId'],
@@ -88,9 +99,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);
   }
@@ -98,14 +109,12 @@ class Custom extends CiviUnitTestCase {
   /**
    * Helper function to delete custom group
    * @deprecated use function on parent class
-   * @param  object Custom Group to delete
+   * @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;
   }
 }
-
-