From 8edd3d1aac8fcf56a9b479d50add9519a1135751 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Wed, 30 Sep 2015 23:00:48 +1300 Subject: [PATCH] comment fixes --- CRM/Group/Form/Edit.php | 15 +++------------ CRM/Group/Page/Group.php | 13 ++++++++----- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/CRM/Group/Form/Edit.php b/CRM/Group/Form/Edit.php index 728a4d5282..7def4f7ab9 100644 --- a/CRM/Group/Form/Edit.php +++ b/CRM/Group/Form/Edit.php @@ -29,12 +29,10 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 - * $Id$ - * */ /** - * This class is to build the form for adding Group + * This class is to build the form for adding Group. */ class CRM_Group_Form_Edit extends CRM_Core_Form { @@ -82,8 +80,6 @@ class CRM_Group_Form_Edit extends CRM_Core_Form { /** * Set up variables to build the form. - * - * @return void */ public function preProcess() { $this->_id = $this->get('id'); @@ -158,8 +154,7 @@ class CRM_Group_Form_Edit extends CRM_Core_Form { } /** - * Set default values for the form. LocationType that in edit/view mode - * the default values are retrieved from the database + * Set default values for the form. * * @return array */ @@ -209,8 +204,6 @@ class CRM_Group_Form_Edit extends CRM_Core_Form { /** * Build the form object. - * - * @return void */ public function buildQuickForm() { if ($this->_action == CRM_Core_Action::DELETE) { @@ -309,7 +302,7 @@ class CRM_Group_Form_Edit extends CRM_Core_Form { * @param array $fields * Posted values of the form. * @param array $fileParams - * @param $options + * @param array $options * * @return array * list of errors to be posted back to the form @@ -366,8 +359,6 @@ WHERE title = %1 /** * Process the form when submitted. - * - * @return void */ public function postProcess() { CRM_Utils_System::flushCache('CRM_Core_DAO_Group'); diff --git a/CRM/Group/Page/Group.php b/CRM/Group/Page/Group.php index a05663df1d..d1d825290a 100644 --- a/CRM/Group/Page/Group.php +++ b/CRM/Group/Page/Group.php @@ -29,13 +29,13 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 - * $Id$ - * */ class CRM_Group_Page_Group extends CRM_Core_Page_Basic { protected $_sortByCharacter; /** + * Get BAO name. + * * @return string */ public function getBAOName() { @@ -115,12 +115,12 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic { } /** + * Re-implement browse. + * * We need to do slightly different things for groups vs saved search groups, hence we - * reimplement browse from Page_Basic + * re-implement browse from Page_Basic. * * @param int $action - * - * @return void */ public function browse($action = NULL) { $groupPermission = CRM_Core_Permission::check('edit groups') ? CRM_Core_Permission::EDIT : CRM_Core_Permission::VIEW; @@ -150,6 +150,9 @@ class CRM_Group_Page_Group extends CRM_Core_Page_Basic { $this->search(); } + /** + * Search for groups. + */ public function search() { if ($this->_action & (CRM_Core_Action::ADD | CRM_Core_Action::UPDATE | -- 2.25.1