a few comment fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 2 Feb 2015 03:31:27 +0000 (16:31 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 2 Feb 2015 03:31:27 +0000 (16:31 +1300)
CRM/Campaign/Page/DashBoard.php
CRM/Contact/Form/Search/Custom/FullText/AbstractPartialQuery.php
CRM/Contact/Form/Search/Custom/FullText/Contribution.php
CRM/Core/BAO/ConfigSetting.php
CRM/Report/Interface.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Utils/REST.php
Civi/CiUtil/Command/LsCommand.php

index d6a98a37e0f1a6f5878281bfa53fea4d3b97f5c1..598906e62838dfe88ee4d0fa375e44e4754135ad 100644 (file)
@@ -372,6 +372,11 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
     return $surveysData;
   }
 
+  /**
+   * Browse petitions.
+   *
+   * @return mixed|null
+   */
   public function browsePetition() {
     // ensure valid javascript - this must have a value set
     $this->assign('searchParams', json_encode(NULL));
index e4a69036f87ff89479ed9c39fbb0ed11b7012916..8a979325020c2ed65393b66c4f629e2f6de11c35 100644 (file)
@@ -64,6 +64,11 @@ abstract class CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery {
     return $this->label;
   }
 
+  /**
+   * Get name.
+   *
+   * @return string
+   */
   public function getName() {
     return $this->name;
   }
index d68719760a018b466d2b4c21c9d20ba3dcddf5bb..6604fe2908ef611e157ba748f1498c5ab64953fa 100644 (file)
@@ -112,6 +112,13 @@ WHERE      ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n
     return $tables;
   }
 
+  /**
+   * Move IDs.
+   *
+   * @param string $fromTable
+   * @param string $toTable
+   * @param int $limit
+   */
   public function moveIDs($fromTable, $toTable, $limit) {
     $sql = "
 INSERT INTO {$toTable}
index 30906a7281d9fa4c48d9e383afaecf1a7aa981d7..f6b4d7463881821d32255ce6ed5982337103edbc 100644 (file)
@@ -680,12 +680,19 @@ WHERE  option_group_id = (
     return TRUE;
   }
 
+  /**
+   * Disable specified component.
+   *
+   * @param string $componentName
+   *
+   * @return bool
+   */
   public static function disableComponent($componentName) {
     $config = CRM_Core_Config::singleton();
     if (!in_array($componentName, $config->enableComponents) ||
       !array_key_exists($componentName, CRM_Core_Component::getComponents())
     ) {
-      // post-condition satisified
+      // Post-condition is satisfied.
       return TRUE;
     }
 
@@ -699,6 +706,11 @@ WHERE  option_group_id = (
     return TRUE;
   }
 
+  /**
+   * Set enabled components.
+   *
+   * @param array $enabledComponents
+   */
   public static function setEnabledComponents($enabledComponents) {
     $config = CRM_Core_Config::singleton();
     $components = CRM_Core_Component::getComponents();
index b556430ee1f21098b7e87c6cf110dce453013f42..99b4a43cc737572df305bd8677e4dc1b326ed2c4 100644 (file)
@@ -44,7 +44,6 @@ interface CRM_Report_Interface {
   /**
    * Builds the quickform for this search
    * @param $form
-   * @return
    */
   public function buildForm(&$form);
 
index 853797202fa44a0f1191326d59201d3c63c17199..8b24dc6d673e785b8bef55b92adcb083849c4e91 100644 (file)
@@ -379,6 +379,15 @@ ALTER TABLE civicrm_dashboard
     $this->addTask(ts('Update saved search information'), 'changeSavedSearch');
   }
 
+  /**
+   * Upgrade image URLs.
+   *
+   * @param \CRM_Queue_TaskContext $ctx
+   * @param $startId
+   * @param $endId
+   *
+   * @return bool
+   */
   public static function upgradeImageUrls(CRM_Queue_TaskContext $ctx, $startId, $endId) {
     $dao = self::findContactImageUrls($startId, $endId);
     $failures = array();
@@ -408,6 +417,13 @@ ALTER TABLE civicrm_dashboard
     return TRUE;
   }
 
+  /**
+   * Change saved search.
+   *
+   * @param \CRM_Queue_TaskContext $ctx
+   *
+   * @return bool
+   */
   public static function changeSavedSearch(CRM_Queue_TaskContext $ctx) {
     $membershipStatuses = array_flip(CRM_Member_PseudoConstant::membershipStatus());
 
index 6271bafc91514d46ee9c8ceba6873805d7182a32..9a66a9febb5a85984c71bbc3c9792374cfcd0635 100644 (file)
@@ -455,6 +455,11 @@ class CRM_Utils_REST {
     CRM_Utils_System::civiExit();
   }
 
+  /**
+   * Return smarty-generated API Documentation.
+   *
+   * @return string
+   */
   public static function APIDoc() {
 
     CRM_Utils_System::setTitle("API Parameters");
@@ -583,6 +588,11 @@ class CRM_Utils_REST {
     CRM_Utils_System::civiExit();
   }
 
+  /**
+   * Run ajax request.
+   *
+   * @return array
+   */
   public static function ajax() {
     $requestParams = CRM_Utils_Request::exportValues();
 
index c265d1e13036b6c24182539292eca7b8bcdf36b8..8cdb679b052f91a6be35693ef11247f3a0fe6671 100644 (file)
@@ -1,6 +1,11 @@
 <?php
 namespace Civi\CiUtil\Command;
 
+/**
+ * Class LsCommand
+ *
+ * @package Civi\CiUtil\Command
+ */
 class LsCommand {
   public static function main($argv) {
     $paths = $argv;