INFRA-132 - Put space after flow-control (if/switch/for/foreach/while)
[civicrm-core.git] / CRM / Grant / BAO / Grant.php
index b46e86aba24bdbc521df044642366745e1f4fc87..7873796c1804a214343c8592bb4c4d62f81793e9 100644 (file)
@@ -126,11 +126,12 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @return CRM_Grant_BAO_ManageGrant object
-   * @access public
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -146,10 +147,11 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
   /**
    * Add grant
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids    reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
-   * @access public
    * @static
    *
    * @return object
@@ -206,7 +208,7 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
 
     $grantTypes = CRM_Core_PseudoConstant::get('CRM_Grant_DAO_Grant', 'grant_type_id');
     if (empty($params['skipRecentView'])) {
-      if(!isset($grant->contact_id) || !isset($grant->grant_type_id)){
+      if (!isset($grant->contact_id) || !isset($grant->grant_type_id)){
         $grant->find(TRUE);
       }
       $title = CRM_Contact_BAO_Contact::displayName($grant->contact_id) . ' - ' . ts('Grant') . ': ' . $grantTypes[$grant->grant_type_id];
@@ -223,7 +225,7 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
         );
       }
 
-    // add the recently created Grant
+      // add the recently created Grant
       CRM_Utils_Recent::add($title,
         $url,
         $grant->id,
@@ -247,11 +249,12 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
   /**
    * Create the event
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
    * @return object
-   * @access public
    * @static
    *
    */
@@ -310,11 +313,11 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
   /**
    * Delete the Contact
    *
-   * @param int $id contact id
+   * @param int $id
+   *   Contact id.
    *
    * @return bool
    *
-   * @access public
    * @static
    */
   public static function deleteContact($id) {
@@ -327,10 +330,10 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
   /**
    * Delete the grant
    *
-   * @param int $id grant id
+   * @param int $id
+   *   Grant id.
    *
    * @return bool|mixed
-   * @access public
    * @static
    *
    */
@@ -361,7 +364,6 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
    * Combine all the exportable fields from the lower levels object
    *
    * @return array array of exportable Fields
-   * @access public
    * @static
    */
   public static function &exportableFields() {
@@ -399,7 +401,9 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
       );
 
       $fields = CRM_Grant_DAO_Grant::export();
-      $grantNote = array('grant_note' => array('title' => ts('Grant Note'),
+      $grantNote = array(
+      'grant_note' => array(
+      'title' => ts('Grant Note'),
           'name' => 'grant_note',
           'data_type' => CRM_Utils_Type::T_TEXT,
         ));
@@ -418,7 +422,6 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
    * @param int $contactID
    *
    * @return int count of grant records
-   * @access public
    * @static
    */
   public static function getContactGrantCount($contactID) {
@@ -426,4 +429,3 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
     return CRM_Core_DAO::singleValueQuery($query);
   }
 }
-