From d631cdc8c7e8c673b15e8ca029047f0f51fcc03f Mon Sep 17 00:00:00 2001 From: yashodha Date: Mon, 21 Mar 2016 18:26:03 +0530 Subject: [PATCH] some indentation fixes --- CRM/Core/BAO/Mapping.php | 2 +- CRM/Core/Resources/Strings.php | 3 ++- CRM/Core/Smarty/plugins/function.crmAttributes.php | 2 +- CRM/Pledge/Form/Task/Print.php | 2 -- CRM/Utils/Check/Component.php | 1 + CRM/Utils/Check/Component/Case.php | 3 +-- CRM/Utils/PseudoConstant.php | 2 +- header.txt | 2 -- sql/GenerateGroups.php | 3 ++- sql/GenerateMailing.php | 3 ++- 10 files changed, 11 insertions(+), 12 deletions(-) diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index e16029bcda..3c8494b642 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -597,7 +597,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { $relationshipType->id = $id; if ($relationshipType->find(TRUE)) { $direction = "contact_sub_type_$second"; - $target_type = 'contact_type_' . $second; + $target_type = 'contact_type_' . $second; if (isset($relationshipType->$direction)) { $relatedFields = array_merge((array) $relatedMapperFields[$relationshipType->$direction], (array) $relationshipCustomFields); } diff --git a/CRM/Core/Resources/Strings.php b/CRM/Core/Resources/Strings.php index 0e56c82a50..22bd8b915b 100644 --- a/CRM/Core/Resources/Strings.php +++ b/CRM/Core/Resources/Strings.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * Manage translatable strings on behalf of resource files. @@ -107,4 +107,5 @@ class CRM_Core_Resources_Strings { throw new Exception("Cannot extract strings: Unrecognized file type."); } } + } diff --git a/CRM/Core/Smarty/plugins/function.crmAttributes.php b/CRM/Core/Smarty/plugins/function.crmAttributes.php index 5f11894b4f..a1a975756b 100644 --- a/CRM/Core/Smarty/plugins/function.crmAttributes.php +++ b/CRM/Core/Smarty/plugins/function.crmAttributes.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * diff --git a/CRM/Pledge/Form/Task/Print.php b/CRM/Pledge/Form/Task/Print.php index 2c9c463477..e6525b559c 100644 --- a/CRM/Pledge/Form/Task/Print.php +++ b/CRM/Pledge/Form/Task/Print.php @@ -68,9 +68,7 @@ class CRM_Pledge_Form_Task_Print extends CRM_Pledge_Form_Task { * - displaying elements for saving the search. */ public function buildQuickForm() { - // just need to add a javacript to popup the window for printing - $this->addButtons(array( array( 'type' => 'next', diff --git a/CRM/Utils/Check/Component.php b/CRM/Utils/Check/Component.php index 540ff786a2..490f93c748 100644 --- a/CRM/Utils/Check/Component.php +++ b/CRM/Utils/Check/Component.php @@ -56,4 +56,5 @@ abstract class CRM_Utils_Check_Component { } return $messages; } + } \ No newline at end of file diff --git a/CRM/Utils/Check/Component/Case.php b/CRM/Utils/Check/Component/Case.php index 0d8538fb97..3221fa2167 100644 --- a/CRM/Utils/Check/Component/Case.php +++ b/CRM/Utils/Check/Component/Case.php @@ -43,8 +43,7 @@ class CRM_Utils_Check_Component_Case extends CRM_Utils_Check_Component { protected $caseTypeNames; /** - * @param CRM_Case_XMLRepository $xmlRepo - * @param array $caseTypeNames + * Class constructor. */ public function __construct() { $this->caseTypeNames = CRM_Case_PseudoConstant::caseType('name'); diff --git a/CRM/Utils/PseudoConstant.php b/CRM/Utils/PseudoConstant.php index 6944cb35d2..5681fc884c 100644 --- a/CRM/Utils/PseudoConstant.php +++ b/CRM/Utils/PseudoConstant.php @@ -45,7 +45,7 @@ class CRM_Utils_PseudoConstant { ); /** - * @var array + * @var array * ($name => $className) */ private static $constants = NULL; diff --git a/header.txt b/header.txt index 58b99cd5d0..244512a6b7 100644 --- a/header.txt +++ b/header.txt @@ -33,5 +33,3 @@ * $Id$ * */ - - diff --git a/sql/GenerateGroups.php b/sql/GenerateGroups.php index cdc7748d10..1a640e94e3 100644 --- a/sql/GenerateGroups.php +++ b/sql/GenerateGroups.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -66,5 +66,6 @@ for ($i = 1; $i <= $numGroups; $i++) { $group->group_type = $groupType[$t]; $group->save(); + } diff --git a/sql/GenerateMailing.php b/sql/GenerateMailing.php index 23fede09b8..dc05784d68 100644 --- a/sql/GenerateMailing.php +++ b/sql/GenerateMailing.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -99,5 +99,6 @@ function generateRandomDate() { $date = sprintf("%4d%02d%02d", $year, $month, $day) . '000000'; return $date; + } -- 2.25.1