INFRA-132 - tests/ - PHPStorm cleanup
[civicrm-core.git] / tests / phpunit / CiviTest / PCP.php
index 1332685251abe30886b8bc0e6e2013694075feee..93558d914f5ee2bd5b8640793a72904faea2aa3e 100644 (file)
@@ -1,14 +1,19 @@
 <?php
+
+/**
+ * Class PCPBlock
+ */
 class PCPBlock extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to create a PCP Block for Contribution Page
    *
-   * @param  int $contributionPageId - id of the Contribution Page
+   * @param int $contributionPageId
+   *   Id of the Contribution Page.
    * to be deleted
-   * @return array of created pcp block
-   *
+   * @return array
+   *   of created pcp block
    */
-  function create($contributionPageId) {
+  public function create($contributionPageId) {
     $profileParams = array(
       'group_type' => 'Individual,Contact',
       'title' => 'Test Supprorter Profile',
@@ -86,18 +91,17 @@ class PCPBlock extends PHPUnit_Framework_Testcase {
   /**
    * Helper function to delete a PCP related stuff viz. Profile, PCP Block Entry
    *
-   * @param  array key value pair
+   * @param array key value pair
    * pcpBlockId - id of the PCP Block Id, profileID - id of Supporter Profile
    * to be deleted
-   * @return boolean true if success, false otherwise
-   *
+   * @return boolean
+   *   true if success, false otherwise
    */
-  function delete($params) {
+  public function delete($params) {
 
     $delete_params = array('id' => $params['profileId']);
     $resulProfile = civicrm_api('uf_group', 'delete', $delete_params);
 
-
     require_once 'CRM/Contribute/DAO/PCPBlock.php';
     $dao = new CRM_Contribute_DAO_PCPBlock();
     $dao->id = $params['blockId'];