From d76e5b23971e0fa3b4f5dafcb7dbf2d822edd7a0 Mon Sep 17 00:00:00 2001 From: eileenmcnaugton Date: Wed, 2 Sep 2015 15:22:52 +1200 Subject: [PATCH] Comment fixes --- CRM/Case/BAO/Query.php | 33 ++++++++++++--------------------- CRM/Case/Form/Search.php | 4 +--- 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/CRM/Case/BAO/Query.php b/CRM/Case/BAO/Query.php index 29136dac06..5b0938c0ea 100644 --- a/CRM/Case/BAO/Query.php +++ b/CRM/Case/BAO/Query.php @@ -29,18 +29,17 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 - * $Id$ - * */ class CRM_Case_BAO_Query { /** + * Get fields. + * * @param bool $excludeActivityFields * * @return array */ public static function &getFields($excludeActivityFields = FALSE) { - $fields = array(); $fields = CRM_Case_BAO_Case::exportableFields(); // add activity related fields @@ -54,9 +53,7 @@ class CRM_Case_BAO_Query { /** * Build select for Case. * - * @param $query - * - * @return void + * @param CRM_Contact_BAO_Query $query */ public static function select(&$query) { if (($query->_mode & CRM_Contact_BAO_Query::MODE_CASE) || !empty($query->_returnProperties['case_id'])) { @@ -218,12 +215,9 @@ class CRM_Case_BAO_Query { } /** - * Given a list of conditions in query generate the required - * where clause + * Given a list of conditions in query generate the required where clause. * - * @param $query - * - * @return void + * @param CRM_Contact_BAO_Query $query */ public static function where(&$query) { foreach ($query->_params as $id => $values) { @@ -244,10 +238,8 @@ class CRM_Case_BAO_Query { /** * Where clause for a single field. * - * @param $values - * @param $query - * - * @return void + * @param array $values + * @param CRM_Contact_BAO_Query $query */ public static function whereClauseSingle(&$values, &$query) { list($name, $op, $value, $grouping, $wildcard) = $values; @@ -490,9 +482,11 @@ class CRM_Case_BAO_Query { } /** + * Build from clause. + * * @param string $name - * @param $mode - * @param $side + * @param string $mode + * @param string $side * * @return string */ @@ -656,12 +650,9 @@ case_relation_type.id = case_relationship.relationship_type_id )"; } /** - * Add all the elements shared between case search and advanaced search. - * + * Add all the elements shared between case search and advanced search. * * @param CRM_Core_Form $form - * - * @return void */ public static function buildSearchForm(&$form) { $config = CRM_Core_Config::singleton(); diff --git a/CRM/Case/Form/Search.php b/CRM/Case/Form/Search.php index de684a1f5e..a43f10585f 100644 --- a/CRM/Case/Form/Search.php +++ b/CRM/Case/Form/Search.php @@ -29,12 +29,10 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2015 - * $Id$ - * */ /** - * This file is for Case search + * This file is for Case search. */ class CRM_Case_Form_Search extends CRM_Core_Form_Search { -- 2.25.1