Merge pull request #4931 from davecivicrm/INFRA-132
[civicrm-core.git] / CRM / Contribute / Page / ManagePremiums.php
index 9e3a6832b18cc376615055a02640a6e02fa77644..17cf09472d67ec7cd1b7e6f4783717ce981bb698 100644 (file)
@@ -44,14 +44,14 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
    * The action links that we need to display for the browse screen
    *
    * @var array
-   * @static
    */
   static $_links = NULL;
 
   /**
    * Get BAO Name
    *
-   * @return string Classname of BAO.
+   * @return string
+   *   Classname of BAO.
    */
   public function getBAOName() {
     return 'CRM_Contribute_BAO_ManagePremiums';
@@ -60,7 +60,8 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
   /**
    * Get action Links
    *
-   * @return array (reference) of action links
+   * @return array
+   *   (reference) of action links
    */
   public function &links() {
     if (!(self::$_links)) {
@@ -106,7 +107,6 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
    * Finally it calls the parent's run method.
    *
    * @return void
-   *
    */
   public function run() {
 
@@ -138,7 +138,6 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
    *
    *
    * @return void
-   * @static
    */
   public function browse() {
     // get all custom groups sorted by weight
@@ -170,9 +169,9 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
         $dao->id
       );
       //Financial Type
-      if (!empty( $dao->financial_type_id )  ){
+      if (!empty($dao->financial_type_id)) {
         require_once 'CRM/Core/DAO.php';
-        $premiums[$dao->id]['financial_type_id'] = CRM_Core_DAO::getFieldValue( 'CRM_Financial_DAO_FinancialType', $dao->financial_type_id, 'name' );
+        $premiums[$dao->id]['financial_type_id'] = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', $dao->financial_type_id, 'name');
       }
     }
     $this->assign('rows', $premiums);
@@ -181,7 +180,8 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
   /**
    * Get name of edit form
    *
-   * @return string Classname of edit form.
+   * @return string
+   *   Classname of edit form.
    */
   public function editForm() {
     return 'CRM_Contribute_Form_ManagePremiums';
@@ -190,7 +190,8 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
   /**
    * Get edit form name
    *
-   * @return string name of this page.
+   * @return string
+   *   name of this page.
    */
   public function editName() {
     return 'Manage Premiums';
@@ -201,7 +202,8 @@ class CRM_Contribute_Page_ManagePremiums extends CRM_Core_Page_Basic {
    *
    * @param null $mode
    *
-   * @return string user context.
+   * @return string
+   *   user context.
    */
   public function userContext($mode = NULL) {
     return 'civicrm/admin/contribute/managePremiums';