Minor comment fixes for CRM/Extensions directory.
[civicrm-core.git] / CRM / Extension / Manager / Search.php
index 9c03fb52c8a003f5580a3c91e9a6ad648db714e8..3d3fa13ba64b7dbe64b7292896c8a96751487763 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
 class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
 
-  /**
-   *
-   */
   const CUSTOM_SEARCH_GROUP_NAME = 'custom_search';
 
-  /**
-   *
-   */
   public function __construct() {
     parent::__construct(TRUE);
     $this->groupId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup',
@@ -94,8 +86,8 @@ class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
       CRM_Core_Error::fatal('This custom search is not registered.');
     }
 
-    $cs          = $this->getCustomSearchesById();
-    $id          = $cs[$customSearchesByName[$info->key]];
+    $cs = $this->getCustomSearchesById();
+    $id = $cs[$customSearchesByName[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::del($id);
 
     return TRUE;
@@ -106,8 +98,8 @@ class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
    */
   public function onPreDisable(CRM_Extension_Info $info) {
     $customSearchesByName = $this->getCustomSearchesByName();
-    $cs          = $this->getCustomSearchesById();
-    $id          = $cs[$customSearchesByName[$info->key]];
+    $cs = $this->getCustomSearchesById();
+    $id = $cs[$customSearchesByName[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 0);
   }
 
@@ -116,8 +108,8 @@ class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
    */
   public function onPreEnable(CRM_Extension_Info $info) {
     $customSearchesByName = $this->getCustomSearchesByName();
-    $cs          = $this->getCustomSearchesById();
-    $id          = $cs[$customSearchesByName[$info->key]];
+    $cs = $this->getCustomSearchesById();
+    $id = $cs[$customSearchesByName[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 1);
   }
 
@@ -134,4 +126,5 @@ class CRM_Extension_Manager_Search extends CRM_Extension_Manager_Base {
   protected function getCustomSearchesById() {
     return CRM_Core_OptionGroup::values(self::CUSTOM_SEARCH_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
   }
+
 }