INFRA-132 - Docblock formatting fixes
authorColeman Watts <coleman@civicrm.org>
Sun, 11 Jan 2015 18:25:12 +0000 (13:25 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 11 Jan 2015 22:48:09 +0000 (17:48 -0500)
230 files changed:
CRM/ACL/BAO/ACL.php
CRM/Activity/BAO/Activity.php
CRM/Badge/BAO/Layout.php
CRM/Campaign/BAO/Campaign.php
CRM/Campaign/BAO/Survey.php
CRM/Case/BAO/Case.php
CRM/Case/BAO/CaseType.php
CRM/Case/PseudoConstant.php
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/Contact/Location.php
CRM/Contact/BAO/ContactType.php
CRM/Contact/BAO/Group.php
CRM/Contact/BAO/GroupContact.php
CRM/Contact/BAO/Individual.php
CRM/Contact/BAO/Query/Hook.php
CRM/Contact/BAO/Relationship.php
CRM/Contact/BAO/RelationshipType.php
CRM/Contact/Form/Task/LabelCommon.php
CRM/Contact/Import/Parser/Contact.php
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/BAO/Contribution/Utils.php
CRM/Contribute/BAO/ContributionPage.php
CRM/Contribute/BAO/ContributionRecur.php
CRM/Contribute/BAO/ContributionSoft.php
CRM/Contribute/BAO/ManagePremiums.php
CRM/Contribute/BAO/Premium.php
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Contribute/Form/SoftCredit.php
CRM/Core/BAO/ActionSchedule.php
CRM/Core/BAO/Address.php
CRM/Core/BAO/Block.php
CRM/Core/BAO/ConfigSetting.php
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/BAO/CustomOption.php
CRM/Core/BAO/Dashboard.php
CRM/Core/BAO/Domain.php
CRM/Core/BAO/Email.php
CRM/Core/BAO/EntityTag.php
CRM/Core/BAO/Extension.php
CRM/Core/BAO/FinancialTrxn.php
CRM/Core/BAO/IM.php
CRM/Core/BAO/Job.php
CRM/Core/BAO/LabelFormat.php
CRM/Core/BAO/LocationType.php
CRM/Core/BAO/MailSettings.php
CRM/Core/BAO/MessageTemplate.php
CRM/Core/BAO/Navigation.php
CRM/Core/BAO/OptionGroup.php
CRM/Core/BAO/OptionValue.php
CRM/Core/BAO/PaperSize.php
CRM/Core/BAO/PdfFormat.php
CRM/Core/BAO/Persistent.php
CRM/Core/BAO/Phone.php
CRM/Core/BAO/PreferencesDate.php
CRM/Core/BAO/UFField.php
CRM/Core/BAO/UFGroup.php
CRM/Core/BAO/UFJoin.php
CRM/Core/BAO/WordReplacement.php
CRM/Core/CodeGen/Main.php
CRM/Core/CodeGen/Util/File.php
CRM/Core/Controller.php
CRM/Core/DAO.php
CRM/Core/DAO/permissions.php
CRM/Core/Exception.php
CRM/Core/FileSearchInterface.php
CRM/Core/Form.php
CRM/Core/Form/RecurringEntity.php
CRM/Core/I18n.php
CRM/Core/OptionGroup.php
CRM/Core/OptionValue.php
CRM/Core/Payment.php
CRM/Core/Payment/AuthorizeNet.php
CRM/Core/Payment/BaseIPN.php
CRM/Core/Payment/PayJunction.php
CRM/Core/Payment/PayPalProIPN.php
CRM/Core/Payment/Realex.php
CRM/Core/Permission.php
CRM/Core/Permission/Base.php
CRM/Core/Permission/Drupal6.php
CRM/Core/Reference/Dynamic.php
CRM/Core/Reference/Interface.php
CRM/Core/Selector/Controller.php
CRM/Core/Session.php
CRM/Core/Smarty/plugins/block.crmRegion.php
CRM/Core/Smarty/plugins/block.crmScope.php
CRM/Core/Smarty/plugins/block.edit.php
CRM/Core/Smarty/plugins/block.htxt.php
CRM/Core/Smarty/plugins/block.localize.php
CRM/Core/Smarty/plugins/block.serialize.php
CRM/Core/Smarty/plugins/block.ts.php
CRM/Core/Smarty/plugins/function.crmCrudLink.php
CRM/Core/Smarty/plugins/function.crmKey.php
CRM/Core/Smarty/plugins/function.crmNavigationMenu.php
CRM/Core/Smarty/plugins/function.crmResURL.php
CRM/Core/Smarty/plugins/function.crmScript.php
CRM/Core/Smarty/plugins/function.crmSigner.php
CRM/Core/Smarty/plugins/function.crmStyle.php
CRM/Core/Smarty/plugins/function.docURL.php
CRM/Core/Smarty/plugins/function.help.php
CRM/Core/Smarty/plugins/function.isValueChange.php
CRM/Core/Smarty/plugins/function.sectionTotal.php
CRM/Core/Smarty/plugins/function.simpleActivityContacts.php
CRM/Core/Smarty/resources/String.php
CRM/Core/StateMachine.php
CRM/Custom/Form/Group.php
CRM/Custom/Import/Parser/Api.php
CRM/Dedupe/Merger.php
CRM/Event/BAO/Event.php
CRM/Event/BAO/Participant.php
CRM/Event/Form/ManageEvent/EventInfo.php
CRM/Event/Form/ManageEvent/Repeat.php
CRM/Event/Form/Task/AddToGroup.php
CRM/Event/PseudoConstant.php
CRM/Financial/BAO/FinancialItem.php
CRM/Financial/BAO/FinancialType.php
CRM/Financial/BAO/FinancialTypeAccount.php
CRM/Financial/BAO/PaymentProcessor.php
CRM/Financial/BAO/PaymentProcessorType.php
CRM/Financial/Form/FinancialAccount.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Friend/BAO/Friend.php
CRM/Grant/BAO/Grant.php
CRM/Import/Parser.php
CRM/Mailing/BAO/Component.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/BAO/MailingAB.php
CRM/Mailing/Event/BAO/Queue.php
CRM/Mailing/Event/BAO/Subscribe.php
CRM/Member/BAO/Membership.php
CRM/Member/BAO/MembershipStatus.php
CRM/Member/BAO/MembershipType.php
CRM/Pledge/BAO/Pledge.php
CRM/Pledge/BAO/PledgeBlock.php
CRM/Pledge/BAO/PledgePayment.php
CRM/Price/BAO/LineItem.php
CRM/Price/BAO/PriceField.php
CRM/Price/BAO/PriceFieldValue.php
CRM/Price/BAO/PriceSet.php
CRM/Report/BAO/Hook.php
CRM/Report/BAO/ReportInstance.php
CRM/Report/Form.php
CRM/Report/Form/Extended.php
CRM/Upgrade/Incremental/php/FourFour.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Field.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/FieldValue.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/LineItem.php
CRM/Upgrade/Snapshot/V4p2/Price/BAO/Set.php
CRM/Utils/Check.php
CRM/Utils/Check/Security.php
CRM/Utils/Date.php
CRM/Utils/Hook.php
CRM/Utils/Hook/UnitTests.php
CRM/Utils/JS.php
CRM/Utils/PseudoConstant.php
CRM/Utils/System.php
CRM/Utils/System/DrupalBase.php
CRM/Utils/Token.php
CRM/Utils/Weight.php
Civi/CiUtil/PHPUnitScanner.php
Civi/Install/Requirements.php
api/v3/Acl.php
api/v3/AclRole.php
api/v3/ActivityContact.php
api/v3/Address.php
api/v3/Attachment.php
api/v3/Batch.php
api/v3/Case.php
api/v3/Contact.php
api/v3/Contribution.php
api/v3/CustomField.php
api/v3/CustomGroup.php
api/v3/CustomSearch.php
api/v3/CustomValue.php
api/v3/Entity.php
api/v3/Event.php
api/v3/Extension.php
api/v3/File.php
api/v3/FinancialAccount.php
api/v3/FinancialType.php
api/v3/Generic.php
api/v3/Generic/Update.php
api/v3/GroupContact.php
api/v3/GroupOrganization.php
api/v3/Im.php
api/v3/LineItem.php
api/v3/LocBlock.php
api/v3/Mailing.php
api/v3/MailingAB.php
api/v3/MailingComponent.php
api/v3/MailingJob.php
api/v3/MailingRecipients.php
api/v3/Membership.php
api/v3/MembershipStatus.php
api/v3/MembershipType.php
api/v3/Note.php
api/v3/OptionValue.php
api/v3/Participant.php
api/v3/ParticipantPayment.php
api/v3/PaymentProcessor.php
api/v3/Phone.php
api/v3/Premium.php
api/v3/PriceField.php
api/v3/PriceFieldValue.php
api/v3/PriceSet.php
api/v3/PrintLabel.php
api/v3/Product.php
api/v3/Profile.php
api/v3/ReportInstance.php
api/v3/ReportTemplate.php
api/v3/SmsProvider.php
api/v3/Tag.php
api/v3/UFField.php
api/v3/UFGroup.php
api/v3/Website.php
api/v3/WordReplacement.php
api/v3/utils.php
tests/extensions/test.extension.manager.searchtest/main.php
tests/phpunit/CRM/Core/BAO/ActionScheduleTest.php
tests/phpunit/CRM/Core/Permission/GenericTest.php
tests/phpunit/Civi/API/Subscriber/DynamicFKAuthorizationTest.php
tests/phpunit/CiviTest/AuthorizeNet.php
tests/phpunit/CiviTest/CiviSeleniumTestCase.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/CiviTest/ContributionPage.php
tests/phpunit/CiviTest/PCP.php
tests/phpunit/CiviTest/PaypalPro.php
tests/phpunit/WebTest/Contribute/UpdatePendingContributionTest.php
tests/phpunit/api/v3/ContributionPageTest.php

index aafedb4b31e87b386214f49e79384b1b1fe88718..284b2bae30a09e332b19232a070ccfb288da1274 100644 (file)
@@ -330,7 +330,7 @@ class CRM_ACL_BAO_ACL extends CRM_ACL_DAO_ACL {
    *
    * @return string|null
    *   WHERE-style clause to filter results,
-   * or null if $table or $id is null
+   *   or null if $table or $id is null
    * @static
    */
   public static function getClause($table, $id, &$tables) {
index 016e0ebaf6f404ad15ffc89dfc0478aa1a2d50e4..b5a435d4ada2315cd72e9b440efd614c66086cb0 100644 (file)
@@ -78,7 +78,7 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Activity_DAO_Activity object
+   * @return CRM_Activity_DAO_Activity
    */
   public static function retrieve(&$params, &$defaults) {
     $activity = new CRM_Activity_DAO_Activity();
@@ -907,7 +907,7 @@ ORDER BY    fixed_sort_order
    * component related activities w/ core activity retrieve process.
    *
    * @return array
-   *   of component id and name.
+   *   Array of component id and name.
    * @static
    **/
   public static function activityComponents() {
index 9d393b524e60f52375f175679747cbb2fd2e99e8..7da955a1c975f143c57f4e2885385ca52cd140b9 100644 (file)
@@ -51,7 +51,8 @@ class CRM_Badge_BAO_Layout extends CRM_Core_DAO_PrintLabel {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_PrintLabel object on success, null otherwise
+   * @return CRM_Core_DAO_PrintLabel|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 72d6c717d3391ad74b412280e73f0b6fee006ec7..4513a35e115756388bca7b81e91405e869217ced 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Campaign_BAO_Campaign extends CRM_Campaign_DAO_Campaign {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Campaign_DAO_Campaign object
+   * @return CRM_Campaign_DAO_Campaign
    * @static
    */
   public static function create(&$params) {
index 888a96cc278e0969a0afc1926c2a51c7dbd5e2a5..6e22770067f428fbb1081441218e14940f982214 100644 (file)
@@ -79,7 +79,7 @@ class CRM_Campaign_BAO_Survey extends CRM_Campaign_DAO_Survey {
    *
    * @param array $params
    *
-   * @return CRM_Survey_DAO_Survey object
+   * @return CRM_Survey_DAO_Survey
    * @static
    */
   public static function create(&$params) {
index 0631dc5bbb9acff3d962712bcee49ebe4ff04e46..8ced021457af6ca94d5237c04c59902f9a2c3daa 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Case_BAO_Case extends CRM_Case_DAO_Case {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Case_BAO_Case object
+   * @return CRM_Case_BAO_Case
    * @static
    */
   public static function add(&$params) {
@@ -115,7 +115,7 @@ class CRM_Case_BAO_Case extends CRM_Case_DAO_Case {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Case_BAO_Case object
+   * @return CRM_Case_BAO_Case
    * @static
    */
   public static function &create(&$params) {
@@ -259,7 +259,7 @@ class CRM_Case_BAO_Case extends CRM_Case_DAO_Case {
    * @param array $ids
    *   (reference) the array that holds all the db ids.
    *
-   * @return CRM_Case_BAO_Case object
+   * @return CRM_Case_BAO_Case
    * @static
    */
   public static function retrieve(&$params, &$defaults, &$ids) {
@@ -1037,7 +1037,7 @@ SELECT case_status.label AS case_status, status_id, civicrm_case_type.title AS c
    * @param null $type
    *
    * @return array
-   *   of case activities
+   *   Array of case activities
    *
    * @static
    */
index ed332e294d8d0cf2e8c0dcfe857a6b0e6214994d..e9466242372ae20e1948908cc5ff9e10f1d61cdb 100644 (file)
@@ -59,7 +59,7 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType {
    *
    * @throws CRM_Core_Exception
    *
-   * @return CRM_Case_BAO_CaseType object
+   * @return CRM_Case_BAO_CaseType
    * @static
    */
   public static function add(&$params) {
@@ -274,7 +274,7 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Case_BAO_CaseType object
+   * @return CRM_Case_BAO_CaseType
    * @static
    */
   public static function &create(&$params) {
@@ -318,7 +318,7 @@ class CRM_Case_BAO_CaseType extends CRM_Case_DAO_CaseType {
    *   (reference ) an assoc array to hold the name / value pairs.
    *                        in a hierarchical manner
    *
-   * @return CRM_Case_BAO_CaseType object
+   * @return CRM_Case_BAO_CaseType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 7d44e4f393762349d4fc6cccec3e8482b1673c86..871593773a2b4d0f08647b50a66b004e617baf90 100644 (file)
@@ -191,13 +191,13 @@ class CRM_Case_PseudoConstant extends CRM_Core_PseudoConstant {
   }
 
   /**
-   * Get all Activty types for the CiviCase component
+   * Get all Activity types for the CiviCase component
    *
    * The static array activityType is returned
    *
    * @param bool $indexName
    *   True return activity name in array.
-   * key else activity id as array key.
+   *   key else activity id as array key.
    *
    * @param bool $all
    *
index 6553d5477989068ec59df23524f13c75feacacdf..998f7cbd46e4147f5ccee138dc218660390c7cf9 100644 (file)
@@ -110,7 +110,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Contact_BAO_Contact object
+   * @return CRM_Contact_BAO_Contact
    * @static
    */
   public static function add(&$params) {
@@ -276,7 +276,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact {
    * @param bool $skipDelete
    *
    * @throws Exception
-   * @return CRM_Contact_BAO_Contact object
+   * @return CRM_Contact_BAO_Contact
    * @static
    */
   public static function &create(&$params, $fixAddress = TRUE, $invokeHooks = TRUE, $skipDelete = FALSE) {
@@ -517,14 +517,12 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
   /**
    * @param array $crudLinkSpec
    *   With keys:.
-   *  - action: int, CRM_Core_Action::UPDATE or CRM_Core_Action::VIEW [default: VIEW]
-   *  - entity_table: string, eg "civicrm_contact"
-   *  - entity_id: int
+   *   - action: int, CRM_Core_Action::UPDATE or CRM_Core_Action::VIEW [default: VIEW]
+   *   - entity_table: string, eg "civicrm_contact"
+   *   - entity_id: int
    * @return array|NULL
-   *   NULL if unavailable, or an array. array has keys:
-   *  - path: string
-   *  - query: string
-   *  - title: string
+   *   NULL if unavailable, or
+   *   [path: string, query: string, title: string]
    * @see CRM_Utils_System::createDefaultCrudLink
    */
   public function createDefaultCrudLink($crudLinkSpec) {
@@ -696,7 +694,7 @@ WHERE     civicrm_contact.id = " . CRM_Utils_Type::escape($id, 'Integer');
    * @param bool $microformat
    *   For location in microformat.
    *
-   * @return CRM_Contact_BAO_Contact object
+   * @return CRM_Contact_BAO_Contact
    * @static
    */
   public static function &retrieve(&$params, &$defaults, $microformat = FALSE) {
@@ -1788,7 +1786,7 @@ WHERE  civicrm_contact.id = %1 ";
    *   Id of the contact.
    *
    * @return array
-   *   of display_name, email if found, do_not_email or (null,null,null)
+   *   Array of display_name, email if found, do_not_email or (null,null,null)
    * @static
    */
   public static function getContactDetails($id) {
@@ -2845,7 +2843,7 @@ AND       civicrm_openid.is_primary = 1";
    * @param int $contactId
    *
    * @return array
-   *   of context menu for logged in user.
+   *   Array of context menu for logged in user.
    * @static
    */
   public static function contextMenu($contactId = NULL) {
@@ -3314,9 +3312,9 @@ LEFT JOIN civicrm_address add2 ON ( add1.master_id = add2.id )
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
index e0fee6624bc963af40ab50028b139ce02994bea7..a585cc856c84c4291f36b5d91b2a3f5b4bd37b15 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Contact_BAO_Contact_Location {
    * @param int $locationTypeID
    *
    * @return array
-   *   of display_name, email, location type and location id if found, or (null,null,null, null)
+   *   Array of display_name, email, location type and location id if found, or (null,null,null, null)
    * @static
    */
   public static function getEmailDetails($id, $isPrimary = TRUE, $locationTypeID = NULL) {
index 479fe7cca52f69e3922830de09854390eac8ecfe..6ebda66cf3fa222e26a4673a31cb2d4bc5dce66d 100644 (file)
@@ -42,7 +42,8 @@ class CRM_Contact_BAO_ContactType extends CRM_Contact_DAO_ContactType {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contact_BAO_ContactType object on success, null otherwise
+   * @return CRM_Contact_BAO_ContactType|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -72,7 +73,7 @@ class CRM_Contact_BAO_ContactType extends CRM_Contact_DAO_ContactType {
    * @param bool $all
    *
    * @return array
-   *   of basic contact types information.
+   *   Array of basic contact types information.
    * @static
    */
   public static function &basicTypeInfo($all = FALSE) {
@@ -119,7 +120,7 @@ WHERE  parent_id IS NULL
    * @param bool $all
    *
    * @return array
-   *   of basic contact types
+   *   Array of basic contact types
    * @static
    */
   public static function basicTypes($all = FALSE) {
@@ -153,7 +154,7 @@ WHERE  parent_id IS NULL
    * @param bool $reset
    *
    * @return array
-   *   of sub type information
+   *   Array of sub type information
    * @static
    */
   public static function &subTypeInfo($contactType = NULL, $all = FALSE, $ignoreCache = FALSE, $reset = FALSE) {
@@ -223,8 +224,8 @@ WHERE  subtype.name IS NOT NULL AND subtype.parent_id IS NOT NULL {$ctWHERE}
    * @param bool $ignoreCache
    *
    * @return array
-   *   of all subtypes OR list of subtypes associated to
-   * a given basic contact type
+   *   all subtypes OR list of subtypes associated to
+   *   a given basic contact type
    * @static
    */
   public static function subTypes($contactType = NULL, $all = FALSE, $columnName = 'name', $ignoreCache = FALSE) {
@@ -266,7 +267,7 @@ WHERE  subtype.name IS NOT NULL AND subtype.parent_id IS NOT NULL {$ctWHERE}
    * @param bool $all
    *
    * @return array
-   *   of basic types + all subtypes.
+   *   Array of basic types + all subtypes.
    * @static
    */
   public static function contactTypes($all = FALSE) {
@@ -281,7 +282,7 @@ WHERE  subtype.name IS NOT NULL AND subtype.parent_id IS NOT NULL {$ctWHERE}
    * @param bool $reset
    *
    * @return array
-   *   of basic types + all subtypes.
+   *   Array of basic types + all subtypes.
    * @static
    */
   public static function contactTypeInfo($all = FALSE, $reset = FALSE) {
@@ -342,7 +343,7 @@ WHERE  type.name IS NOT NULL
    * @param null $delimiter
    *
    * @return array
-   *   of basictypes with name as 'built-in name' and 'label' as value
+   *   Array of basictypes with name as 'built-in name' and 'label' as value
    * @static
    */
   public static function contactTypePairs($all = FALSE, $typeName = NULL, $delimiter = NULL) {
@@ -514,7 +515,7 @@ WHERE  subtype.name IN ('" . implode("','", $subType) . "' )";
    * @param bool $ignoreCache
    *
    * @return array
-   *   of suppressed subTypes.
+   *   Array of suppressed subTypes.
    * @static
    */
   public static function suppressSubTypes(&$subTypes, $ignoreCache = FALSE) {
index 0b09fd747b926836aeb4ffdff663a6db732968c8..bc008a1d09d568332a0974501c80a93d5edefedb 100644 (file)
@@ -53,7 +53,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contact_BAO_Group object
+   * @return CRM_Contact_BAO_Group
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -236,7 +236,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    * @param NULL $rowCount
    *
    * @return array
-   *   of group objects.
+   *   Array of group objects.
    *
    *
    * @todo other BAO functions that use returnProperties (e.g. Query Objects) receive the array flipped & filled with 1s and
@@ -565,7 +565,7 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    * @param bool $isActive
    *   Value we want to set the is_active field.
    *
-   * @return CRM_Core_DAO
+   * @return CRM_Core_DAO|null
    *   DAO object on sucess, NULL otherwise
    * @static
    */
@@ -726,8 +726,8 @@ class CRM_Contact_BAO_Group extends CRM_Contact_DAO_Group {
    *
    * @return array
    *   associated array of group list
-   *  -rp = rowcount
-   *  -page= offset
+   *   -rp = rowcount
+   *   -page= offset
    * @todo there seems little reason for the small number of functions that call this to pass in
    * params that then need to be translated in this function since they are coding them when calling
    */
index fd717dbb505eb1003a666866fe316ef209c5a921..7823126291e3cd9f99bbf69d59daa302afff5d2b 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Contact_BAO_GroupContact extends CRM_Contact_DAO_GroupContact {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Contact_BAO_Group object
+   * @return CRM_Contact_BAO_Group
    * @static
    */
   public static function add(&$params) {
@@ -808,9 +808,9 @@ AND    contact_id IN ( $contactStr )
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
index 4d6394edfabb705268556415a37efc4653a260ec..8c43a2ed14d94cf3934a370f4ada04e28a28dbc4 100644 (file)
@@ -52,7 +52,7 @@ class CRM_Contact_BAO_Individual extends CRM_Contact_DAO_Contact {
    * @param array $contact
    *   Contact object.
    *
-   * @return CRM_Contact_BAO_Contact object
+   * @return CRM_Contact_BAO_Contact
    * @static
    */
   public static function format(&$params, &$contact) {
index a47bdb6a5da0985e0338a3e000545c202cb22f2e..6cca8c1acd1352b41a9adfd4138e643e0bf5436e 100644 (file)
@@ -61,7 +61,7 @@ class CRM_Contact_BAO_Query_Hook {
    * Get or build the list of search objects (via hook)
    *
    * @return array
-   *   of CRM_Contact_BAO_Query_Interface objects
+   *   Array of CRM_Contact_BAO_Query_Interface objects
    */
   public function getSearchQueryObjects() {
     if ($this->_queryObjects === NULL) {
index 719695e69dc4cdb3291e23d5eb3cae999f08923e..fe56dd3d9f80720776bf2de43b81500181d6aa04 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship {
    * and this is new in 4.6
    * All existing calls have been changed to createMultiple except the api call - however, it is recommended
    * that you call that as the end to end testing here is based on the api & refactoring may still be done
-   * @param $params
+   * @param array $params
    * @return \CRM_Contact_BAO_Relationship
    * @throws \CRM_Core_Exception
    */
@@ -78,10 +78,10 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship {
    *   (reference ) an assoc array of name/value pairs.
    * @param array $ids
    *   The array that holds all the db ids.
-   * per http://wiki.civicrm.org/confluence/display/CRM/Database+layer
+   *   per http://wiki.civicrm.org/confluence/display/CRM/Database+layer
    *  "we are moving away from the $ids param "
    *
-   * @return CRM_Contact_BAO_Relationship object
+   * @return CRM_Contact_BAO_Relationship
    * @static
    */
   public static function createMultiple(&$params, $ids = array()) {
@@ -304,7 +304,7 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship {
 
   /**
    * Resolve passed in contact IDs to contact_id_a & contact_id_b
-   * @param $params
+   * @param array $params
    * @param array $ids
    * @param null $contactID
    * @throws \CRM_Core_Exception
@@ -1584,7 +1584,7 @@ WHERE id IN ( {$contacts} )
    *
    * @param int $contactID
    *   contact id whose employers.
-   * are to be found.
+   *   are to be found.
    * @param string $name
    *   employers sort name.
    *
@@ -1615,7 +1615,7 @@ WHERE id IN ( {$contacts} )
    * @static
    *
    * @return array
-   *   of contacts
+   *   Array of contacts
    */
   public static function getPermissionedContacts($contactID, $relTypeId, $name = NULL) {
     $contacts = array();
index 11f1c93979fa15e97696826b1e4cc03422b8c747..da43573c7d33a346d22b17d535f5da18ad5e1cab 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Contact_BAO_RelationshipType extends CRM_Contact_DAO_RelationshipType
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contact_BAO_RelationshipType object
+   * @return CRM_Contact_BAO_RelationshipType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 77b009a42e479bdabbbdafcc9819a3006945e504..70d787e59d47e41c4d02c29bfa635c5b1008de6e 100644 (file)
@@ -82,7 +82,7 @@ class CRM_Contact_Form_Task_LabelCommon {
    *   UNUSED.
    *
    * @return array
-   *   of rows for labels
+   *   Array of rows for labels
    */
 
   public static function getRows($contactIDs, $locationTypeID, $respectDoNotMail, $mergeSameAddress, $mergeSameHousehold) {
@@ -253,13 +253,10 @@ class CRM_Contact_Form_Task_LabelCommon {
 
   /**
    * Get array of return properties for address fields required for mailing label
+   *
    * @return array
-   *   return properites for address e.g
-   * array (
-   *  - [street_address] => 1,
-   * -  [supplemental_address_1] => 1,
-   * -  [supplemental_address_2] => 1
-   * )
+   *   return properties for address e.g
+   *   [street_address => 1, supplemental_address_1 => 1, supplemental_address_2 => 1]
    */
   public static function getAddressReturnProperties() {
     $mailingFormat = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
@@ -277,8 +274,8 @@ class CRM_Contact_Form_Task_LabelCommon {
 
   /**
    * Get token list from mailing format & contacts
-   * @param unknown_type $contacts
-   * @return unknown
+   * @param array $contacts
+   * @return array
    */
   public static function getTokenData(&$contacts) {
     $mailingFormat = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
@@ -307,12 +304,12 @@ class CRM_Contact_Form_Task_LabelCommon {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
   public function mergeSameHousehold(&$rows) {
-    # group selected contacts by type
+    // group selected contacts by type
     $individuals = array();
     $households = array();
     foreach ($rows as $contact_id => $row) {
@@ -324,7 +321,7 @@ class CRM_Contact_Form_Task_LabelCommon {
       }
     }
 
-    # exclude individuals belonging to selected households
+    // exclude individuals belonging to selected households
     foreach ($households as $household_id => $row) {
       $dao = new CRM_Contact_DAO_Relationship();
       $dao->contact_id_b = $household_id;
@@ -337,7 +334,7 @@ class CRM_Contact_Form_Task_LabelCommon {
       }
     }
 
-    # merge back individuals and households
+    // merge back individuals and households
     $rows = array_merge($individuals, $households);
     return $rows;
   }
index 5b163576accc141ab88531b9c5d7590d6174a39f..4b0b4e53871ad602dcb16c3d88c976b55a26d8b5 100644 (file)
@@ -1695,7 +1695,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
    *
    * @param array $params
    *   reference to an array containing all the.
-   * values for import
+   *   values for import
    * @param int $onDuplicate
    * @param int $cid
    *   contact id.
index 3b62110e10a3e4267ffac9bf99c16b0c2191bdb1..8e17252c2b93fcb67d7059facec2f1d0ff87bdb3 100644 (file)
@@ -92,7 +92,7 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
    * @param array $ids
    *   The array that holds all the db ids.
    *
-   * @return CRM_Contribute_BAO_Contribution object
+   * @return CRM_Contribute_BAO_Contribution
    * @static
    */
   public static function add(&$params, $ids = array()) {
@@ -297,7 +297,7 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
    * @param array $ids
    *   The array that holds all the db ids.
    *
-   * @return CRM_Contribute_BAO_Contribution object
+   * @return CRM_Contribute_BAO_Contribution
    * @static
    */
   public static function create(&$params, $ids = array()) {
@@ -540,7 +540,7 @@ class CRM_Contribute_BAO_Contribution extends CRM_Contribute_DAO_Contribution {
    * @param array $ids
    *   (reference) the array that holds all the db ids.
    *
-   * @return CRM_Contribute_BAO_Contribution object
+   * @return CRM_Contribute_BAO_Contribution
    * @static
    */
   public static function retrieve(&$params, &$defaults, &$ids) {
@@ -846,13 +846,12 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = civicrm_contribution.conta
    * @param array $input
    *   An assoc array of name/value pairs.
    * @param array $duplicates
-   *   (reference ) store ids of duplicate contribs.
-   *
+   *   (reference) store ids of duplicate contribs.
    * @param int $id
    *
    * @return boolean
    *   true if duplicate, false otherwise
-   * static
+   * @static
    */
   public static function checkDuplicate($input, &$duplicates, $id = NULL) {
     if (!$id) {
@@ -902,9 +901,9 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = civicrm_contribution.conta
    * pairs
    *
    * @param array $params
-   *   (reference ) an assoc array of name/value pairs.
+   *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Contribute_BAO_ContributionProduct object
+   * @return CRM_Contribute_DAO_ContributionProduct
    * @static
    */
   public static function addPremium(&$params) {
@@ -1161,7 +1160,7 @@ WHERE  civicrm_contribution.contact_id = civicrm_contact.id
    *
    * @return array
    *   contribution id if success else NULL
-   * static
+   * @static
    */
   public static function checkDuplicateIds($params) {
     $dao = new CRM_Contribute_DAO_Contribution();
@@ -1254,7 +1253,6 @@ LEFT JOIN civicrm_option_value contribution_status ON (civicrm_contribution.cont
    * Create address associated with contribution record.
    *
    * @param array $params
-   *   An associated array.
    * @param int $billingLocationTypeID
    *
    * @return int
@@ -1340,7 +1338,8 @@ WHERE      $condition
    * @param string $componentName
    *   Event/Membership.
    *
-   * @return $contributionId pending contribution id.
+   * @return int
+   *   pending contribution id.
    * @static
    */
   public static function checkOnlinePendingContribution($componentId, $componentName) {
@@ -1395,7 +1394,7 @@ LEFT JOIN  civicrm_contribution contribution ON ( componentPayment.contribution_
   }
 
   /**
-   * This function update contribution as well as related objects.
+   * Update contribution as well as related objects.
    */
   public static function transitionComponents($params, $processContributionObject = FALSE) {
     // get minimum required values.
@@ -1751,7 +1750,7 @@ LEFT JOIN  civicrm_contribution contribution ON ( componentPayment.contribution_
   }
 
   /**
-   * This function returns all contribution related object ids.
+   * Returns all contribution related object ids.
    */
   public static function getComponentDetails($contributionId) {
     $componentDetails = $pledgePayment = array();
@@ -1949,11 +1948,13 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac
     );
   }
 
-  /*
+  /**
    * Load objects relations to contribution object
    * Objects are stored in the $_relatedObjects property
    * In the first instance we are just moving functionality from BASEIpn -
-   * see http://issues.civicrm.org/jira/browse/CRM-9996
+   * @see http://issues.civicrm.org/jira/browse/CRM-9996
+   *
+   * Note that the unit test for the BaseIPN class tests this function
    *
    * @param array $input
    *   Input as delivered from Payment Processor.
@@ -1963,13 +1964,6 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac
    *   Is Payment processor / contribution page required.
    * @param bool $loadAll
    *   Load all related objects - even where id not passed in? (allows API to call this).
-   * Note that the unit test for the BaseIPN class tests this function
-   */
-  /**
-   * @param $input
-   * @param $ids
-   * @param bool $required
-   * @param bool $loadAll
    *
    * @return bool
    * @throws Exception
@@ -2129,12 +2123,12 @@ WHERE  contribution_id = %1 ";
     return TRUE;
   }
 
-  /*
+  /**
    * Create array of message information - ie. return html version, txt version, to field
    *
    * @param array $input
    *   Incoming information.
-   *  - is_recur - should this be treated as recurring (not sure why you wouldn't
+   *   - is_recur - should this be treated as recurring (not sure why you wouldn't
    *    just check presence of recur object but maintaining legacy approach
    *    to be careful)
    * @param array $ids
@@ -2142,20 +2136,14 @@ WHERE  contribution_id = %1 ";
    * @param array $values
    *   Any values that may have already been compiled by calling process.
    *   This is augmented by values 'gathered' by gatherMessageValues
+   * @param bool $recur
    * @param bool $returnMessageText
    *   Distinguishes between whether to send message or return.
    *   message text. We are working towards this function ALWAYS returning message text & calling
    *   function doing emails / pdfs with it
+   *
    * @return array
    *   messages
-   */
-  /**
-   * @param $input
-   * @param $ids
-   * @param $values
-   * @param bool $recur
-   * @param bool $returnMessageText
-   *
    * @throws Exception
    */
   public function composeMessageArray(&$input, &$ids, &$values, $recur = FALSE, $returnMessageText = TRUE) {
@@ -2279,26 +2267,18 @@ WHERE  contribution_id = %1 ";
     }
   }
 
-  /*
+  /**
    * Gather values for contribution mail - this function has been created
    * as part of CRM-9996 refactoring as a step towards simplifying the composeMessage function
    * Values related to the contribution in question are gathered
    *
    * @param array $input
    *   Input into function (probably from payment processor).
+   * @param array $values
    * @param array $ids
-   *   The set of ids related to the inpurt.
+   *   The set of ids related to the input.
    *
    * @return array
-   *
-   * NB don't add direct calls to the function as we intend to change the signature
-   */
-  /**
-   * @param $input
-   * @param $values
-   * @param array $ids
-   *
-   * @return mixed
    */
   public function _gatherMessageValues($input, &$values, $ids = array()) {
     // set display address of contributor
@@ -3195,9 +3175,9 @@ WHERE  contribution_id = %1 ";
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
@@ -3257,9 +3237,9 @@ WHERE  contribution_id = %1 ";
    * Function to record additional payment for partial and refund contributions
    *
    * @param int $contributionId
-   *   is the invoice contribution id (got created after processing participant payment).
+   *   is the invoice contribution id (got created after processing participant payment).
    * @param array $trxnData
-   *   to take user provided input of transaction details.
+   *   to take user provided input of transaction details.
    * @param string $paymentType
    *   'owed' for purpose of recording partial payments, 'refund' for purpose of recording refund payments.
    */
index 1d9b7a55275e9df873c2360a1a136ac36a894e28..2d427e8fa81989ee0e6a1f90be302979b43be225 100644 (file)
@@ -41,10 +41,10 @@ class CRM_Contribute_BAO_Contribution_Utils {
    *   Form object.
    * @param array $paymentParams
    *   Array with payment related key.
-   * value pairs
+   *   value pairs
    * @param array $premiumParams
    *   Array with premium related key.
-   * value pairs
+   *   value pairs
    * @param int $contactID
    *   Contact id.
    * @param int $contributionTypeId
index 5745ad5e35aa1dfb9ae747dc4cb1af8fff4290ae..1a13287d367b8450349c17c54a357232f4d9a396 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Contribute_DAO_ContributionPage object
+   * @return CRM_Contribute_DAO_ContributionPage
    * @static
    */
   public static function &create(&$params) {
@@ -720,7 +720,7 @@ WHERE entity_table = 'civicrm_contribution_page'
    *
    * @return boolean
    *   true if payment processor supports recurring
-   * else false
+   *   else false
    *
    * @static
    */
index ccfef2f84e311ad884bc3a39ce0fdaed8d8a3440..35abe09e936b7d87a5050164fcf093e393949e6d 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_Contributi
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Contribute_BAO_Contribution object
+   * @return CRM_Contribute_BAO_Contribution
    * @static
    * @todo move hook calls / extended logic to create - requires changing calls to call create not add
    */
@@ -114,7 +114,7 @@ class CRM_Contribute_BAO_ContributionRecur extends CRM_Contribute_DAO_Contributi
    *
    * @return boolean
    *   true if duplicate, false otherwise
-   * static
+   * @static
    */
   public static function checkDuplicate($params, &$duplicates) {
     $id = CRM_Utils_Array::value('id', $params);
@@ -185,7 +185,7 @@ SELECT r.payment_processor_id
    *
    * @return array
    *   an array of recurring ids count
-   * static
+   * @static
    */
   public static function getCount(&$ids) {
     $recurID = implode(',', $ids);
index e654b3185773cf5bd43cb0b4bd7c72c9c711ab6a..03f443f54c9730f9d383743bc075e67c1aa9bf08 100644 (file)
@@ -70,7 +70,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_ContributionSoft object
+   * @return CRM_Contribute_BAO_ContributionSoft
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -150,7 +150,7 @@ class CRM_Contribute_BAO_ContributionSoft extends CRM_Contribute_DAO_Contributio
    *   Include PCP data.
    *
    * @return array
-   *   of soft contribution ids, amounts, and associated contact ids
+   *   Array of soft contribution ids, amounts, and associated contact ids
    * @static
    */
   public static function getSoftContribution($contributionID, $all = FALSE) {
index b8b3334a56158a352519ada359669e9aec13afe9..77236132fb02b5176f689d93b3ad74c5ac92984e 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_ManagePremium object
+   * @return CRM_Contribute_BAO_ManagePremium
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 35e9f3a4b99c4f4b1a049bb0acc0fe7a32dadef1..d338d30cb91731ecbbf0f2fa282b27117d6bc339 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Contribute_BAO_Premium extends CRM_Contribute_DAO_Premium {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_ManagePremium object
+   * @return CRM_Contribute_BAO_ManagePremium
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index f515b9ab05710b2c2efa2d2e92e13c6762936c63..b7ed01b83e03a32739edf3182e75d0afa28ba1d4 100644 (file)
@@ -371,7 +371,7 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
 
   /**
    * @return array
-   *   of valid processors. The array resembles the DB table but also has 'object' as a key
+   *   Array of valid processors. The array resembles the DB table but also has 'object' as a key
    * @throws Exception
    */
   public function getValidProcessors() {
index 70a894aaba0d03c41ae9128471c1ce06b0d4ac18..33f632bb0b9693a3c6cbd152fb142902b0260491 100644 (file)
@@ -1628,7 +1628,7 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
    *   array of organization info.
    * @param int $contactID
    *   individual contact id. One.
-   * who is doing the process of signup / contribution.
+   *   who is doing the process of signup / contribution.
    *
    * @param array $values
    *   form values array.
index 1068c45260a9b7dd55b5370b48a1a4c25c7d8c4d..fdded7ee50da7052cb6c9ce62fcf1f2da26ab3d8 100644 (file)
@@ -203,7 +203,7 @@ class CRM_Contribute_Form_SoftCredit {
    * @param $self
    *
    * @return array
-   *   of errors
+   *   Array of errors
    * @static
    */
   public static function formRule($fields, $errors, $self) {
index db0f7be77b116d2e50b6706adfe3463d876c2e8f..8f59642a547ef3bf65ea4272700ccf0a3560ea4a 100644 (file)
@@ -616,7 +616,8 @@ AND   cas.entity_value = $id AND
    * @param array $values
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_ActionSchedule object on success, null otherwise
+   * @return CRM_Core_DAO_ActionSchedule|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$values) {
index 4789b739a6a1910e913d092c9a09e4ddb6639128..662b62175db734bfced77b87f1dbeeb94377342d 100644 (file)
@@ -642,7 +642,7 @@ ORDER BY civicrm_address.is_primary DESC, address_id ASC";
    *
    * @param array $entityElements
    *   The array containing entity_id and.
-   * entity_table name
+   *   entity_table name
    *
    * @return array
    *   the array of adrress data
@@ -680,7 +680,7 @@ ORDER BY civicrm_address.is_primary DESC, civicrm_address.location_type_id DESC,
    * Get address sequence
    *
    * @return array
-   *   of address sequence.
+   *   Array of address sequence.
    */
   public static function addressSequence() {
     $config = CRM_Core_Config::singleton();
@@ -1262,9 +1262,9 @@ SELECT is_primary,
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
index 72043e6528c60111baee7c954c87dd429fe54781..e1753e6d79dbaef2c30f6888978b1576a47286e1 100644 (file)
@@ -57,7 +57,7 @@ class CRM_Core_BAO_Block {
    *   Input parameters to find object.
    *
    * @return array
-   *   of $block objects.
+   *   Array of $block objects.
    * @static
    */
   public static function &getValues($blockName, $params) {
@@ -104,7 +104,7 @@ class CRM_Core_BAO_Block {
    *   Name of the above object.
    *
    * @return array
-   *   of $block objects.
+   *   Array of $block objects.
    * @static
    */
   public static function retrieveBlock(&$block, $blockName) {
index fae2fdf2bc53092b38b5ecf51e2b1ec4c964fe58..f29952bdba40605c55d5eb3a2f42d0604df4925b 100644 (file)
@@ -486,10 +486,10 @@ class CRM_Core_BAO_ConfigSetting {
    * Return likely default settings
    * @return array
    *   site settings
-   *  -$url,
-   * - $dir Base Directory
-   * - $siteName
-   * - $siteRoot
+   *   - $url
+   *   - $dir Base Directory
+   *   - $siteName
+   *   - $siteRoot
    */
   public static function getBestGuessSettings() {
     $config = CRM_Core_Config::singleton();
index 6e1ad55002c67813fe9eda0e7ead91d95dd8e28a..2d910bd9815d355842b9e38bd003297d49aabb07 100644 (file)
@@ -131,7 +131,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_DAO_CustomField object
+   * @return CRM_Core_DAO_CustomField
    * @static
    */
   public static function create(&$params) {
@@ -327,7 +327,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_CustomField object
+   * @return CRM_Core_DAO_CustomField
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -710,7 +710,8 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    * @param int $fieldID
    *   The custom field ID.
    *
-   * @return CRM_Core_DAO_CustomField $field  the field object
+   * @return CRM_Core_DAO_CustomField
+   *   $field  the field object
    * @static
    * public
    */
@@ -2107,7 +2108,7 @@ AND    cf.id = %1";
    *
    * @param array $includeFieldIds
    *   Ids of custom fields for which.
-   * option groups must be included.
+   *   option groups must be included.
    *
    * Currently this is required in the cases where option groups are to be included
    * for inactive fields : CRM-5369
@@ -2416,7 +2417,7 @@ WHERE      f.id IN ($ids)";
    *
    * @param array $params
    *   Custom data submitted.
-   * ie array( 'custom_1' => 'validate me' );
+   *   ie array( 'custom_1' => 'validate me' );
    *
    * @return array
    *   validation errors.
index 4bd9725590982a4106b399031f5f1ecb12b95b5d..f4aacdee5cc4d569dd7382e617f4c944425be873 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_DAO_CustomGroup object
+   * @return CRM_Core_DAO_CustomGroup
    * @static
    */
   public static function create(&$params) {
@@ -231,7 +231,7 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_CustomGroup object
+   * @return CRM_Core_DAO_CustomGroup
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -330,15 +330,14 @@ class CRM_Core_BAO_CustomGroup extends CRM_Core_DAO_CustomGroup {
    * @param bool $onlySubType
    *
    * @return array
-   *   array  The returned array is keyed by group id and has the custom group table fields
-   * and a subkey 'fields' holding the specific custom fields.
-   * If entityId is passed in the fields keys have a subkey 'customValue' which holds custom data
-   * if set for the given entity. This is structured as an array of values with each one having the keys 'id', 'data'
+   *   The returned array is keyed by group id and has the custom group table fields
+   *   and a subkey 'fields' holding the specific custom fields.
+   *   If entityId is passed in the fields keys have a subkey 'customValue' which holds custom data
+   *   if set for the given entity. This is structured as an array of values with each one having the keys 'id', 'data'
    *
    * @todo - review this  - It also returns an array called 'info' with tables, select, from, where keys
-   * The reason for the info array in unclear and it could be determined from parsing the group tree after creation
-   * With caching the performance impact would be small & the function would be cleaner
-   *
+   *   The reason for the info array in unclear and it could be determined from parsing the group tree after creation
+   *   With caching the performance impact would be small & the function would be cleaner
    *
    * @static
    */
@@ -740,7 +739,7 @@ ORDER BY civicrm_custom_group.weight,
    * @param string $query
    * @param array $includedTables
    *   Tables to include - required because the function (for historical reasons).
-   * iterates through the group tree
+   *   iterates through the group tree
    */
   static public function buildTreeEntityDataFromQuery(&$groupTree, $query, $includedTables) {
     $dao = CRM_Core_DAO::executeQuery($query);
@@ -2293,7 +2292,7 @@ SELECT  civicrm_custom_group.id as groupID, civicrm_custom_group.title as groupT
    *   Var which should have the list appended.
    *
    * @return array
-   *   of types.
+   *   Array of types.
    */
   public static function getExtendedObjectTypes(&$types = array()) {
     static $flag = FALSE, $objTypes = array();
index 7dd9eb4dcc3cb7f1eef4ced7031f346539797312..e91613b812e4b8b2de0037caf87f5d7d27f080a6 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Core_BAO_CustomOption {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_CustomOption object
+   * @return CRM_Core_BAO_CustomOption
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -173,7 +173,8 @@ WHERE  id = %1
   /**
    * Delete Option
    *
-   * param $optionId integer option id
+   * @param $optionId integer
+   *   option id
    *
    * @static
    */
index 48cee4cde87d8c9b8b49ce1600f1e67f707ccadc..31bf6680b512ee3a8d0629dae3667e11277224cd 100644 (file)
@@ -99,11 +99,11 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
    *
    * @param bool $flatFormat
    *   This is true if you want simple associated.
-   * array of all the contact's dashlets whether or not they are enabled.
+   *   array of all the contact's dashlets whether or not they are enabled.
    *
    * @param int $contactID
    *   Provide the dashlets for the contact id.
-   * passed rather than the current user.
+   *   passed rather than the current user.
    *
    * @return array
    *   array of dashlets
@@ -156,7 +156,7 @@ class CRM_Core_BAO_Dashboard extends CRM_Core_DAO_Dashboard {
    * the default dashlets.
    *
    * @return array
-   *   of dashboard_id's
+   *   Array of dashboard_id's
    */
   public static function initializeDashlets() {
     $dashlets = array();
index 685cb648c352467c1abe50e2d3953521d34353f4..94d0af354c60617fa342bcc9dcf9fc401f8ff375 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Core_BAO_Domain extends CRM_Core_DAO_Domain {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_Domain object
+   * @return CRM_Core_DAO_Domain
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index d81621b0da728d6a0189234927c69741bf4bc2ad..7b459fbfe57745a141d6cbf92b7afe0b3706adbb 100644 (file)
@@ -189,7 +189,7 @@ ORDER BY  civicrm_email.is_primary DESC, email_id ASC ";
    *
    * @param array $entityElements
    *   The array containing entity_id and.
-   * entity_table name
+   *   entity_table name
    *
    * @return array
    *   the array of email id's
index a43d0978d7bd75984eb43634a15e7962ab3f9ebe..058dc1473a2aaf966e15610b73b993f08a14347f 100644 (file)
@@ -74,7 +74,7 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_BAO_EntityTag object
+   * @return CRM_Core_BAO_EntityTag
    * @static
    */
   public static function add(&$params) {
@@ -118,7 +118,7 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_BAO_EntityTag object
+   * @return CRM_Core_BAO_EntityTag
    * @static
    */
   public static function del(&$params) {
@@ -401,9 +401,9 @@ class CRM_Core_BAO_EntityTag extends CRM_Core_DAO_EntityTag {
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
index 09155244de3a8dec9b280cef9793bfc205719f2f..c6f90cf24bcbd344fc4ba9f8532646c6f37862c8 100644 (file)
@@ -47,7 +47,8 @@ class CRM_Core_BAO_Extension extends CRM_Core_DAO_Extension {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_LocationType object on success, null otherwise
+   * @return CRM_Core_BAO_LocationType|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index e0c039b543af91ea993f0311bd110388c3ce8c12..213299567d6ccc98fd7b58c7ccbd462abc3addd8 100644 (file)
@@ -53,7 +53,7 @@ class CRM_Core_BAO_FinancialTrxn extends CRM_Financial_DAO_FinancialTrxn {
    * @param string $trxnEntityTable
    *   Entity_table.
    *
-   * @return CRM_Core_BAO_FinancialTrxn object
+   * @return CRM_Core_BAO_FinancialTrxn
    * @static
    */
   public static function create(&$params, $trxnEntityTable = NULL) {
@@ -125,7 +125,7 @@ class CRM_Core_BAO_FinancialTrxn extends CRM_Financial_DAO_FinancialTrxn {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_ContributionType object
+   * @return CRM_Contribute_BAO_ContributionType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 86d13f75813f7d81876e279293f533edc048b842..5656bd703b382f5ca86ff571b1afd970aeb48551 100644 (file)
@@ -131,7 +131,7 @@ ORDER BY
    *
    * @param array $entityElements
    *   The array containing entity_id and.
-   * entity_table name
+   *   entity_table name
    *
    * @return array
    *   the array of im details
index 87eb2b47ff434803d122ed037c9814419e68ccad..57f6d00aec804228e1bcf3a469b2e527233dd7bc 100644 (file)
@@ -70,7 +70,8 @@ class CRM_Core_BAO_Job extends CRM_Core_DAO_Job {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_Job object on success, null otherwise
+   * @return CRM_Core_DAO_Job|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 33ab43de2af0f409bcb22b7dc4ca592ea6fa7de6..d828eab3c29ddf6950a45a2b37e67e58e0ea3489 100644 (file)
@@ -441,7 +441,7 @@ class CRM_Core_BAO_LabelFormat extends CRM_Core_DAO_OptionValue {
    *
    * @param string $groupName
    *
-   * @return CRM_Core_DAO_OptionValue object
+   * @return CRM_Core_DAO_OptionValue
    * @static
    */
   public static function retrieve(&$params, &$values, $groupName = 'label_format') {
index 8fc79a71a88b8d0993cc57aba7fae94a2eb51564..004133f732ca977544aa96257019f6eef262469a 100644 (file)
@@ -55,7 +55,8 @@ class CRM_Core_BAO_LocationType extends CRM_Core_DAO_LocationType {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_LocaationType object on success, null otherwise
+   * @return CRM_Core_BAO_LocaationType|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 6a42745d8614d6de088fd167e05b3c23ee8336da..f9d1a5001a387f7601e38863eb26333eddcd9aa1 100644 (file)
@@ -47,7 +47,8 @@ class CRM_Core_BAO_MailSettings extends CRM_Core_DAO_MailSettings {
    *
    * @param bool $reset
    *
-   * @return CRM_Core_BAO_MailSettings  DAO with the default mail settings set
+   * @return CRM_Core_BAO_MailSettings
+   *   DAO with the default mail settings set
    */
   public static function defaultDAO($reset = FALSE) {
     static $mailSettings = array();
@@ -117,7 +118,7 @@ class CRM_Core_BAO_MailSettings extends CRM_Core_DAO_MailSettings {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_MailSettings object
+   * @return CRM_Core_BAO_MailSettings
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -174,7 +175,7 @@ class CRM_Core_BAO_MailSettings extends CRM_Core_DAO_MailSettings {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_BAO_MailSettings object
+   * @return CRM_Core_BAO_MailSettings
    * @static
    */
   public static function create(&$params) {
index d8ba0e606523c66b24ae94abfdf9b96a8d581f9d..10101d6d66b256ef32cc3c5672c3b0b0886decdd 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_MessageTemplate object
+   * @return CRM_Core_BAO_MessageTemplate
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -315,7 +315,7 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate {
    *   A string-keyed array of function params, see function body for details.
    *
    * @return array
-   *   of four parameters: a boolean whether the email was sent, and the subject, text and HTML templates
+   *   Array of four parameters: a boolean whether the email was sent, and the subject, text and HTML templates
    */
   public static function sendTemplate($params) {
     $defaults = array(
index a6dcd01850aa735c5edeea799999539dfc7a0977..8382350686a47ed06b7a83de158066b5915407c7 100644 (file)
@@ -133,7 +133,8 @@ class CRM_Core_BAO_Navigation extends CRM_Core_DAO_Navigation {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_Navigation object on success, NULL otherwise
+   * @return CRM_Core_BAO_Navigation|null
+   *   object on success, NULL otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index c393b3637d50148f71c4f0fb6608b9494c83c460..c03ed0e4dfb087fedf61b705c83be84b05b78937 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Core_BAO_OptionGroup extends CRM_Core_DAO_OptionGroup {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_OptionGroup object
+   * @return CRM_Core_BAO_OptionGroup
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 6824ae847455b98ffbb737f815326880335e2b47..3eb2b944a8869a610bc0962301019f1012f0700b 100644 (file)
@@ -132,7 +132,7 @@ class CRM_Core_BAO_OptionValue extends CRM_Core_DAO_OptionValue {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_OptionValue object
+   * @return CRM_Core_BAO_OptionValue
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index ca7405b2247558220521a9360b754b8b5ada576e..f63c8dabb4f93c30e3c5c9d92a44965b1d0dbe6a 100644 (file)
@@ -244,7 +244,7 @@ class CRM_Core_BAO_PaperSize extends CRM_Core_DAO_OptionValue {
    * @param array $values
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_OptionValue object
+   * @return CRM_Core_DAO_OptionValue
    * @static
    */
   public static function retrieve(&$params, &$values) {
index 4162f3bd37fbc0cb6bc18485f0404072ea8cae58..dfe69b9373f73503a6a008d54c7ee9c48b1f0e95 100644 (file)
@@ -305,7 +305,7 @@ class CRM_Core_BAO_PdfFormat extends CRM_Core_DAO_OptionValue {
    * @param array $values
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_OptionValue object
+   * @return CRM_Core_DAO_OptionValue
    * @static
    */
   public static function retrieve(&$params, &$values) {
index 229d726540c2bae2d6f61cd07aa69f4fcfe165a8..818cb78e11c4b304701148ae775c86c50ff2e6ad 100644 (file)
@@ -42,7 +42,7 @@ class CRM_Core_BAO_Persistent extends CRM_Core_DAO_Persistent {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_Persistent object
+   * @return CRM_Core_BAO_Persistent
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 534a55a3303f7a5f46ca0b783db49a09b6c1e0c1..e36771c5da8e9ef924d6286d2fce44b46fffb174 100644 (file)
@@ -185,7 +185,7 @@ ORDER BY civicrm_phone.is_primary DESC,  phone_id ASC ";
    *
    * @param array $entityElements
    *   The array containing entity_id and.
-   * entity_table name
+   *   entity_table name
    *
    * @param null $type
    *
index 26bf706142ca16b8bb81d8836c65e72c3ca6831b..5157b0a36138abf8401567da04789f40e7231749 100644 (file)
@@ -54,7 +54,8 @@ class CRM_Core_BAO_PreferencesDate extends CRM_Core_DAO_PreferencesDate {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_PreferencesDate object on success, null otherwise
+   * @return CRM_Core_BAO_PreferencesDate|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 70a85c2f525bdb6172697da6cbcdf50f8d0d8c29..7659094aac6a0685d96708ecead3008d46554048 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Core_BAO_UFField extends CRM_Core_DAO_UFField {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_UFField object
+   * @return CRM_Core_BAO_UFField
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -203,7 +203,7 @@ WHERE cf.id IN (" . $customFieldIds . ") AND is_multiple = 1 LIMIT 0,1";
    * @param array $ids
    *   Array containing the id.
    *
-   * @return CRM_Core_BAO_UFField object
+   * @return CRM_Core_BAO_UFField
    *
    * @static
    */
@@ -803,7 +803,7 @@ SELECT  id
    *   Array of profile fields that relate to address fields.
    * @param array $profileFilter
    *   Filter to apply to profile fields - expected usage is to only fill based on.
-   * the bottom profile per CRM-13726
+   *   the bottom profile per CRM-13726
    *
    * @return bool
    *   Can the address block be hidden safe in the knowledge all fields are elsewhere collected (see CRM-15118)
index 6d02ca8e8f6a02e0becbdf838dd8326fe0cbd815..74d81d7d400a2e349e7da672b942a3fa7aad4deb 100644 (file)
@@ -1617,7 +1617,7 @@ AND    ( entity_id IS NULL OR entity_id <= 0 )
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_BAO_UFJoin object
+   * @return CRM_Core_BAO_UFJoin
    * @static
    */
   public static function addUFJoin(&$params) {
index 47fbdd855127c32c3fc7c8caac81538d91df9774..b795fe56be9c67da15a136eb60dff71446061678 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Core_BAO_UFJoin extends CRM_Core_DAO_UFJoin {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_DAO_UFJoin object
+   * @return CRM_Core_DAO_UFJoin
    * @static
    */
   public static function &create($params) {
index 0cfe09abd4b848e4e10023297536eece879c4638..0a27a818555ce0f0574478a4965314701818418c 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Core_BAO_WordReplacement extends CRM_Core_DAO_WordReplacement {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_DAO_WordRepalcement object
+   * @return CRM_Core_DAO_WordRepalcement
    * @static
    */
 
index dc47ad99fcce9fc7f5a8dbf112b9127142920ff7..530a28adbd1251b9fb7ea3bd3ccf5a926bb100b1 100644 (file)
@@ -123,7 +123,7 @@ Alternatively you can get a version of CiviCRM that matches your PHP version
 
   /**
    * @return array
-   *   of class names; each class implements CRM_Core_CodeGen_ITask
+   *   Array of class names; each class implements CRM_Core_CodeGen_ITask
    */
   public function getTasks() {
     $components = array(
index bbc0894a53af81221cd1b7de6f87ee63a01565d9..7dd0b0c6482a33fd404770467f73896638520863 100644 (file)
@@ -82,7 +82,7 @@ class CRM_Core_CodeGen_Util_File {
    * @param array $pairs
    *   Each item is an array(0 => $searchBaseDir, 1 => $filePattern).
    * @return array
-   *   of file paths
+   *   Array of file paths
    */
   public static function findManyFiles($pairs) {
     $files = array();
index 6bcc5661a0f4a7dcb2cae9194cc7fbd8889a8f21..1cb6fceffabdf056fdf615a9b705e991d02ad155 100644 (file)
@@ -534,7 +534,7 @@ class CRM_Core_Controller extends HTML_QuickForm_Controller {
    * Get the variable from the form scope
    *
    * @param string $name
-   *   name of the variable.
+   *   name of the variable.
    *
    *
    * @return mixed
index 91bcb936514ed12556c0dac610b887909d79a41c..76bb21db1b2f08d1c1bf159a88b206f73c2183e7 100644 (file)
@@ -400,7 +400,7 @@ class CRM_Core_DAO extends DB_DataObject {
    * @static
    *
    * @return array
-   *   of CRM_Core_Reference_Interface
+   *   Array of CRM_Core_Reference_Interface
    */
   public static function getReferenceColumns() {
     return array();
@@ -1144,7 +1144,8 @@ FROM   civicrm_domain
    * @param bool $i18nRewrite
    * @param bool $trapException
    *
-   * @return CRM_Core_DAO object that holds the results of the query
+   * @return CRM_Core_DAO
+   *   object that holds the results of the query
    * @static
    */
   static function &executeQuery(
@@ -2031,7 +2032,7 @@ SELECT contact_id
    * Find all records which refer to this entity.
    *
    * @return array
-   *   of objects referencing this
+   *   Array of objects referencing this
    */
   public function findReferences() {
     $links = self::getReferencesToTable(static::getTableName());
@@ -2056,11 +2057,11 @@ SELECT contact_id
   /**
    * @return array
    *   each item has keys:
-   *  - name: string
-   *  - type: string
-   *  - count: int
-   *  - table: string|null SQL table name
-   *  - key: string|null SQL column name
+   *   - name: string
+   *   - type: string
+   *   - count: int
+   *   - table: string|null SQL table name
+   *   - key: string|null SQL column name
    */
   public function getReferenceCounts() {
     $links = self::getReferencesToTable(static::getTableName());
@@ -2097,7 +2098,7 @@ SELECT contact_id
    *
    * @return array
    *   structure of table and column, listing every table with a
-   * foreign key reference to $tableName, and the column where the key appears.
+   *   foreign key reference to $tableName, and the column where the key appears.
    */
   public static function getReferencesToTable($tableName) {
     $refsFound = array();
@@ -2143,9 +2144,9 @@ SELECT contact_id
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this bao object.
+   *   whatever is known about this bao object.
    *
    * @return Array|bool
    */
@@ -2237,7 +2238,7 @@ SELECT contact_id
    *   alternative field name ('as') @todo- not actually used.
    * @param bool $returnSanitisedArray
    *   Return a sanitised array instead of a clause.
-   *  this is primarily so we can add filters @ the api level to the Query object based fields
+   *   this is primarily so we can add filters @ the api level to the Query object based fields
    *
    * @throws Exception
    *
index 6df46c033a9e4d2cbeed7ef06083e0b53203dfb0..207d0d3b7d0cffba82232bbb7f08481530490920 100644 (file)
@@ -35,7 +35,7 @@
  * @param $params : (array) api params
  *
  * @return array
- *   of permissions to check for this entity-action combo
+ *   Array of permissions to check for this entity-action combo
  */
 function _civicrm_api3_permissions($entity, $action, &$params) {
   $entity = _civicrm_api_get_entity_name_from_camel($entity);
index 4d12f3aba9204c5676522aff9232a35fed5951ba..7be50c964af52a0681706f6cbe93675c8f882b53 100644 (file)
@@ -34,7 +34,7 @@
  *   The human friendly error message.
  * @param string $error_code
  *   A computer friendly error code. By convention, no space (but underscore allowed).
- *  ex: mandatory_missing, duplicate, invalid_format
+ *   ex: mandatory_missing, duplicate, invalid_format
  * @param array $data
  *   Extra params to return. eg an extra array of ids. It is not mandatory, but can help the computer using the api. Keep in mind the api consumer isn't to be trusted. eg. the database password is NOT a good extra data.
  */
index 274f2b019e5eca28db0261e138b9046adcafb1d8..3e793a5c37a5de583e9bc9649f4cb74b73946028 100644 (file)
@@ -7,20 +7,20 @@ interface CRM_Core_FileSearchInterface {
   /**
    * @param array $query
    *   Any of the following:.
-   *  - text: string, plain text to search for
-   *  - parent_table: string - entity to which file is directly attached
-   *  - parent_id: int - entity to which file is directly attached
-   *  - xparent_table: string - business-entity to which file is attached (directly or indirectly)
-   *  - xparent_id: int - business-entity to which file is attached (directly or indirectly)
+   *   - text: string, plain text to search for
+   *   - parent_table: string - entity to which file is directly attached
+   *   - parent_id: int - entity to which file is directly attached
+   *   - xparent_table: string - business-entity to which file is attached (directly or indirectly)
+   *   - xparent_id: int - business-entity to which file is attached (directly or indirectly)
    * @param int $limit
    * @param int $offset
    * @return array
    *   each item has keys:
-   *  - file_id: int
-   *  - parent_table: string - entity to which file is directly attached
-   *  - parent_id: int - entity to which file is directly attached
-   *  - xparent_table: string - business-entity to which file is attached (directly or indirectly)
-   *  - xparent_id: int - business-entity to which file is attached (directly or indirectly)
+   *   - file_id: int
+   *   - parent_table: string - entity to which file is directly attached
+   *   - parent_id: int - entity to which file is directly attached
+   *   - xparent_table: string - business-entity to which file is attached (directly or indirectly)
+   *   - xparent_id: int - business-entity to which file is attached (directly or indirectly)
    */
   public function search($query, $limit = self::DEFAULT_SEARCH_LIMIT, $offset = self::DEFAULT_SEARCH_OFFSET);
 }
index acaa44971f90c76048f8a00a6723f922d0435624..b62ce0277ac259aba68049bd4ffbfb17e5e0cec5 100644 (file)
@@ -1440,17 +1440,17 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @param string $label
    * @param array $props
    *   Mix of html and widget properties, including:.
-   *  - select - params to give to select2 widget
-   *  - entity - defaults to contact
-   *  - create - can the user create a new entity on-the-fly?
+   *   - select - params to give to select2 widget
+   *   - entity - defaults to contact
+   *   - create - can the user create a new entity on-the-fly?
    *             Set to TRUE if entity is contact and you want the default profiles,
    *             or pass in your own set of links. @see CRM_Core_BAO_UFGroup::getCreateLinks for format
    *             note that permissions are checked automatically
-   *  - api - array of settings for the getlist api wrapper
+   *   - api - array of settings for the getlist api wrapper
    *          note that it accepts a 'params' setting which will be passed to the underlying api
-   *  - placeholder - string
-   *  - multiple - bool
-   *  - class, etc. - other html properties
+   *   - placeholder - string
+   *   - multiple - bool
+   *   - class, etc. - other html properties
    * @param bool $required
    *
    * @return HTML_QuickForm_Element
@@ -1559,12 +1559,12 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
 
   /**
    * Get contact if for a form object. Prioritise
-   *  - cid in URL if 0 (on behalf on someoneelse)
+   *   - cid in URL if 0 (on behalf on someoneelse)
    *      (@todo consider setting a variable if onbehalf for clarity of downstream 'if's
-   *  - logged in user id if it matches the one in the cid in the URL
-   *  - contact id validated from a checksum from a checksum
-   *  - cid from the url if the caller has ACL permission to view
-   *  - fallback is logged in user (or ? NULL if no logged in user) (@todo wouldn't 0 be more intuitive?)
+   *   - logged in user id if it matches the one in the cid in the URL
+   *   - contact id validated from a checksum from a checksum
+   *   - cid from the url if the caller has ACL permission to view
+   *   - fallback is logged in user (or ? NULL if no logged in user) (@todo wouldn't 0 be more intuitive?)
    *
    * @return NULL|integer
    */
@@ -1637,9 +1637,9 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *   Ids of profiles that are on the form (to be autofilled).
    * @param array $autoCompleteField
    *
-   *  - name_field
-   *  - id_field
-   *  - url (for ajax lookup)
+   *   - name_field
+   *   - id_field
+   *   - url (for ajax lookup)
    *
    * @todo add data attributes so we can deal with multiple instances on a form
    */
index 11d11270efafbd1114a97dab96b5316331836d4d..3683e5a5f33fa7b408a3b6c5dbf30329cf6a7a9e 100644 (file)
@@ -110,7 +110,7 @@ class CRM_Core_Form_RecurringEntity {
    * the default values are retrieved from the database
    *
    *
-   * @return None
+   * @return array
    */
   public static function setDefaultValues() {
     $defaults = array();
@@ -322,7 +322,7 @@ class CRM_Core_Form_RecurringEntity {
    * Process the form submission
    *
    *
-   * @return None
+   * @return void
    */
   public static function postProcess($params = array(), $type, $linkedEntities = array()) {
     //Check entity_id not present in params take it from class variable
index 825b00ca72c5da7babe66dfe4c288550fd37d188..2b532c53c3ac64d618415466940999e240ecbb8f 100644 (file)
@@ -123,7 +123,7 @@ class CRM_Core_I18n {
    *   whether to return all languages or just the enabled ones.
    *
    * @return array
-   *   of code/language name mappings
+   *   Array of code/language name mappings
    */
   public static function languages($justEnabled = FALSE) {
     static $all = NULL;
@@ -503,7 +503,7 @@ class CRM_Core_I18n {
  *
  * @param $text
  *   String string for translating.
- * @param $params
+ * @param array $params
  *   Array an array of additional parameters.
  *
  * @return string
index aeb793693f3ed86fc1a37cd06c2ab0dad1274280..6c4eeef7546d5d2da2a0910a6c83db43f3ff31d0 100644 (file)
@@ -219,7 +219,7 @@ WHERE  v.option_group_id = g.id
    * @param bool $fresh
    *
    * @return array
-   *   of values as specified by the above params
+   *   Array of values as specified by the above params
    * @static
    * @void
    */
index 09b71d7b0c8e0f80d49e9c9925b29ed43abe377d..a0bad747ed7d38b8c93e435aa1511192f9e1bc0e 100644 (file)
@@ -69,7 +69,7 @@ class CRM_Core_OptionValue {
    *   Has links like edit, delete, disable ..etc.
    *
    * @return array
-   *   of option-values
+   *   Array of option-values
    *
    * @static
    */
@@ -392,7 +392,7 @@ class CRM_Core_OptionValue {
    *   Do you want only active option values?.
    *
    * @return array
-   *   of option-values
+   *   Array of option-values
    *
    * @static
    */
index 10fe9c1608d3c8bce2a30280e1e2899c7d0db120..163971fd19d42131820ec8996d7c2c83eaed996b 100644 (file)
@@ -184,7 +184,8 @@ abstract class CRM_Core_Payment {
   /**
    * Getter for payment form that is using the processor
    * @deprecated
-   * @return CRM_Core_Form  A form object
+   * @return CRM_Core_Form
+   *   A form object
    */
   public function getForm() {
     return $this->_paymentForm;
index c521cdca621b87b1707c0f921fe09fb1d00df31c..25d5f298b3e80e5b31ed935a25783caa8b7c833f 100644 (file)
@@ -560,7 +560,7 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment {
    * @param bool $xmlSafe
    * @return mixed
    *   value of the field, or empty string if the field is
-   * not set
+   *   not set
    */
   public function _getParam($field, $xmlSafe = FALSE) {
     $value = CRM_Utils_Array::value($field, $this->_params, '');
index 29e7d40a5bf0286c9d23787b037d0274a8d8b10b..1ce44b30612294c90a6c28f597e067a4c97429d0 100644 (file)
@@ -743,7 +743,7 @@ LIMIT 1;";
    *   Is it part of a recurring contribution.
    * @param bool $returnMessageText
    *   Should text be returned instead of sent. This.
-   *  is because the function is also used to generate pdfs
+   *   is because the function is also used to generate pdfs
    *
    * @return array
    */
index 251343dd791287493f3201ec4f1774712980d70a..e9f78a02706d96c9328a3372bbd0b1a50db48922 100644 (file)
@@ -216,7 +216,7 @@ class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
    *
    * @return mixed
    *   value of the field, or empty string if the field is
-   * not set
+   *   not set
    */
   public function _getParam($field) {
     if (isset($this->_params[$field])) {
index 382eef25fa4ef1c193cdbcfecce0f307de1b588d..96d45ccf23996cc93d4b4d3145343394d1af2464 100644 (file)
@@ -75,15 +75,15 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN {
   }
 
   /**
-   * Function exists to get the values from the rp_invoice_id string
+   * get the values from the rp_invoice_id string
    *
    * @param string $name
    *   E.g. i, values are stored in the string with letter codes.
    * @param bool $abort
-   *   Fatal if not found?.
+   *   Throw exception if not found
    *
    * @throws CRM_Core_Exception
-   * @return unknown
+   * @return mixed
    */
   public function getValue($name, $abort = TRUE) {
     if ($abort && empty($this->_invoiceData[$name])) {
index a9b113a6749270baedf72bf1f6db18fe51d73627..24ba592571127950bbd466de0d037eb23fdd4c3d 100644 (file)
@@ -451,7 +451,7 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
    *
    * @return mixed
    *   value of the field, or empty string if the field is
-   * not set
+   *   not set
    */
   public function _getParam($field) {
     if (isset($this->_params[$field])) {
index 9b168cd768eb7fce75f59197c11020be7e581db8..0218a5bc06eaf114117c9ba04f7353a330f3debe 100644 (file)
@@ -85,7 +85,7 @@ class CRM_Core_Permission {
    * Given a permission string or array, check for access requirements
    * @param mixed $permissions
    *   The permission to check as an array or string -see examples.
-   *  arrays
+   *   arrays
    *
    *  Ex 1
    *
index 55335c14180c7a8e77fdaa9c6ec822d6e85422dc..515a8992df0454f30db99adfee919150c8a81d86 100644 (file)
@@ -239,8 +239,8 @@ class CRM_Core_Permission_Base {
    *
    * @param $module
    *
-   * @return Array
-   *   of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
+   * @return array
+   *   Array of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
    * @see CRM_Core_Permission::getCorePermissions
    */
   public static function getModulePermissions($module) {
@@ -258,8 +258,8 @@ class CRM_Core_Permission_Base {
    * Get the permissions defined in the hook_civicrm_permission implementation
    * in all enabled CiviCRM module extensions.
    *
-   * @return Array
-   *   of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
+   * @return array
+   *   Array of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
    */
   public function getAllModulePermissions() {
     $permissions = array();
index 21060df837ccd778feeb8bbef57944fe1c740d27..396d195ade97d0246b73afd6aede5d0fb3fb2dce 100644 (file)
@@ -204,8 +204,8 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase {
    *
    * @param $module
    *
-   * @return Array
-   *   of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
+   * @return array
+   *   Array of permissions, in the same format as CRM_Core_Permission::getCorePermissions().
    */
   public static function getModulePermissions($module) {
     $return_permissions = array();
index eaa88057c520a83933fb3dab6f96b1417de06a66..3f8f6d6c1bf762211ac809af1233a56513195dec 100644 (file)
@@ -21,7 +21,8 @@ class CRM_Core_Reference_Dynamic extends CRM_Core_Reference_Basic {
    *
    * @param CRM_Core_DAO $targetDao
    *   The instance for which we want references.
-   * @return CRM_Core_DAO a query-handle (like the result of CRM_Core_DAO::executeQuery)
+   * @return CRM_Core_DAO
+   *   a query-handle (like the result of CRM_Core_DAO::executeQuery)
    */
   public function findReferences($targetDao) {
     $refColumn = $this->getReferenceKey();
index 8c02b4e943a9f8ddcbc2354eae2f76c2c8bd3590..371981a3a52c47e1b79e356ba0176af140b16370 100644 (file)
@@ -32,8 +32,8 @@ interface CRM_Core_Reference_Interface {
    *   The instance for which we want references.
    * @return array
    *   a record describing the reference; must include the keys:
-   *  - 'type': string (not necessarily unique)
-   *  - 'count': int
+   *   - 'type': string (not necessarily unique)
+   *   - 'count': int
    */
   public function getReferenceCount($targetDao);
 }
index 457d4cac3100ab4843ba01e2407bdaf292034b9e..3d29005437fb862d43abb860d5408ae40221d64c 100644 (file)
@@ -392,7 +392,7 @@ class CRM_Core_Selector_Controller {
    * @param CRM_Core_Form $form
    *
    * @return array
-   *   of rows
+   *   Array of rows
    */
   public function getRows($form) {
     if ($form->_output == self::EXPORT || $form->_output == self::SCREEN) {
index d2b48de03e5b88d7f6b011f62a45158f06b096d8..2f6746a5bcd2a6ecc3feebb1152096301307f234 100644 (file)
@@ -262,9 +262,9 @@ class CRM_Core_Session {
    *
    *
    * @param string $name
-   *   name of the variable.
+   *   name of the variable.
    * @param string $prefix
-   *   adds another level of scope to the session.
+   *   adds another level of scope to the session.
    *
    * @return mixed
    */
@@ -327,9 +327,9 @@ class CRM_Core_Session {
    *
    *
    * @param string $name
-   *   name of the timer.
+   *   name of the timer.
    * @param int $expire
-   *   expiry time (in seconds).
+   *   expiry time (in seconds).
    *
    * @return mixed
    */
index d871b37d17784e523e3970f7f9bc5c7291a809de..8ef43c03190dfc2b21e7019ded899a6f5f8d78a9 100644 (file)
@@ -9,7 +9,7 @@
  *   Must define 'name'.
  * @param string $content
  *   Default content.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @param $repeat
index 91fac036e9f609686e915f5570a98fe446e0540f..66bb8bcb4fdac8098422820dd4d87ae1d74c588a 100644 (file)
@@ -19,7 +19,7 @@
  *   Must define 'name'.
  * @param string $content
  *   Default content.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @param $repeat
index 851e724b9425901df2e8a46b211301afc76f74e1..3f1f21ebb0e0b5d5be6db35aa63514e5d3a69646 100644 (file)
@@ -45,7 +45,7 @@
  *   Template call's parameters.
  * @param string $text
  *   {edit} block contents from the template.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index d228479aee90972dea40e80e8472d56b39cc8bc2..226b9e17d1c9abe61d84e382833156276383bb81 100644 (file)
@@ -41,7 +41,7 @@
  *   Template call's parameters.
  * @param string $text
  *   {ts} block contents from the template.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index 8e0bed30bc9062769a48e1390827a49c1b7b8ea5..293c9763c9b6151091f0b888d357ec0d18505ca3 100644 (file)
@@ -42,7 +42,7 @@
  *   Template call's parameters.
  * @param string $text
  *   {ts} block contents from the template.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index 1092629b189fb9960e992de06f2ab21ed0da85f2..d9fa5ab94e2cce99b5a256e64ec0c3367ab1fb9f 100644 (file)
@@ -43,7 +43,7 @@
  *   Template call's parameters.
  * @param string $text
  *   {serialize} block contents from the template.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index 092363eda2e6376bb95868b8fc755afe103adf82..fdea800b1f003c2799c6993ca69fab75b83deae1 100644 (file)
@@ -44,7 +44,7 @@
  *   Template call's parameters.
  * @param string $text
  *   {ts} block contents from the template.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index 07b2cdaf95ede76bbf0fbda348fb6273c931c80f..5493b021ee6b7af5b7f47dd7d54a30c85082acf5 100644 (file)
 /**
  * Dynamically construct a link based on an entity-type and entity-id.
  *
- * @param $params
- *   Array with keys:.
- *  - table: string
- *  - id: int
- *  - action: string, 'VIEW' or 'UPDATE' [default: VIEW]
- *  - title: string [optionally override default title]
- * @param $smarty
+ * @param array $params
+ *   Array with keys:
+ *   - table: string
+ *   - id: int
+ *   - action: string, 'VIEW' or 'UPDATE' [default: VIEW]
+ *   - title: string [optionally override default title]
+ * @param CRM_Core_Smarty $smarty
  *
  * @return string
  */
index 47d2e40a56b26e94e7b62881af475d82219ddd69..9ce692164c2e8c3acada38093b926a3471c63d08 100644 (file)
@@ -38,7 +38,7 @@
  *
  * @param string $params
  *   Params of the {crmKey} call, with the â€˜name’ key holding the name of the key.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index b5bfba1315bd8666c2ec1f1f5065c4a4569beb10..a9b7354e399cd8360a7eef23423ad69e9087d1c5 100644 (file)
@@ -38,7 +38,7 @@
  *
  * @param array $params
  *   - is_default: bool, true if this is normal/default instance of the menu (which may be subject to CIVICRM_DISABLE_DEFAULT_MENU)
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
index dfeae3845728841ceeaecd67da1db0d90eb221c7..d18397f5dc5f45e788e38a80db176fb3a706674e 100644 (file)
 /**
  * Determine the URL of a resource file
  *
- * @param $params
- *   Array with keys:.
- *  - ext: string, extension name. see CRM_Core_Resources::getUrl
- *  - file: string, relative file path. see CRM_Core_Resources::getUrl
- * @param $smarty
+ * @param array $params
+ *   Array with keys:
+ *   - ext: string, extension name. see CRM_Core_Resources::getUrl
+ *   - file: string, relative file path. see CRM_Core_Resources::getUrl
+ * @param CRM_Core_Smarty $smarty
  *
  * @return string
  */
index 952b0b21d540d7ce7e81573039f42af6a23146a9..683b42929f344e8b6282e850f2febbd3b9f8a235 100644 (file)
 /**
  * Add a Javascript file to a specific part of the page
  *
- * @param $params
- *   Array with keys:.
- *  - ext: string, extension name. see CRM_Core_Resources::addScriptFile
- *  - file: string, relative file path. see CRM_Core_Resources::addScriptFile
- *  - url: string. see CRM_Core_Resources::addScriptURL
- *  - weight: int; default: CRM_Core_Resources::DEFAULT_WEIGHT (0)
- *  - region: string; default: CRM_Core_Resources::DEFAULT_REGION ('html-header')
- * @param $smarty
+ * @param array $params
+ *   Array with keys:
+ *   - ext: string, extension name. see CRM_Core_Resources::addScriptFile
+ *   - file: string, relative file path. see CRM_Core_Resources::addScriptFile
+ *   - url: string. see CRM_Core_Resources::addScriptURL
+ *   - weight: int; default: CRM_Core_Resources::DEFAULT_WEIGHT (0)
+ *   - region: string; default: CRM_Core_Resources::DEFAULT_REGION ('html-header')
+ * @param CRM_Core_Smarty $smarty
  *
  * @throws Exception
  */
index 7cd7e5e7a4eafb428bbd49a886ee520099c6309f..80e38bc691fec915689ced1b58a404a47560d937 100644 (file)
@@ -41,8 +41,8 @@
  * var urlParams = ts={$mySig.ts}&extra={$mySig.extra}&sig={$mySig.signature}
  * {endcode}
  *
- * @param $params
- *   Array with keys:.
+ * @param array $params
+ *   Array with keys:
  *   - var: string, a smarty variable to generate
  *   - ts: int, the current time (if omitted, autogenerated)
  *   - any other vars are put into the signature (sorted)
index 4a98660b677d2be7699a15146c20f84ac6f6782c..a71b9e5a226fcd5a2896e0fe2371111d05b05354 100644 (file)
 /**
  * Add a stylesheet <LINK> to a specific part of the page
  *
- * @param $params
- *   Array with keys:.
- *  - ext: string, extension name. see CRM_Core_Resources::addStyleFile
- *  - file: string, relative file path. see CRM_Core_Resources::addStyleFile
- *  - url: string. see CRM_Core_Resources::addStyleURL
- *  - weight: int; default: CRM_Core_Resources::DEFAULT_WEIGHT (0)
- *  - region: string; default: CRM_Core_Resources::DEFAULT_REGION ('html-header')
- * @param $smarty
+ * @param array $params
+ *   Array with keys:
+ *   - ext: string, extension name. see CRM_Core_Resources::addStyleFile
+ *   - file: string, relative file path. see CRM_Core_Resources::addStyleFile
+ *   - url: string. see CRM_Core_Resources::addStyleURL
+ *   - weight: int; default: CRM_Core_Resources::DEFAULT_WEIGHT (0)
+ *   - region: string; default: CRM_Core_Resources::DEFAULT_REGION ('html-header')
+ * @param CRM_Core_Smarty $smarty
  *
  * @throws Exception
  */
index 84d9bbc0509366f244b776cdd8f972477ddafc9a..4b0d785be52b7bf24d89166f53cd3e5549fa9575 100644 (file)
@@ -39,7 +39,7 @@
  *
  * @param array $params
  *   The function params.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   Reference to the smarty object.
  *
  * @return string
index fce651c2369c4657131db5f936a1320bb7dbf756..45a7473c4d9ff3e1944cc08337ea4ccde664f8c6 100644 (file)
@@ -38,7 +38,7 @@
  *
  * @param array $params
  *   The function params.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   Reference to the smarty object.
  *
  * @return string
index 2e484bc2eafd420e42e498bf77cbc4c91599a2f8..4d0f78af953ba80360ad992d61c9e359f13fcaff 100644 (file)
@@ -47,7 +47,7 @@
  *
  * @param array $params
  *   Template call's parameters.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return NULL
index 9d1e03fdc32a7e2ef91dd5eacc60484586466bfb..edd9f5efe8fb73ca1fced761b8562d6e1fce9763 100644 (file)
@@ -28,7 +28,7 @@
 /**
  * CiviCRM's Smarty report section totals plugin
  *
- * Prints the correct report section total based on the given key and order in the section heirarchy
+ * Prints the correct report section total based on the given key and order in the section hierarchy
  *
  * @package CRM
  * @author Allen Shaw <allen@nswebsolutions.com>
@@ -37,7 +37,7 @@
  */
 
 /**
- * Smarty block function for printintg the correct report section total
+ * Smarty block function for printing the correct report section total
  *
  * Smarty param:  string $key     value of the current section column
  * Smarty param:  int    $depth   the depth of the current section
@@ -45,7 +45,7 @@
  *
  * @param array $params
  *   Template call's parameters.
- * @param object $smarty
+ * @param CRM_Core_Smarty $smarty
  *   The Smarty object.
  *
  * @return string
  */
 function smarty_function_sectionTotal($params, &$smarty) {
   /* section totals are stored in template variable 'sectionTotals',
-     * which is a two-dimensional array keyed to a string which is a delimited
-     * concatenation (using CRM_Core_DAO::VALUE_SEPARATOR) of ordered permutations
-     * of section header values, e.g.,
-     * 'foo' => 10,
-     * 'foo[VALUE_SEAPARATOR]bar' => 5,
-     * 'foo[VALUE_SEAPARATOR]bar2' => 5
-     * Note: This array is created and assigned to the template in CRM_Report_Form::sectionTotals()
-     */
+   * which is a two-dimensional array keyed to a string which is a delimited
+   * concatenation (using CRM_Core_DAO::VALUE_SEPARATOR) of ordered permutations
+   * of section header values, e.g.,
+   * 'foo' => 10,
+   * 'foo[VALUE_SEAPARATOR]bar' => 5,
+   * 'foo[VALUE_SEAPARATOR]bar2' => 5
+   * Note: This array is created and assigned to the template in CRM_Report_Form::sectionTotals()
+   */
 
   static $sectionValues = array();
 
index 59459c5e4a023e8aeb0e044c5858af51e005de25..701e8c473dc8e12256c4518e3e3930337c347102 100644 (file)
  * Note: This will perform like a dog, but who cares -- at most, we deal with O(100) iterations
  * as part of a background task.
  *
- * @param $params
- *   , array with keys:.
- *  - activity_id: int, required
- *  - target_var: string, optional; name of a variable which will store the first/only target contact; default "target"
- *  - assignee_var: string, optional; name of a variable which will store the first/only assignee contact; default "assignee"
- *  - return: string, optional; comma-separated list of fields to return for each contact
+ * @param array $params
+ *   , Array with keys:
+ *   - activity_id: int, required
+ *   - target_var: string, optional; name of a variable which will store the first/only target contact; default "target"
+ *   - assignee_var: string, optional; name of a variable which will store the first/only assignee contact; default "assignee"
+ *   - return: string, optional; comma-separated list of fields to return for each contact
  *
- * @param $smarty
+ * @param CRM_Core_Smarty $smarty
  *
- * @return empty
+ * @return string
  */
 function smarty_function_simpleActivityContacts($params, &$smarty) {
   if (empty($params['activity_id'])) {
index efa177eaa82f0bf3aaa66ce451940caa1a92a661..0a179776678e22e4eec7944c77c3ec5c50090975 100644 (file)
@@ -40,7 +40,7 @@ function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source, &$
 /**
  * @param string $tpl_name
  * @param $tpl_timestamp
- * @param $smarty_obj
+ * @param CRM_Core_Smarty $smarty_obj
  *
  * @return bool
  */
@@ -51,7 +51,7 @@ function civicrm_smarty_resource_string_get_timestamp($tpl_name, &$tpl_timestamp
 
 /**
  * @param string $tpl_name
- * @param $smarty_obj
+ * @param CRM_Core_Smarty $smarty_obj
  *
  * @return bool
  */
@@ -61,7 +61,7 @@ function civicrm_smarty_resource_string_get_secure($tpl_name, &$smarty_obj) {
 
 /**
  * @param string $tpl_name
- * @param $smarty_obj
+ * @param CRM_Core_Smarty $smarty_obj
  */
 function civicrm_smarty_resource_string_get_trusted($tpl_name, &$smarty_obj) {
 
index ed0886fc1fae4679ed62899f2829e8b97ab34a6d..8b0abce1cb08537d98afdeeb6e5c4ac502c89140 100644 (file)
@@ -223,7 +223,8 @@ class CRM_Core_StateMachine {
    * @param string $name
    *   Name of page.
    *
-   * @return CRM_Core_State state object matching the name
+   * @return CRM_Core_State
+   *   state object matching the name
    */
   public function &getState($name) {
     if (isset($this->_states[$name])) {
index 30e7edef924f82762d51ab19ab53517694a69bbc..133430c4b2fb6b06dbfc61932bc578b4aa9ded48 100644 (file)
@@ -533,7 +533,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
    *   Array of relationship name.
    *
    * @return array
-   *   of relationship name.
+   *   Array of relationship name.
    */
   public static function getFormattedList(&$list) {
     $relName = array();
index b5bf3d615d7f15e7ccf8e94e5b0fa8b7640e2f42..a996ff586a188180e89fb62dcfb754825d011479 100644 (file)
@@ -84,8 +84,8 @@ class CRM_Custom_Import_Parser_Api extends CRM_Custom_Import_Parser {
    *
    * @return boolean
    *   the result of this processing
-   * It is called from both the preview & the import actions
-   * (non-PHPdoc)
+   *   It is called from both the preview & the import actions
+   *
    * @see CRM_Custom_Import_Parser_BaseClass::summary()
    */
   public function summary(&$values) {
index 3d0da9030f55310ea3ed40d403a8a9b28dfa6129..ac198e9cde51c8941b106f7382c1d5b4a60fc41b 100644 (file)
@@ -1610,7 +1610,7 @@ INNER JOIN  civicrm_membership membership2 ON membership1.membership_type_id = m
 
   /**
    * @return array
-   *   of field names which will be compared, so everything except ID.
+   *   Array of field names which will be compared, so everything except ID.
    */
   public static function getContactFields() {
     $contactFields = CRM_Contact_DAO_Contact::fields();
index 48d98b49318bb5bc749d6fdf9cf063d15f3b5433..a254a9f34249413a89fe100e3234cf10a4698ed6 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Event_BAO_Event extends CRM_Event_DAO_Event {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Event_BAO_ManageEvent object
+   * @return CRM_Event_BAO_ManageEvent
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -2159,7 +2159,7 @@ LEFT  JOIN  civicrm_price_field_value value ON ( value.id = lineItem.price_field
    *   Event template id.
    *
    * @return array
-   *   of custom data defaults.
+   *   Array of custom data defaults.
    */
   public static function getTemplateDefaultValues($templateId) {
     $defaults = array();
index 76c084bc570400b291d71f0068823838628c348a..0a7c0f149a0ffe874184244f7e35fe38abe63155 100644 (file)
@@ -83,7 +83,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Event_BAO_Participant object
+   * @return CRM_Event_BAO_Participant
    * @static
    */
   public static function &add(&$params) {
@@ -189,7 +189,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Event_BAO_Participant object
+   * @return CRM_Event_BAO_Participant
    * @static
    */
   public static function create(&$params) {
@@ -942,9 +942,9 @@ WHERE  civicrm_participant.id = {$participantId}
    *   (reference ) an assoc array of name/value pairs.
    * @param array $input
    *   An assosiative array of name /value pairs.
-   * from other function
+   *   from other function
    *
-   * @return CRM_Contribute_BAO_Contribution object
+   * @return CRM_Contribute_BAO_Contribution
    * @static
    */
   public static function checkDuplicate($input, &$duplicates) {
@@ -1798,7 +1798,7 @@ WHERE    civicrm_participant.contact_id = {$contactID} AND
    *   An array of additional participant ids.
    *
    * @return array
-   *   of Urls.
+   *   Array of Urls.
    * @static
    */
   public static function getAdditionalParticipantUrl($participantIds) {
@@ -2201,9 +2201,9 @@ WHERE (li.entity_table = 'civicrm_participant' AND li.entity_id = {$participantI
    *
    * @param string $fieldName
    * @param string $context
-   *   @see CRM_Core_DAO::buildOptionsContext.
+   *   @see CRM_Core_DAO::buildOptionsContext.
    * @param array $props
-   *   whatever is known about this dao object.
+   *   whatever is known about this dao object.
    *
    * @return Array|bool
    */
index 86a0bc70c612865523ebc60d4ae0443778ba7fdf..f55382e811b87180a7d81a8f7598444acbfc24b9 100644 (file)
@@ -351,7 +351,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
    *   Event template id.
    *
    * @return array
-   *   of custom data defaults.
+   *   Array of custom data defaults.
    */
   public function templateCustomDataValues($templateId) {
     $defaults = array();
index b4188553481743c9d5481a27e4ab674ccf154f7e..483780df9122a51baea6fba9372b3ea72871bf7b 100644 (file)
@@ -77,7 +77,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
    * the default values are retrieved from the database
    *
    *
-   * @return None
+   * @return void
    */
   public function setDefaultValues() {
     $defaults = array();
index 9660e63565ce8d1e5e56fa2fd1f71447ea050c54..03379946b83149e55d65739381156c1e848a2d5e 100644 (file)
@@ -202,7 +202,7 @@ class CRM_Event_Form_Task_AddToGroup extends CRM_Event_Form_Task {
    * Process the form after the input has been submitted and validated
    *
    *
-   * @return None
+   * @return void
    */
   public function postProcess() {
     $params = $this->controller->exportValues();
index ad2e89c26ca31c8f24b74871ed137de7095a8a2e..b906f79b0f1fe53099d459083c3795bb2e590bb0 100644 (file)
@@ -177,7 +177,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
    * Return a status-type-keyed array of status classes
    *
    * @return array
-   *   of status classes, keyed by status type
+   *   Array of status classes, keyed by status type
    */
   public static function &participantStatusClass() {
     static $statusClasses = NULL;
@@ -273,7 +273,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
    * @param int $id
    *
    * @return array
-   *   of event id â†’ template title pairs
+   *   Array of event id â†’ template title pairs
    */
   public static function &eventTemplates($id = NULL) {
     if (!self::$eventTemplates) {
index 6b2d0d38acf1ec332493ecaa455ab5e91fb1c6e6..20ab61f778755bc17495dd5c6047d669d7004b57 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_FinancialItem object
+   * @return CRM_Contribute_BAO_FinancialItem
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -188,7 +188,7 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Core_BAO_FinancialTrxn object
+   * @return CRM_Core_BAO_FinancialTrxn
    * @static
    */
   public static function createEntityTrxn($params) {
index 69a6fc7ef088810f8b967aa2ec9c3a2af9dada92..e838ba48d92004c0123d49021bee6c2e319c5207 100644 (file)
@@ -55,7 +55,7 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Contribute_BAO_ContributionType object
+   * @return CRM_Contribute_BAO_ContributionType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 05d30add3cac051146cfe0ad9297d02be8add776..d2ceab977e79278e0666ddc9cc3e8b8b9a42e5a9 100644 (file)
@@ -58,7 +58,7 @@ class CRM_Financial_BAO_FinancialTypeAccount extends CRM_Financial_DAO_EntityFin
    *
    * @param array $allValues
    *
-   * @return CRM_Contribute_BAO_ContributionType object
+   * @return CRM_Contribute_BAO_ContributionType
    * @static
    */
   public static function retrieve(&$params, &$defaults, &$allValues = array()) {
index 2558a784355a60ba53d3a7f9b62090a3f1b5a8e4..d029da7106a8f66cb2a6f6fede7f6795f29db6be 100644 (file)
@@ -101,7 +101,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Financial_DAO_PaymentProcessor object on success, null otherwise
+   * @return CRM_Financial_DAO_PaymentProcessor|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -122,8 +123,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * @param bool $is_active
    *   Value we want to set the is_active field.
    *
-   * @return Object
-   *   DAO object on sucess, null otherwise
+   * @return CRM_Financial_DAO_PaymentProcessor|null
+   *   DAO object on success, null otherwise
    *
    * @static
    */
@@ -136,9 +137,9 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    *
    * @param NULL
    *
-   * @return object
+   * @return CRM_Financial_DAO_PaymentProcessor|null
    *   The default payment processor object on success,
-   *                          null otherwise
+   *   null otherwise
    * @static
    */
   public static function &getDefault() {
@@ -151,7 +152,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
   }
 
   /**
-   * Function  to delete payment processor
+   * Delete payment processor
    *
    * @param int $paymentProcessorID
    *
@@ -242,7 +243,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * Compare 2 payment processors to see which should go first based on is_default
    * (sort function for sortDefaultFirst)
    * @param array $processor1
-   * @param array_type $processor2
+   * @param array $processor2
    * @return number
    */
   public static function defaultComparison($processor1, $processor2) {
@@ -353,12 +354,11 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * arguably this could go on the pseudoconstant class
    *
    * @param array $capabilities
-   * capabilities of processor e.g
-   *  - BackOffice
-   *  - TestMode
-   *  - LiveMode
-   *  - FutureStartDate
-   *  include test processors (we want to phase this out in favour of the testMode Capability)
+   *   capabilities of processor e.g
+   *   - BackOffice
+   *   - TestMode
+   *   - LiveMode
+   *   - FutureStartDate
    *
    * @param array $ids
    *
@@ -417,8 +417,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * @param string $type
    *   Type of payment information to be retrieved.
    *
-   * @return int
-   *   / array / object based on type
+   * @return int|array|object
    * @static
    */
   public static function getProcessorForEntity($entityID, $component = 'contribute', $type = 'id') {
index 59a8690c43deb0becf1e995bc9f3891bdddd3f0e..b4b200cf40e450d92d21f8ad8892a506de7e6cf9 100644 (file)
@@ -54,7 +54,8 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_LocaationType object on success, null otherwise
+   * @return CRM_Core_BAO_LocaationType|null
+   *   object on success, null otherwise
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index e1a7bf2f1313f7a50452c357fa2da7192bc3108e..b9de52db6ef56d22e69f6ac5bd83158529820be5 100644 (file)
@@ -133,12 +133,11 @@ class CRM_Financial_Form_FinancialAccount extends CRM_Contribute_Form {
   /**
    * Global validation rules for the form
    *
-   * @param $values
+   * @param array $values
+   *   posted values of the form
    * @param $files
    * @param $self
    *
-   * @internal param array $fields posted values of the form
-   *
    * @return array
    *   list of errors to be posted back to the form
    * @static
index f1d1e64515fd9ff0563919ee85ce8d8f542794f9..4aa650f3c18156cb8865f406384da1e0b859f5ea 100644 (file)
@@ -232,12 +232,11 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
   /**
    * Global validation rules for the form
    *
-   * @param $values
+   * @param array $values
+   *   posted values of the form
    * @param $files
    * @param $self
    *
-   * @internal param array $fields posted values of the form
-   *
    * @return array
    *   list of errors to be posted back to the form
    * @static
index 9714fd410fb8b605eca97f37051f710fb3f8b26c..1dfac934033bbcf9278f40759c089de9126716c3 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Friend_BAO_Friend object
+   * @return CRM_Friend_BAO_Friend
    * @static
    */
   public static function add(&$params) {
@@ -93,7 +93,7 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Contact_BAO_Contact object
+   * @return CRM_Contact_BAO_Contact
    * @static
    */
   public static function create(&$params) {
@@ -343,7 +343,7 @@ class CRM_Friend_BAO_Friend extends CRM_Friend_DAO_Friend {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Friend_BAO_Friend object
+   * @return CRM_Friend_BAO_Friend
    * @static
    */
   public static function addTellAFriend(&$params) {
index 8049eda709e481a94e1cf023de9e19e7c8dc2c88..ee33e30a07c65bae98908da5b6512dd99b4670cc 100644 (file)
@@ -134,7 +134,7 @@ class CRM_Grant_BAO_Grant extends CRM_Grant_DAO_Grant {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Grant_BAO_ManageGrant object
+   * @return CRM_Grant_BAO_ManageGrant
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 5bcb8fb99d760e16f544a2a6e58dab064cbdc88e..1d00c41023694c7d7a9fda1cab4e54bc5fac2ae8 100644 (file)
@@ -234,9 +234,9 @@ abstract class CRM_Import_Parser {
    * Set and validate field values
    *
    * @param array $elements
-   *   array.
+   *   array.
    * @param $erroneousField
-   *   reference.
+   *   reference.
    *
    * @return int
    */
index 6091bad757314409ced9e3166d5a59a1b431ed56..eb182b8260d8ec8049ca2dad8296af81d4352acd 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Core_BAO_LocaationType object
+   * @return CRM_Core_BAO_LocaationType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -86,7 +86,7 @@ class CRM_Mailing_BAO_Component extends CRM_Mailing_DAO_Component {
    * @param array $ids
    *   (deprecated) the array that holds all the db ids.
    *
-   * @return CRM_Mailing_BAO_Component object
+   * @return CRM_Mailing_BAO_Component
    *
    * @static
    */
index f03282d24c5e4035979537fd1b95f7cf51969c03..5035d67e7acde856d75d8f8d279dff98c1b78372 100644 (file)
@@ -3057,7 +3057,7 @@ AND        m.id = %1
    * @param array $params
    *
    * @return array
-   *   of mailings for a contact
+   *   Array of mailings for a contact
    *
    * @static
    */
index caf86088c3b6eeff5921bb37b4169bc3660ca522..b8492ebccbe4001aa7a6d57b2306d217ae072a52 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Mailing_BAO_MailingAB extends CRM_Mailing_DAO_MailingAB {
    * @params array $params
    *   Form values.
    *
-   * @param $params
+   * @param array $params
    * @param array $ids
    *
    * @return object
index 9bbf11c01db3597dea98ea2e1b345acf1992c588..5b13e1592e4f89934a983f3de9f459d350a809cd 100644 (file)
@@ -47,7 +47,8 @@ class CRM_Mailing_Event_BAO_Queue extends CRM_Mailing_Event_DAO_Queue {
    * @param array $params
    *   Values of the new EventQueue.
    *
-   * @return CRM_Mailing_Event_BAO_Queue   The new EventQueue
+   * @return CRM_Mailing_Event_BAO_Queue
+   *   The new EventQueue
    * @static
    */
   public static function create($params) {
index 1639439bab458db1723e466645ed441f26abd2ce..7bd479d7ad49f8c8cd3a80db26795615f0b60647 100644 (file)
@@ -376,8 +376,8 @@ SELECT     civicrm_email.id as email_id
    *   The list of email.
    * @param int $contactId
    *   Currently used during event registration/contribution.
-   *  Specifically to avoid linking group to wrong duplicate contact
-   *  during event registration.
+   *   Specifically to avoid linking group to wrong duplicate contact
+   *   during event registration.
    * @param string $context
    *
    * @return void
index 9ce358c3a3e8ccedc0453df973349f2a2e6ee5ef..5edbfefe08f53bf596026385314c103ea00796a4 100644 (file)
@@ -69,7 +69,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
    * @param array $ids
    *   The array that holds all the db ids.
    *
-   * @return CRM_Member_BAO_Membership object
+   * @return CRM_Member_BAO_Membership
    * @static
    */
   public static function add(&$params, $ids = array()) {
@@ -238,7 +238,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
    *
    * @throws CRM_Core_Exception
    *
-   * @return CRM_Member_BAO_Membership object
+   * @return CRM_Member_BAO_Membership
    * @static
    */
   public static function create(&$params, &$ids, $skipRedirect = FALSE, $activityType = 'Membership Signup') {
@@ -519,7 +519,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
    *   (reference ) an assoc array to hold the name / value pairs.
    *                        in a hierarchical manner
    *
-   * @return CRM_Member_BAO_Membership object
+   * @return CRM_Member_BAO_Membership
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -558,7 +558,7 @@ class CRM_Member_BAO_Membership extends CRM_Member_DAO_Membership {
    *   Membership id of values to return.
    *
    * @return array
-   *   of key value pairs
+   *   Array of key value pairs
    */
   public static function getStatusANDTypeValues($membershipId) {
     $values = array();
@@ -3073,7 +3073,7 @@ WHERE      civicrm_membership.is_test = 0";
    *   Mode of payment.
    *
    * @return array
-   *   of membership type
+   *   Array of membership type
    * @static
    */
   public static function getContactsCancelledMembership($contactID, $isTest = FALSE) {
index 1bf4317e09ba9c9446d2b385dff888ab041880d3..954e440150eb94bf990707a38c0118425ce8cfee 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Member_BAO_MembershipStatus extends CRM_Member_DAO_MembershipStatus {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Member_BAO_MembershipStatus object
+   * @return CRM_Member_BAO_MembershipStatus
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -91,7 +91,7 @@ class CRM_Member_BAO_MembershipStatus extends CRM_Member_DAO_MembershipStatus {
    *   (reference ) an assoc array of name/value pairs.
    *
    * @throws Exception
-   * @return CRM_Member_BAO_MembershipStatus object
+   * @return CRM_Member_BAO_MembershipStatus
    * @static
    */
   public static function create($params) {
index 110a6e91d0a989355cda681eead098422714643b..0ffc195fa1222cf6fcfd4ba643ce63ece0114113 100644 (file)
@@ -56,7 +56,7 @@ class CRM_Member_BAO_MembershipType extends CRM_Member_DAO_MembershipType {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Member_BAO_MembershipType object
+   * @return CRM_Member_BAO_MembershipType
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 4726b23a79f37c8825491620554477860a602779..b1b55d70016fd096a1160f48f1d750e79bfbb3a5 100644 (file)
@@ -61,7 +61,7 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Pledge_BAO_Pledge object
+   * @return CRM_Pledge_BAO_Pledge
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -148,7 +148,7 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Pledge_BAO_Pledge object
+   * @return CRM_Pledge_BAO_Pledge
    * @static
    */
   public static function &create(&$params) {
@@ -1093,7 +1093,7 @@ SELECT  pledge.contact_id              as contact_id,
    *
    * @param int $pledgeID
    * @return array
-   *   of int (civicrm_pledge_payment.id)
+   *   Array of int (civicrm_pledge_payment.id)
    */
   public static function findCancelablePayments($pledgeID) {
     $statuses = array_flip(CRM_Contribute_PseudoConstant::contributionStatus());
index 0dacaee5a1aec7c0b7b862f609fdd25fb0a85023..ba801fb8a70f9f46dbf164be9fb48c57e1adf055 100644 (file)
@@ -53,7 +53,7 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Pledge_BAO_PledgeBlock object
+   * @return CRM_Pledge_BAO_PledgeBlock
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -72,7 +72,7 @@ class CRM_Pledge_BAO_PledgeBlock extends CRM_Pledge_DAO_PledgeBlock {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Pledge_BAO_PledgeBlock object
+   * @return CRM_Pledge_BAO_PledgeBlock
    * @static
    */
   public static function &create(&$params) {
index 43b3ef893bf7a065393d9aacf68d4c31d24c6ec4..b6239cb8f481b1ad174efa248ce069f10ddfdeb6 100644 (file)
@@ -213,7 +213,7 @@ WHERE     pledge_id = %1
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Pledge_BAO_PledgePayment object
+   * @return CRM_Pledge_BAO_PledgePayment
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 011ac7e70f1a79f523e5dcaa7c5cc5c969fdf2e4..b1078fac7ac74bb9ccb37f8a1d053a79f41599cb 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Price_DAO_LineItem object
+   * @return CRM_Price_DAO_LineItem
    * @static
    */
   public static function create(&$params) {
@@ -95,7 +95,7 @@ class CRM_Price_BAO_LineItem extends CRM_Price_DAO_LineItem {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Price_BAO_LineItem object
+   * @return CRM_Price_BAO_LineItem
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -149,11 +149,11 @@ AND li.entity_id = {$entityId}
    *
    * @param string $overrideWhereClause
    *   E.g "WHERE contribution id = 7 " per the getLineItemsByContributionID wrapper.
-   * this function precedes the convenience of the contribution id but since it does quite a bit more than just a db retrieval we need to be able to use it even
-   * when we don't want it's entity-id magix
+   *   this function precedes the convenience of the contribution id but since it does quite a bit more than just a db retrieval we need to be able to use it even
+   *   when we don't want it's entity-id magix
    *
    * @return array
-   *   of line items
+   *   Array of line items
    */
   public static function getLineItems($entityId, $entity = 'participant', $isQuick = NULL, $isQtyZero = TRUE, $relatedEntity = FALSE, $overrideWhereClause = '') {
     $whereClause = $fromClause = NULL;
@@ -273,7 +273,7 @@ AND li.entity_id = {$entityId}
    *                          to the price set used for particular event
    * @param array $values
    *   Reference to the values array(.
-   * this is
+   *   this is
    *                          lineItem array)
    *
    * @return void
index cf92e3d4cfd8539503724f187b95229b052e1500..a0fee579788ca32510b6764009baa62ee67e8e7c 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Price_BAO_PriceField object
+   * @return CRM_Price_BAO_PriceField
    * @static
    */
   public static function add(&$params) {
@@ -75,7 +75,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Price_DAO_PriceField object
+   * @return CRM_Price_DAO_PriceField
    * @static
    */
   public static function create(&$params) {
@@ -177,7 +177,7 @@ class CRM_Price_BAO_PriceField extends CRM_Price_DAO_PriceField {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Price_DAO_PriceField object
+   * @return CRM_Price_DAO_PriceField
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 3acc7f2f28ebd9993944f687a04a8bedfe59098c..ee92370a025e417995e1d198965c4a9aa6cdc8b3 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Price_BAO_PriceFieldValue extends CRM_Price_DAO_PriceFieldValue {
    *
    * @param $ids
    *
-   * @return CRM_Price_DAO_PriceFieldValue object
+   * @return CRM_Price_DAO_PriceFieldValue
    * @static
    */
   public static function add(&$params, $ids = array()) {
@@ -76,7 +76,7 @@ class CRM_Price_BAO_PriceFieldValue extends CRM_Price_DAO_PriceFieldValue {
    *
    * @param $ids
    *
-   * @return CRM_Price_DAO_PriceFieldValue object
+   * @return CRM_Price_DAO_PriceFieldValue
    * @static
    */
   public static function create(&$params, $ids = array()) {
@@ -133,7 +133,7 @@ class CRM_Price_BAO_PriceFieldValue extends CRM_Price_DAO_PriceFieldValue {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Price_DAO_PriceFieldValue object
+   * @return CRM_Price_DAO_PriceFieldValue
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 40e5bb9f028454ef1739bfb69208035faa33266c..166355e3db5c032e341910d20d2a9a64e1661c78 100644 (file)
@@ -60,7 +60,7 @@ class CRM_Price_BAO_PriceSet extends CRM_Price_DAO_PriceSet {
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Price_DAO_PriceSet object
+   * @return CRM_Price_DAO_PriceSet
    * @static
    */
   public static function create(&$params) {
@@ -86,7 +86,7 @@ class CRM_Price_BAO_PriceSet extends CRM_Price_DAO_PriceSet {
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Price_DAO_PriceSet object
+   * @return CRM_Price_DAO_PriceSet
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -287,7 +287,7 @@ WHERE     ct.id = cp.financial_type_id AND
    *
    * @return boolean
    *   false if fields exist for this set, true if the
-   * set could be deleted
+   *   set could be deleted
    *
    * @static
    */
@@ -1092,7 +1092,7 @@ WHERE  id = %1";
    *   Price Set id.
    *
    * @return array
-   *   of the field ids
+   *   Array of the field ids
    *
    * @static
    */
index 8301e91f17f67d1ddaa598931b152c73ce2b52dd..2e538fae60040a5fb8262f8a450e385e12f66e76 100644 (file)
@@ -62,7 +62,7 @@ class CRM_Report_BAO_Hook {
    * Get or build the list of search objects (via hook)
    *
    * @return array
-   *   of CRM_Report_BAO_Hook_Interface objects
+   *   Array of CRM_Report_BAO_Hook_Interface objects
    */
   public function getSearchQueryObjects() {
     if ($this->_queryObjects === NULL) {
index 88ea2377c2e03f89a2e976b967dc01593aae1197..5bc25593eb8a2443e68bdc196038fe2d7da73c99 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Report_BAO_ReportInstance extends CRM_Report_DAO_ReportInstance {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Report_DAO_ReportInstance object
+   * @return CRM_Report_DAO_ReportInstance
    * @static
    */
   public static function add(&$params) {
@@ -128,7 +128,7 @@ class CRM_Report_BAO_ReportInstance extends CRM_Report_DAO_ReportInstance {
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Report_BAO_ReportInstance object
+   * @return CRM_Report_BAO_ReportInstance
    * @static
    */
   public static function &create(&$params) {
index d7c9cf65063df58e6751a63c58a7b3b364753da1..70b027e27f427d4a791092b66255be4ce55bb037 100644 (file)
@@ -3888,8 +3888,8 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
    * Get phone columns to add to array
    *
    * @param array $options
-   *  - prefix Prefix to add to table (in case of more than one instance of the table)
-   *  - prefix_label Label to give columns from this phone table instance
+   *   - prefix Prefix to add to table (in case of more than one instance of the table)
+   *   - prefix_label Label to give columns from this phone table instance
    *
    * @return array
    *   phone columns definition
@@ -3920,8 +3920,8 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
    * Get address columns to add to array
    *
    * @param array $options
-   *  - prefix Prefix to add to table (in case of more than one instance of the table)
-   *  - prefix_label Label to give columns from this address table instance
+   *   - prefix Prefix to add to table (in case of more than one instance of the table)
+   *   - prefix_label Label to give columns from this address table instance
    *
    * @return array
    *   address columns definition
index 10d0c36ac24e0f82d1be0137184a1f7809132189..c38422d8b1cbd27767e0e4de282b4b4a37b6ee38 100644 (file)
@@ -711,8 +711,8 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
    * Get address columns to add to array
    *
    * @param array $options
-   *  - prefix Prefix to add to table (in case of more than one instance of the table)
-   *  - prefix_label Label to give columns from this address table instance
+   *   - prefix Prefix to add to table (in case of more than one instance of the table)
+   *   - prefix_label Label to give columns from this address table instance
    *
    * @return array
    *   address columns definition
index 0d7898140c909f82b9dc8351190fccecfdb776d7..6d304608c7d6dbd3d5d87b9cb25723a67e563c87 100644 (file)
@@ -482,7 +482,8 @@ ALTER TABLE civicrm_dashboard
   /**
    * @param int $startId
    * @param int $endId
-   * @return CRM_Core_DAO columns include "id" and "image_URL"
+   * @return CRM_Core_DAO
+   *   columns include "id" and "image_URL"
    */
   public static function findContactImageUrls($startId, $endId) {
     $sql = "
index 12c22c939d65137071cdb8692feda7006088b4a4..81b6fe621522927e51f5e80568330e8d5c824ff1 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
    * @param array $params
    *   (reference ) an assoc array of name/value pairs.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field
    * @static
    */
   public static function &add(&$params) {
@@ -75,7 +75,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field
    * @static
    */
   public static function create(&$params) {
@@ -163,7 +163,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Field extends CRM_Upgrade_Snapshot_V4p
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Field
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index 3285fe9acb4553d65d1484bea827de95bfbe0db8..9ef15d9ba1a1fc6ce9b1142227c3b5cae1d76b32 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue extends CRM_Upgrade_Snapsho
    *
    * @param $ids
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue
    * @static
    */
   public static function &add(&$params, $ids) {
@@ -76,7 +76,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue extends CRM_Upgrade_Snapsho
    *
    * @param $ids
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue
    * @static
    */
   public static function create(&$params, $ids) {
@@ -120,7 +120,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_FieldValue extends CRM_Upgrade_Snapsho
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_FieldValue
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
index a182e5c74a07d3937846c72df560f9999fce1fdb..1a5c6d6592cc344c4432d8d99e8108ce49a73721 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_LineItem extends CRM_Upgrade_Snapshot_
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_LineItem object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_LineItem
    * @static
    */
   public static function create(&$params) {
@@ -80,7 +80,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_LineItem extends CRM_Upgrade_Snapshot_
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_BAO_LineItem object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_BAO_LineItem
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -105,7 +105,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_LineItem extends CRM_Upgrade_Snapshot_
    * @param null $isQuick
    *
    * @return array
-   *   of line items
+   *   Array of line items
    */
   public static function getLineItems($entityId, $entity = 'participant', $isQuick = NULL) {
     $selectClause = $whereClause = $fromClause = NULL;
@@ -183,7 +183,7 @@ WHERE     %2.id = %1";
    *                          to the price set used for particular event
    * @param array $values
    *   Reference to the values array(.
-   * this is
+   *   this is
    *                          lineItem array)
    *
    * @return void
index fa7a38142ac696b005a5e42c41daac9ec27e6768..c2e3465ac7f0172c98fb315edf87f7c20add3be0 100644 (file)
@@ -52,7 +52,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Set extends CRM_Upgrade_Snapshot_V4p2_
    * @param array $params
    *   (reference) an assoc array of name/value pairs.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set
    * @static
    */
   public static function create(&$params) {
@@ -72,7 +72,7 @@ class CRM_Upgrade_Snapshot_V4p2_Price_BAO_Set extends CRM_Upgrade_Snapshot_V4p2_
    * @param array $defaults
    *   (reference ) an assoc array to hold the flattened values.
    *
-   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set object
+   * @return CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set
    * @static
    */
   public static function retrieve(&$params, &$defaults) {
@@ -259,7 +259,7 @@ WHERE     ct.id = cp.contribution_type_id AND
    *
    * @return boolean
    *   false if fields exist for this set, true if the
-   * set could be deleted
+   *   set could be deleted
    *
    * @static
    */
@@ -911,7 +911,7 @@ WHERE  id = %1";
    * @param int id Price Set id
    *
    * @return array
-   *   of the field ids
+   *   Array of the field ids
    *
    * @static
    */
index 27addc2441053481baf1ed7023ab86024e02c111..b246598894bdfb73ce1528b4a8546958f79a664a 100644 (file)
@@ -115,7 +115,7 @@ class CRM_Utils_Check {
    * plugin status page or the Drupal admin/reports/status path.
    *
    * @return array
-   *   of messages
+   *   Array of messages
    * @link https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_requirements
    */
   public function checkAll() {
index 9875a9ffbd85747731f2c6b1f29f92f2de58db82..bc77749d37d9c9b49fac37e348ec7d70ddead2d8 100644 (file)
@@ -81,7 +81,7 @@ class CRM_Utils_Check_Security {
    * requested directly.
    *
    * @return array
-   *   of messages
+   *   Array of messages
    * @see CRM-14091
    */
   public function checkLogFileIsNotAccessible() {
@@ -130,7 +130,7 @@ class CRM_Utils_Check_Security {
    * to search engines; it only means they can be requested directly.
    *
    * @return array
-   *   of messages
+   *   Array of messages
    * @see CRM-14091
    *
    * @TODO: Test with WordPress, Joomla.
@@ -176,7 +176,7 @@ class CRM_Utils_Check_Security {
    * we'll probably match that).
    *
    * @return array
-   *   of messages
+   *   Array of messages
    * @see CRM-14091
    *
    * @TODO: Test with WordPress, Joomla.
index a189bff9520a56a061f3db585c9ac2025b2f824e..d4ada625681af5c92bbbcaca66b4a095a1c56de0 100644 (file)
@@ -944,7 +944,7 @@ class CRM_Utils_Date {
    *
    * @param $format
    *   Given format ( eg 'M Y', 'Y M' ).
-   * return array of qfMapping and date parts for date format.
+   *   return array of qfMapping and date parts for date format.
    *
    * @return array|null|string
    */
index b127c58956def9733587957965dee4090bc06276..1d9505990f988cbd388fe449de3efd0a5f8bbdbb 100644 (file)
@@ -573,7 +573,7 @@ abstract class CRM_Utils_Hook {
    * @param CRM_Core_DAO $dao
    *   The item for which we want a reference count.
    * @param array $refCounts
-   *   Each item in the array is an array with keys:.
+   *   Each item in the array is an Array with keys:
    *   - name: string, eg "sql:civicrm_email:contact_id"
    *   - type: string, eg "sql"
    *   - count: int, eg "5" if there are 5 email addresses that refer to $dao
@@ -943,7 +943,7 @@ abstract class CRM_Utils_Hook {
    *
    * @param array $params
    *   Array fields include: groupName, from, toName, toEmail, subject, cc, bcc, text, html,
-   * returnPath, replyTo, headers, attachments (array)
+   *   returnPath, replyTo, headers, attachments (array)
    * @param string $context
    *   The context in which the hook is being invoked, eg 'civimail'.
    *
@@ -988,8 +988,8 @@ abstract class CRM_Utils_Hook {
    *   The case ID.
    *
    * @return array
-   *   of data to be displayed, where the key is a unique id to be used for styling (div id's)
-   * and the value is an array with keys 'label' and 'value' specifying label/value pairs
+   *   Array of data to be displayed, where the key is a unique id to be used for styling (div id's)
+   *   and the value is an array with keys 'label' and 'value' specifying label/value pairs
    */
   public static function caseSummary($caseID) {
     return self::singleton()->invoke(1, $caseID,
@@ -1259,9 +1259,8 @@ abstract class CRM_Utils_Hook {
    *                           activity, campaign, case, contact, contribution, event, grant, membership, and pledge
    * @param array &$headers the list of column headers, an associative array with keys: ( name, sort, order )
    * @param array &$rows the list of values, an associate array with fields that are displayed for that component
-   * @param $selector
-   *
-   * @internal param array $seletor the selector object. Allows you access to the context of the search
+   * @param array $selector
+   *   the selector object. Allows you access to the context of the search
    *
    * @return void
    *   modify the header and values object to pass the data u need
@@ -1892,10 +1891,10 @@ abstract class CRM_Utils_Hook {
    * @param CRM_Core_DAO $bao
    * @param array $link
    *   To define the link, add these keys to $link:.
-   *  - title: string
-   *  - path: string
-   *  - query: array
-   *  - url: string (used in lieu of "path"/"query")
+   *   - title: string
+   *   - path: string
+   *   - query: array
+   *   - url: string (used in lieu of "path"/"query")
    *      Note: if making "url" CRM_Utils_System::url(), set $htmlize=false
    * @return mixed
    */
index da5ee49a0be2ab5d9436bfd9a59fa47ce66dfbb6..a74a08525cd4ecf57925ce4f41b5e21e71ede8c4 100644 (file)
@@ -66,7 +66,7 @@ class CRM_Utils_Hook_UnitTests extends CRM_Utils_Hook {
    *   Hook name, e.g civicrm_pre.
    * @param array $callable
    *   Function to call ie array(class, method).
-   *  eg. array($this, mymethod)
+   *   eg. array($this, mymethod)
    */
   public function setHook($hook, $callable) {
     $this->adhocHooks[$hook] = $callable;
index 3183d519b0790875510b16b07040b354d7d1df48..ad6b425d22e0f71717fb74e5817f5727235e8c19 100644 (file)
@@ -41,7 +41,7 @@ class CRM_Utils_JS {
    * @param string $jsCode
    *   Raw Javascript code.
    * @return array
-   *   of translatable strings
+   *   Array of translatable strings
    */
   public static function parseStrings($jsCode) {
     $strings = array();
index 8587f14ff355398f472febd053bc2735b9ddd475..143d79bbc9f35bab1d6e5c635df9ec57afdd3ed5 100644 (file)
@@ -122,7 +122,7 @@ class CRM_Utils_PseudoConstant {
    * This may be inefficient and should generally be avoided.
    *
    * @return array
-   *   of string, constant names
+   *   Array of string, constant names
    */
   public static function findConstants() {
     if (self::$constants === NULL) {
@@ -145,7 +145,7 @@ class CRM_Utils_PseudoConstant {
    * @param $class
    *
    * @return array
-   *   of string, constant names
+   *   Array of string, constant names
    */
   public static function findConstantsByClass($class) {
     $clazz = new ReflectionClass($class);
index 7500f357cffcc3ad87d00e145b29192a0f34dece..c252acecbad28d9bebb9e2b8175312d0723addfa 100644 (file)
@@ -1835,15 +1835,15 @@ class CRM_Utils_System {
    *
    * @param array $crudLinkSpec
    *   With keys:.
-   *  - action: int, CRM_Core_Action::UPDATE or CRM_Core_Action::VIEW [default: VIEW]
-   *  - entity_table: string, eg "civicrm_contact"
-   *  - entity_id: int
+   *   - action: int, CRM_Core_Action::UPDATE or CRM_Core_Action::VIEW [default: VIEW]
+   *   - entity_table: string, eg "civicrm_contact"
+   *   - entity_id: int
    * @return array|NULL
    *   NULL if unavailable, or an array. array has keys:
-   *  - path: string
-   *  - query: array
-   *  - title: string
-   *  - url: string
+   *   - path: string
+   *   - query: array
+   *   - title: string
+   *   - url: string
    */
   public static function createDefaultCrudLink($crudLinkSpec) {
     $crudLinkSpec['action'] = CRM_Utils_Array::value('action', $crudLinkSpec, CRM_Core_Action::VIEW);
index 98cbf5352fdcfd349faf2c4268de35dc919d6c55..32c841ec4c4d109c49d0493e0891c13e8425fe85 100644 (file)
@@ -96,7 +96,7 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base {
    *
    * @return bool
    *   TRUE for internal paths, FALSE for external. The drupal_add_js fn is able to add js more
-   * efficiently if it is known to be in the drupal site
+   *   efficiently if it is known to be in the drupal site
    */
   public function formatResourceUrl(&$url) {
     $internal = FALSE;
index f6f60ab92d3a4ee8dc62f1e395043f310d7eeaf4..77bc831b09be66a9db3951f0aa0f7034cb0ce6bb 100644 (file)
@@ -1310,7 +1310,7 @@ class CRM_Utils_Token {
    *
    * @param array $contactIDs
    *   This should always be array(0) or its not anonymous - left to keep signature same.
-   * as main fn
+   *   as main fn
    * @param string $returnProperties
    * @param bool $skipOnHold
    * @param bool $skipDeceased
index a7213b6337cfa03ac99d8a4c7802a15bf34ca90f..aebc9a9695a30c1a408b38bc0d61512469174e76 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Utils_Weight {
    *   Field => value to be used in the WHERE.
    * @param string $weightField
    *   Field which contains the weight value,.
-   * defaults to 'weight'
+   *   defaults to 'weight'
    *
    * @return bool
    */
@@ -94,7 +94,7 @@ class CRM_Utils_Weight {
    *   Field => value to be used in the WHERE.
    * @param string $weightField
    *   Field which contains the weight value,.
-   * defaults to 'weight'
+   *   defaults to 'weight'
    *
    * @return bool
    */
@@ -131,7 +131,7 @@ class CRM_Utils_Weight {
    *   Field => value to be used in the WHERE.
    * @param string $weightField
    *   Field which contains the weight value,.
-   * defaults to 'weight'
+   *   defaults to 'weight'
    *
    * @return int
    */
@@ -239,7 +239,7 @@ class CRM_Utils_Weight {
    *   Field => value to be used in the WHERE.
    * @param string $weightField
    *   Field which contains the weight value,.
-   * defaults to 'weight'
+   *   defaults to 'weight'
    *
    * @return integer
    */
@@ -262,7 +262,7 @@ class CRM_Utils_Weight {
    *   Field => value to be used in the WHERE.
    * @param string $weightField
    *   Field which contains the weight value,.
-   * defaults to 'weight'
+   *   defaults to 'weight'
    *
    * @return integer
    */
@@ -288,7 +288,8 @@ class CRM_Utils_Weight {
    *
    * @param null $groupBy
    *
-   * @return CRM_Core_DAO objet that holds the results of the query
+   * @return CRM_Core_DAO
+   *   objet that holds the results of the query
    */
   static function &query(
     $queryType,
index 6b25edab3705cc7a222c62161dc3b0d78e3aba2e..d534bc7e2f00380407527567393a46b86644fac0 100644 (file)
@@ -67,7 +67,8 @@ class PHPUnitScanner {
   }
 
   /**
-   * @param array $testClasses
+   * @param array $paths
+   *
    * @return array
    *   each element is an array with keys:
    *   - file: string
index 3cb0da52e4f4af2eb16de95ae841b0984bdf1774..68c95cc4b1996a1b61cd0bd7c81badcde2ee98af 100644 (file)
@@ -85,7 +85,7 @@ class Requirements {
    * @param array $db_config
    *   An array with keys:
    *   - host (with optional port specified eg. localhost:12345)
-   *   = database (name of database to select)
+   *   - database (name of database to select)
    *   - username
    *   - password
    *
index c2f629f8266b1c5089a3951f640bd74f9c3b216a..39e3d7ee9d23e504f31fde62c041108c800857e0 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created acl property values.
+ *   Array of newly created acl property values.
  * @access public
  */
 function civicrm_api3_acl_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_acl_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved acl property values.
+ *   Array of retrieved acl property values.
  * @access public
  */
 function civicrm_api3_acl_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_acl_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_acl_delete($params) {
index b86af8fe07542b3ada36a6b60947397455360e75..4e9d782825b1b81ec1762c7088bbebb80e5b6c0c 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created acl_role property values.
+ *   Array of newly created acl_role property values.
  * @access public
  */
 function civicrm_api3_acl_role_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_acl_role_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved acl_role property values.
+ *   Array of retrieved acl_role property values.
  * @access public
  */
 function civicrm_api3_acl_role_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_acl_role_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_acl_role_delete($params) {
index d37ef931853fc849ba740ba25c702c479ac78d18..c9fbd613eb23de68eaaff09caa951ef8d3cf1172 100644 (file)
@@ -46,7 +46,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created activity contact records.
+ *   Array of newly created activity contact records.
  * @access public
  */
 function civicrm_api3_activity_contact_create($params) {
index d965dda80359b8403973ffc4bd3ed6c105e2269b..b6520d9f83f9b9d2de5255089b3ae58f5f3f7878 100644 (file)
@@ -46,7 +46,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created tag property values.
+ *   Array of newly created tag property values.
  * @access public
  */
 function civicrm_api3_address_create(&$params) {
index 8ff8fba0da6b9bb5679e71f7edbb3207cc526de7..041b99611502b2ec1dea7f7cd5c6229c5ac548af 100644 (file)
@@ -90,7 +90,7 @@ function _civicrm_api3_attachment_create_spec(&$spec) {
  *
  * @param array $params
  * @return array
- *   of newly created file property values.
+ *   Array of newly created file property values.
  * @access public
  * @throws API_Exception validation errors
  */
@@ -190,7 +190,7 @@ function _civicrm_api3_attachment_delete_spec(&$spec) {
 }
 
 /**
- * @param $params
+ * @param array $params
  * @return array
  * @throws API_Exception
  */
index bf4d674a758e83ee9d32c37864f368525c28218c..5165cb90ddd63ba3303bc2f953bbe693ebd6d3dc 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created batch property values.
+ *   Array of newly created batch property values.
  * @access public
  */
 function civicrm_api3_batch_create($params) {
@@ -81,7 +81,7 @@ function _civicrm_api3_batch_create_spec(&$params) {
  * @param array $params
  *
  * @return array
- *   of retrieved batch property values.
+ *   Array of retrieved batch property values.
  * @access public
  */
 function civicrm_api3_batch_get($params) {
@@ -98,7 +98,7 @@ function civicrm_api3_batch_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_batch_delete($params) {
index 351a84862719fc13459a06f612a55e4aaa943e17..4be69dba1c02a2c996d53589aa5a4d38313f1ae5 100644 (file)
@@ -290,7 +290,7 @@ function civicrm_api3_case_activity_create($params) {
 /**
  * @deprecated api notice
  * @return array
- *   of deprecated actions
+ *   Array of deprecated actions
  */
 function _civicrm_api3_case_deprecation() {
   return array('activity_create' => 'Case api "activity_create" action is deprecated. Use the activity api instead.');
index fb619c9d7663283276586a361e9f031b2eb9dd66..00aeb2b1696289ce9cb545cb1e7f908f6c807d3c 100644 (file)
@@ -413,7 +413,7 @@ function _civicrm_api3_contact_check_params(&$params, $dupeCheck = TRUE, $dupeEr
  * @param int $contactID
  *   If present the contact with that ID is updated.
  *
- * @return CRM_Contact_BAO_Contact object
+ * @return CRM_Contact_BAO_Contact
  * @access public
  * @static
  */
@@ -857,7 +857,7 @@ LIMIT    0, {$limit}
 /**
  * @deprecated api notice
  * @return array
- *   of deprecated actions
+ *   Array of deprecated actions
  */
 function _civicrm_api3_contact_deprecation() {
   return array('getquick' => 'The "getquick" action is deprecated in favor of "getlist".');
index 3826f96b0b60ebb07d5c3cf84c74f6b93b5d5f79..8a0923f9eac55b505ad9aaf200b4590369c1d19e 100644 (file)
@@ -209,7 +209,7 @@ function _civicrm_api3_contribution_delete_spec(&$params) {
  *   (reference ) input parameters.
  *
  * @return array
- *   of contributions, if error an array with an error id and error message
+ *   Array of contributions, if error an array with an error id and error message
  * @static void
  * @access public
  * {@getfields Contribution_get}
@@ -270,7 +270,7 @@ function _civicrm_api3_contribution_get_spec(&$params) {
  *
  * @param array $params
  *   Associative array of property name/value.
- * pairs to insert in new contact.
+ *   pairs to insert in new contact.
  * @param array $values
  *   The reformatted properties that we can use internally.
  * '
index 3a73c916d3e89531b27be684c78302de77f57431..9932b0a8f2c5aeaadd17796158196c508221b752 100644 (file)
@@ -42,7 +42,7 @@
  * function after deletion so that the field is available for us (getfields manages date conversion
  * among other things
  *
- * @param $params
+ * @param array $params
  *   Array Associative array of property name/value pairs to create new custom field.
  *
  * @return array
@@ -103,7 +103,7 @@ function _civicrm_api3_custom_field_create_spec(&$params) {
 /**
  * Use this API to delete an existing custom group field.
  *
- * @param $params
+ * @param array $params
  *   Array id of the field to be deleted.
  *
  * @return array
index 23f89ace2e0b14bf5193ba69b31d0e65e302eada..2bee48edfd4bc59a719f10592c6ca4aae6f93942 100644 (file)
@@ -43,7 +43,7 @@
  *
  * @param array $params
  *   An associative array used in construction.
- * retrieval of the object
+ *   retrieval of the object
  * @todo missing get function
  *
  *
@@ -56,7 +56,7 @@
  * See the CRM Data Model for custom_group property definitions
  * $params['class_name'] is a required field, class being extended.
  *
- * @param $params
+ * @param array $params
  *   Array Associative array of property name/value pairs to insert in group.
  * {@getfields CustomGroup_create}
  *
index 3d91e79642b51f1dab95589e4daeb050abcc49ee..7d4bd8e6fe85396e21fe7aab64030be5670abea1 100644 (file)
@@ -33,7 +33,7 @@ function civicrm_api3_custom_search_get($params) {
  * @param array $params
  *
  * @return array
- *   of newly created option_value property values.
+ *   Array of newly created option_value property values.
  * {@getfields OptionValue_create}
  * @access public
  */
index afd2a74dbe6426f757058416243773c7f542f007..cbd236f06c27470e39fd353a301675e39622dc91 100644 (file)
  * @version $Id: CustomField.php 30879 2010-11-22 15:45:55Z shot $
  */
 
-/**
- * Files required for this package
- */
-
 
 /**
  * Sets custom values for an entity.
  *
- *
- * @param $params
+ * @param array $params
  *   Expected keys are in format custom_fieldID:recordID or custom_groupName:fieldName:recordID.
- * for example:
- * // entity ID. You do not need to specify entity type, we figure it out based on the fields you're using
- * 'entity_id' => 123,
- * // (omitting :id) inserts or updates a field in a single-valued group
- * 'custom_6' => 'foo',
- * // custom_24 is checkbox or multiselect, so pass items as an array
- * 'custom_24' => array('bar', 'baz'),
- * // in this case custom_33 is part of a multi-valued group, and we're updating record id 5
- * 'custom_33:5' => value,
- * // inserts new record in multi-valued group
- * 'custom_33:-1' => value,
- * // inserts another new record in multi-valued group
- * 'custom_33:-2' => value,
- * // you can use group_name:field_name instead of ID
- * 'custom_some_group:my_field => 'myinfo',
- * // updates record ID 8 in my_other_field in multi-valued some_big_group
- * 'custom_some_big_group:my_other_field:8 => 'myinfo',
+ *
+ * @example
+ *   // entity ID. You do not need to specify entity type, we figure it out based on the fields you're using
+ *   'entity_id' => 123,
+ *   // (omitting :id) inserts or updates a field in a single-valued group
+ *   'custom_6' => 'foo',
+ *   // custom_24 is checkbox or multiselect, so pass items as an array
+ *   'custom_24' => array('bar', 'baz'),
+ *   // in this case custom_33 is part of a multi-valued group, and we're updating record id 5
+ *   'custom_33:5' => value,
+ *   // inserts new record in multi-valued group
+ *   'custom_33:-1' => value,
+ *   // inserts another new record in multi-valued group
+ *   'custom_33:-2' => value,
+ *   // you can use group_name:field_name instead of ID
+ *   'custom_some_group:my_field => 'myinfo',
+ *   // updates record ID 8 in my_other_field in multi-valued some_big_group
+ *   'custom_some_big_group:my_other_field:8 => 'myinfo',
  *
  *
  * @throws Exception
- * @return array('values' => TRUE) or array('is_error' => 1, 'error_message' => 'what went wrong')
+ * @return array
+ *   ['values' => TRUE] or ['is_error' => 1, 'error_message' => 'what went wrong']
  *
  * @access public
  */
@@ -129,14 +126,14 @@ function _civicrm_api3_custom_value_create_spec(&$params) {
 /**
  * Use this API to get existing custom values for an entity.
  *
- * @param $params
+ * @param array $params
  *   Array specifying the entity_id.
- * Optionally include entity_type param, i.e. 'entity_type' => 'Activity'
- * If no entity_type is supplied, it will be determined based on the fields you request.
- * If no entity_type is supplied and no fields are specified, 'Contact' will be assumed.
- * Optionally include the desired custom data to be fetched (or else all custom data for this entity will be returned)
- * Example: 'entity_id' => 123, 'return.custom_6' => 1, 'return.custom_33' => 1
- * If you do not know the ID, you may use group name : field name, for example 'return.foo_stuff:my_field' => 1
+ *   Optionally include entity_type param, i.e. 'entity_type' => 'Activity'
+ *   If no entity_type is supplied, it will be determined based on the fields you request.
+ *   If no entity_type is supplied and no fields are specified, 'Contact' will be assumed.
+ *   Optionally include the desired custom data to be fetched (or else all custom data for this entity will be returned)
+ *   Example: 'entity_id' => 123, 'return.custom_6' => 1, 'return.custom_33' => 1
+ *   If you do not know the ID, you may use group name : field name, for example 'return.foo_stuff:my_field' => 1
  *
  * @throws API_Exception
  * @return array
index cfc64b59942ab2f812c440040242685af4f34540..1346b66aa09c058ed7c1dfa12ac0781da5f00bd4 100644 (file)
@@ -4,7 +4,7 @@
  * @deprecated api notice
  * @param array entities
  * @return array
- *   of deprecated api entities
+ *   Array of deprecated api entities
  */
 function _civicrm_api3_entity_deprecation($entities) {
   $deprecated = array();
index 80059928c96feef5321568cf6c5d7bcdbe3e847a..3c536acb2e42df2cfa6ece56ed46ffed73802388 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Create a Event
  *
@@ -49,7 +45,7 @@
  *
  * @param array $params
  *   Input parameters.
- * Allowed @params array keys are:
+ *   Allowed @params array keys are:
  * {@getfields event_create}
  *
  * @return array
@@ -105,8 +101,8 @@ function _civicrm_api3_event_create_legacy_support_42(&$params) {
  *   An associative array of name/value property values of civicrm_event.
  * {@getfields event_get}
  *
- * @return Array
- *   of all found event property values.
+ * @return array
+ *   Array of all found event property values.
  * @access public
  *
  */
index 7415dab7dab4a06493ef0df37154ebb466aacd91..3d598254536c551698bab6a5f996d4a1b6758c6a 100644 (file)
@@ -307,7 +307,7 @@ function civicrm_api3_extension_get($params) {
  * @param array $params
  *   API request params with 'key' or 'keys'.
  * @return array
- *   of extension keys
+ *   Array of extension keys
  * @throws API_Exception
  */
 function _civicrm_api3_getKeys($params) {
index 992b6ab92cad4d1ef910422fec95159263c5b48a..7230bf9182e3b13e8111904ee0016bd3a1c12a57 100644 (file)
@@ -49,7 +49,7 @@
  *   An associative array of name/value property values of civicrm_file.
  *
  * @return array
- *   of newly created file property values.
+ *   Array of newly created file property values.
  * @access public
  */
 function civicrm_api3_file_create($params) {
@@ -86,8 +86,8 @@ function civicrm_api3_file_create($params) {
  * @param array $params
  *   An associative array of name/value property values of civicrm_file.
  *
- * @return Array
- *   of all found file object property values.
+ * @return array
+ *   Array of all found file object property values.
  * @access public
  */
 function civicrm_api3_file_get($params) {
@@ -105,7 +105,7 @@ function civicrm_api3_file_get($params) {
  *   An array of name/value property values of civicrm_file.
  *
  * @return array
- *   of updated file object property values
+ *   Array of updated file object property values
  * @access public
  */
 function civicrm_api3_file_update($params) {
index 217b5a73b03c24c35c17dca159143d7067bc9411..0b21ea27cfa8fb8e6931a619f2eb3b899c44c2fa 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created financial_account property values.
+ *   Array of newly created financial_account property values.
  * @access public
  */
 function civicrm_api3_financial_account_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_financial_account_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved financial_account property values.
+ *   Array of retrieved financial_account property values.
  * @access public
  */
 function civicrm_api3_financial_account_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_financial_account_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_financial_account_delete($params) {
index 77f42947309b1cc2a9246c8257ce96645b8c6925..212b15691f7fc677e93de3d0c7732d87b08bff44 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created financial_type property values.
+ *   Array of newly created financial_type property values.
  * @access public
  */
 function civicrm_api3_financial_type_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_financial_type_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved financial_type property values.
+ *   Array of retrieved financial_type property values.
  * @access public
  */
 function civicrm_api3_financial_type_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_financial_type_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_financial_type_delete($params) {
index aca852d020f98b113a5f42785ab99c6ad284d9ed..7a6e9986106e27bd4f78e78219f6c6e64d41ff2a 100644 (file)
  *
  * @param array $apiRequest
  *   Api request as an array. Keys are.
- *  - entity: string
- *  - action: string
- *  - version: string
- *  - function: callback (mixed)
- *  - params: array, varies
+ *   - entity: string
+ *   - action: string
+ *   - version: string
+ *   - function: callback (mixed)
+ *   - params: array, varies
  * @return array
  *   API success object
  */
@@ -278,7 +278,7 @@ function civicrm_api3_generic_replace($apiRequest) {
  *   Api request as an array.
  *
  * @return array
- *   of results
+ *   Array of results
  */
 function civicrm_api3_generic_getoptions($apiRequest) {
   // Resolve aliases
index 2a3d1ceaee7d3ea9a6470e7c80f359a64a49c5cb..b9bbff4ba15b7813ef8c0dfcd65ca985f55025b6 100644 (file)
  * and call 'create' to save the revised entity.
  *
  * @param array $apiRequest
- *   Array with keys:.
- *  - entity: string
- *  - action: string
- *  - version: string
- *  - function: callback (mixed)
- *  - params: array, varies
+ *   Array with keys:
+ *   - entity: string
+ *   - action: string
+ *   - version: string
+ *   - function: callback (mixed)
+ *   - params: array, varies
  *
  * @return array|int|mixed
  */
index 5d7e680706c154e6b89d61811c420f55f6ef4e50..fc661239084e226f302b6c20442a5e6c8dab516b 100644 (file)
@@ -247,7 +247,7 @@ function civicrm_api3_group_contact_update_status($params) {
 /**
  * @deprecated api notice
  * @return array
- *   of deprecated actions
+ *   Array of deprecated actions
  */
 function _civicrm_api3_group_contact_deprecation() {
   return array(
index b450dcd17ede6a76506f9232439f586823d72d61..d0b4b420cb535a7a12ca23a6c1e769e6f07d8de5 100644 (file)
@@ -60,7 +60,7 @@ function civicrm_api3_group_organization_get($params) {
  * @example GroupOrganizationCreate.php
  * {@getfields GroupOrganization_create}
  *
- * @param $params
+ * @param array $params
  *   Array.
  *
  * @return array
index 8b03d4fdb253980db478e0cccfda454906109f1a..8d4efa936e0c15c82ff92e5cf5fc7da412204cfc 100644 (file)
@@ -43,7 +43,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created IM property values.
+ *   Array of newly created IM property values.
  * @access public
  */
 function civicrm_api3_im_create($params) {
index 466ca955f461dbcea114292c1c50580e44f63299..135ce9c3532287a662561cdbe531715ac4fbfd60 100644 (file)
@@ -73,7 +73,7 @@ function _civicrm_api3_line_item_create_spec(&$params) {
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
- *  as null, all line_items will be returned (default limit is 25)
+ *   as null, all line_items will be returned (default limit is 25)
  *
  * @return array
  *   Array of matching line_items
@@ -92,7 +92,7 @@ function civicrm_api3_line_item_get($params) {
  *
  * @param array $params
  *   Array containing id of the group.
- *  to be deleted
+ *   to be deleted
  *
  * @return array
  *   API result array
index e357b831b2f411a7bbc55255aeca6fad76e63257..a6f15c6ab7c9fbfdea9b44a7c3a0900696bc9f3f 100644 (file)
@@ -93,7 +93,7 @@ function civicrm_api3_loc_block_create($params) {
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
- *  as null, all loc_blocks will be returned (default limit is 25)
+ *   as null, all loc_blocks will be returned (default limit is 25)
  *
  * @return array
  *   Array of matching loc_blocks
index b551c8c7d326c9095cdc4661ae29d9aa2b4149ee..98198cad43964dc2de67bc311170be267a5bee85 100755 (executable)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Handle a create event.
  *
@@ -242,7 +238,7 @@ function civicrm_api3_mailing_event_confirm($params) {
 /**
  * @deprecated api notice
  * @return array
- *   of deprecated actions
+ *   Array of deprecated actions
  */
 function _civicrm_api3_mailing_deprecation() {
   return array('event_confirm' => 'Mailing api "event_confirm" action is deprecated. Use the mailing_event_confirm api instead.');
index 9a7250fd9fb4946b527739af939e8b4a87a45339..b6a1bfbfcdf0883c31ae0f9748eec3cda9a28040 100755 (executable)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Handle a create mailing ab testing
  *
index 91046a7a3ebc40637fa0901fddf102e3d5af953a..671c390fc7ca877dcad0b81f489adaf6eabd35f4 100644 (file)
@@ -45,7 +45,7 @@
  *
  * @throws API_Exception
  * @return array
- *   of newly created mailing_component property values.
+ *   Array of newly created mailing_component property values.
  * @access public
  */
 function civicrm_api3_mailing_component_create($params) {
@@ -62,7 +62,7 @@ function civicrm_api3_mailing_component_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved mailing_component property values.
+ *   Array of retrieved mailing_component property values.
  * @access public
  */
 function civicrm_api3_mailing_component_get($params) {
@@ -80,7 +80,7 @@ function civicrm_api3_mailing_component_get($params) {
  *
  * @throws API_Exception
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_mailing_component_delete($params) {
index 8aee61694c7d981a958f0e5368068f91ac07cdab..6d0a73ab460307f10f059893dbd21ca0b9001901 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Handle creation of a Mailing Job for a Mailing.
  */
index 37fdc90b29bbf0d2b242998a077f3c0558d19745..0d4e8c89f9c2177031cdc3c7cc3496374cebaaa8 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 
 /**
  * Returns array of Mailing Recipients
index 04452a6773f59d8d9d94d6dc3a448d607b2c4c22..66cc81685696cc534d1c2f22e1bb962ef50245c4 100644 (file)
@@ -42,7 +42,7 @@
  *
  * This API is used for deleting a contact membership
  *
- * @param $params
+ * @param array $params
  *   Array array holding id - Id of the contact membership to be deleted.
  *
  * @return array
@@ -64,7 +64,7 @@ function civicrm_api3_membership_delete($params) {
  *   An associative array of name/value property values of civicrm_membership.
  *
  * @return array
- *   of newly created membership property values.
+ *   Array of newly created membership property values.
  * {@getfields membership_create}
  * @access public
  */
@@ -189,8 +189,8 @@ function _civicrm_api3_membership_get_spec(&$params) {
  *          options affecting the desired results; has legacy support
  *          for just passing the contact_id itself as the argument
  *
- * @return Array
- *   of all found membership property values.
+ * @return array
+ *   Array of all found membership property values.
  * @access public
  * @todo needs some love - basically only a get for a given contact right now
  * {@getfields membership_get}
index f9a9dbe4e9a43740581ab4805fe2ae5395d16113..20b3f62491f72fbb438ea09742935539a01a343d 100644 (file)
@@ -46,7 +46,7 @@
  *   An associative array of name/value property values of civicrm_membership_status.
  *
  * @return array
- *   of newly created membership status property values.
+ *   Array of newly created membership status property values.
  * {@getfields MembershipStatus_create}
  * @access public
  */
@@ -62,8 +62,8 @@ function civicrm_api3_membership_status_create($params) {
  * @param array $params
  *   An associative array of name/value property values of civicrm_membership_status.
  *
- * @return Array
- *   of all found membership status property values.
+ * @return array
+ *   Array of all found membership status property values.
  * {@getfields MembershipStatus_get}
  * @access public
  */
@@ -82,7 +82,7 @@ function civicrm_api3_membership_status_get($params) {
  * @deprecated - should just use create
  *
  * @return array
- *   of updated membership status property values
+ *   Array of updated membership status property values
  * @access public
  */
 function &civicrm_api3_membership_status_update($params) {
index b8ac452fb455f911ceeb254c5326a9f4ece49435..bde3d84fb61a8bc8b625e85e9e0a2ad1aa80f319 100644 (file)
@@ -88,8 +88,8 @@ function _civicrm_api3_membership_type_create_spec(&$params) {
  *   An associative array of name/value property values of civicrm_membership_type.
  * {getfields MembershipType_get}
  *
- * @return Array
- *   of all found membership type property values.
+ * @return array
+ *   Array of all found membership type property values.
  * @access public
  */
 function civicrm_api3_membership_type_get($params) {
index 663c42978582ebd631c19e1590cb0ac8ad2ad769..e8aad30f1e6a02595990f56d671b1b1b315f36f4 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Create Note
  *
@@ -102,7 +98,7 @@ function civicrm_api3_note_delete($params) {
  *
  * @return array
  *   array of properties,
- * if error an array with an error id and error message
+ *   if error an array with an error id and error message
  * {@getfields note_get}
  * @static void
  * @access public
index cc80aecf0fb716b821cc566d239ec37e1258fd23..e78fe76f61fdaeab57d82d251f773457790020f7 100644 (file)
@@ -38,7 +38,7 @@ function civicrm_api3_option_value_get($params) {
  *
  * @throws API_Exception
  * @return array
- *   of newly created option_value property values.
+ *   Array of newly created option_value property values.
  * {@getfields OptionValue_create}
  * @access public
  */
index 14f55c8934b96cf0a61595fdd1db2752cb5b49e8..3620497fd51fa9673643d38ce543829c18fbac1d 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Create an Event Participant
  *
index 76ccc6782fd5fc07cd8ec77926763c989e955142..a925ad080d63da3b8e5272baf68664c834214602 100644 (file)
  *
  */
 
-/**
- * Files required for this package
- */
-
 /**
  * Create a Event Participant Payment
  *
@@ -53,7 +49,7 @@
  * {@example ParticipantPaymentCreate.php 0}
  *
  * @return array
- *   of newly created payment property values.
+ *   Array of newly created payment property values.
  * {@getfields ParticipantPayment_create}
  * @access public
  */
index 4b95d99021dbd2186293ab91fee6861ee1620759..41fc0dfc67c87d66dda6a4c343569d44a64a3b8b 100644 (file)
@@ -43,7 +43,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created PaymentProcessor property values.
+ *   Array of newly created PaymentProcessor property values.
  * @access public
  */
 function civicrm_api3_payment_processor_create($params) {
index 92ff78bd579cc7c2a38d485008ce59ba7c0fbb0d..5b64093b5ec642921e43dbdca309ac45d5b24483 100644 (file)
@@ -46,7 +46,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created phone property values.
+ *   Array of newly created phone property values.
  * @access public
  */
 function civicrm_api3_phone_create($params) {
index b3d0eab946f744e44dc76742272f54bdc03ffdac..89826298d6a22a283a51f26e5baac3469ec14d71 100644 (file)
@@ -45,7 +45,7 @@
  *
  * @throws API_Exception
  * @return array
- *   of newly created premium property values.
+ *   Array of newly created premium property values.
  * @access public
  */
 function civicrm_api3_premium_create($params) {
@@ -62,7 +62,7 @@ function civicrm_api3_premium_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved premium property values.
+ *   Array of retrieved premium property values.
  * @access public
  */
 function civicrm_api3_premium_get($params) {
@@ -80,7 +80,7 @@ function civicrm_api3_premium_get($params) {
  *
  * @throws API_Exception
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_premium_delete($params) {
index d7dd42d2af8cffd8d6f0dc1d3565e1144db9573b..02634f38bfd0d257cf57b38e202f7bb72aa3f20c 100644 (file)
@@ -68,7 +68,7 @@ function _civicrm_api3_price_field_create_spec(&$params) {
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
- *  as null, all price_fields will be returned (default limit is 25)
+ *   as null, all price_fields will be returned (default limit is 25)
  *
  * @return array
  *   Array of matching price_fields
@@ -87,7 +87,7 @@ function civicrm_api3_price_field_get($params) {
  *
  * @param array $params
  *   Array containing id of the group.
- *  to be deleted
+ *   to be deleted
  *
  * @return array
  *   API result array
index f52967e1b31693912fb69e0864b35d8e5c73314f..9c701e3a615bb1f7ff0ae111709aac48bedfc7ee 100644 (file)
@@ -81,7 +81,7 @@ function _civicrm_api3_price_field_value_create_spec(&$params) {
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
- *  as null, all price_field_values will be returned (default limit is 25)
+ *   as null, all price_field_values will be returned (default limit is 25)
  *
  * @return array
  *   Array of matching price_field_values
@@ -100,7 +100,7 @@ function civicrm_api3_price_field_value_get($params) {
  *
  * @param array $params
  *   Array containing id of the group.
- *  to be deleted
+ *   to be deleted
  *
  * @return array
  *   API result array
index 326648cd816982f820a55bbec447e194f7dcdb0c..887f7ad833220bddf5123a43e79d927cb5533487 100644 (file)
@@ -82,7 +82,7 @@ function _civicrm_api3_price_set_create_spec(&$params) {
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
- *  as null, all price_sets will be returned (default limit is 25)
+ *   as null, all price_sets will be returned (default limit is 25)
  *
  * @return array
  *   Array of matching price_sets
@@ -111,7 +111,7 @@ function civicrm_api3_price_set_get($params) {
  *
  * @param array $params
  *   Array containing id of the group.
- *  to be deleted
+ *   to be deleted
  *
  * @return array
  *   API result array
index 1803116fbbeaa096bcd5ab37012bed8400977139..b174e2d0af1c30b93b18ee53f11565344249da52 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created print_label property values.
+ *   Array of newly created print_label property values.
  * @access public
  */
 function civicrm_api3_print_label_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_print_label_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved print_label property values.
+ *   Array of retrieved print_label property values.
  * @access public
  */
 function civicrm_api3_print_label_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_print_label_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_print_label_delete($params) {
index d60658c8cdf70fd5c6374c83781b81f73edb6187..3b8e7a2de2a08fcf29e97a4a4b0f5114b9e6e507 100644 (file)
@@ -45,7 +45,7 @@
  *
  * @throws API_Exception
  * @return array
- *   of newly created product property values.
+ *   Array of newly created product property values.
  * @access public
  */
 function civicrm_api3_product_create($params) {
@@ -62,7 +62,7 @@ function civicrm_api3_product_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved product property values.
+ *   Array of retrieved product property values.
  * @access public
  */
 function civicrm_api3_product_get($params) {
@@ -80,7 +80,7 @@ function civicrm_api3_product_get($params) {
  *
  * @throws API_Exception
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_product_delete($params) {
index d482624ade221b7d3faf5b77e2ad0a7194096226..d9984bc160afa6a90d8a291b6a9dd86cb6bfaadf 100644 (file)
@@ -740,7 +740,7 @@ function _civicrm_api3_profile_appendaliases($values, $entity) {
 /**
  * @deprecated api notice
  * @return array
- *   of deprecated actions
+ *   Array of deprecated actions
  */
 function _civicrm_api3_profile_deprecation() {
   return array(
index e378719777edea5b223559c0522f5914760b6215..5031af7caf3fcb37c6cbb7abd07b4632ee2f507a 100644 (file)
@@ -20,7 +20,7 @@ function civicrm_api3_report_instance_get($params) {
  * @param array $params
  *
  * @return array
- *   of newly created report instance property values.
+ *   Array of newly created report instance property values.
  * @access public
  */
 function civicrm_api3_report_instance_create($params) {
index 0d85291061073143aca85cf96d41284e55a1d7a1..7df1de3359d1af4e3ed1b73266a46543b19aeccc 100644 (file)
@@ -33,7 +33,7 @@ function civicrm_api3_report_template_get($params) {
  * @param array $params
  *
  * @return array
- *   of newly created option_value property values.
+ *   Array of newly created option_value property values.
  * {@getfields OptionValue_create}
  * @access public
  */
index 4b235c1914077ff79a60ce773b556413d8788822..df7bd1ef1e1fb52335f3cef4c92acb009adb5e40 100644 (file)
@@ -44,7 +44,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created sms_provider property values.
+ *   Array of newly created sms_provider property values.
  * @access public
  */
 function civicrm_api3_sms_provider_create($params) {
@@ -61,7 +61,7 @@ function civicrm_api3_sms_provider_create($params) {
  * @param array $params
  *
  * @return array
- *   of retrieved sms_provider property values.
+ *   Array of retrieved sms_provider property values.
  * @access public
  */
 function civicrm_api3_sms_provider_get($params) {
@@ -78,7 +78,7 @@ function civicrm_api3_sms_provider_get($params) {
  * @param array $params
  *
  * @return array
- *   of deleted values.
+ *   Array of deleted values.
  * @access public
  */
 function civicrm_api3_sms_provider_delete($params) {
index c6c2d6c33ea6d73d189f8586824e8b883be7205d..92ef857b7ff605fe52867de2433a68d5fbb90d30 100644 (file)
@@ -45,7 +45,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created tag property values.
+ *   Array of newly created tag property values.
  * {@getfields tag_create}
  * @access public
  */
index c6c53a0aab2b94d1dd300dd8ca31d0051b786efb..696276367a637d6aa1945c9d24122025cbe8076c 100644 (file)
@@ -40,7 +40,7 @@
 /**
  * Defines 'uf field' within a group.
  *
- * @param $params
+ * @param array $params
  *   Array Associative array of property name/value pairs to create new uf field.
  *
  * @throws API_Exception
index 490ac54bf466b3b1bb2468495ca8ae4ec62246d5..ec5a081d84a148e347da1e207cbb543d4f7e7050 100644 (file)
@@ -38,7 +38,7 @@
  */
 
 /**
- * Files required for this package
+ * @param array $params
  */
 function _civicrm_api3_uf_group_create_spec(&$params) {
   $session = CRM_Core_Session::singleton();
@@ -51,7 +51,7 @@ function _civicrm_api3_uf_group_create_spec(&$params) {
 /**
  * Use this API to create a new group. See the CRM Data Model for uf_group property definitions
  *
- * @param $params
+ * @param array $params
  *   Array Associative array of property name/value pairs to insert in group.
  *
  * @return array
index cd209119e68ddb144d14b071006319ffc9d3bbc9..af6a35eed4ab2b17f2c85d1f61c13497a27f4ef6 100644 (file)
@@ -47,7 +47,7 @@
  * @param array $params
  *
  * @return array
- *   of newly created website property values.
+ *   Array of newly created website property values.
  * @access public
  * @todo convert to using basic create - BAO function non-std
  */
index afa1334d162b888c83be19eeb3f612ae3fd36021..a9ed8a65e4bc5ae7e6248090b70ce88ea0420dc0 100644 (file)
@@ -81,7 +81,7 @@ function _civicrm_api3_word_replacement_create_spec(&$params) {
  *
  * @param array $params
  *   Array containing id of the word_replacement.
- *  to be deleted
+ *   to be deleted
  *
  * @return array
  *   api result array
index ef6aac769b081abff8908cdb4ffa714172a2859d..fbb1bf945a318bdcc60c9f4706be81815c79e525 100644 (file)
@@ -286,8 +286,8 @@ function _civicrm_api3_load_DAO($entity) {
  * return the DAO of the function or Entity
  * @param string $name
  *   Either a function of the api (civicrm_{entity}_create or the entity name.
- * return the DAO name to manipulate this function
- * eg. "civicrm_api3_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
+ *   return the DAO name to manipulate this function
+ *   eg. "civicrm_api3_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
  * @return mixed|string
  */
 function _civicrm_api3_get_DAO($name) {
@@ -354,8 +354,8 @@ function _civicrm_api3_get_DAO($name) {
  * return the DAO of the function or Entity
  * @param string $name
  *   Is either a function of the api (civicrm_{entity}_create or the entity name.
- * return the DAO name to manipulate this function
- * eg. "civicrm_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
+ *   return the DAO name to manipulate this function
+ *   eg. "civicrm_contact_create" or "Contact" will return "CRM_Contact_BAO_Contact"
  * @return mixed
  */
 function _civicrm_api3_get_BAO($name) {
@@ -542,7 +542,8 @@ function _civicrm_api3_get_using_query_object($entity, $params, $additional_opti
  * @param array $params
  * @param string $mode
  * @param string $entity
- * @return CRM_Core_DAO query object
+ * @return CRM_Core_DAO
+ *   query object
  */
 function _civicrm_api3_get_query_object($params, $mode, $entity) {
   $options          = _civicrm_api3_get_options_from_params($params, TRUE, $entity, 'get');
@@ -700,7 +701,7 @@ function _civicrm_api3_apply_filters_to_dao($filterField, $filterValue, &$dao) {
  *   Params array as passed into civicrm_api.
  * @param bool $queryObject
  *   Is this supporting a queryobject api (e.g contact) - if so we support more options.
- * for legacy report & return a unique fields array
+ *   for legacy report & return a unique fields array
  *
  * @param string $entity
  * @param string $action
@@ -1996,9 +1997,9 @@ function _civicrm_api3_api_match_pseudoconstant_value(&$value, $options, $fieldN
  * Returns the canonical name of a field
  *
  * @param $entity
- *   api entity name (string should already be standardized - no camelCase).
+ *   api entity name (string should already be standardized - no camelCase).
  * @param $fieldName
- *   any variation of a field's name (name, unique_name, api.alias).
+ *   any variation of a field's name (name, unique_name, api.alias).
  *
  * @return bool|string
  *   fieldName or FALSE if the field does not exist
index 0bcaa1afe1b5079d204d43ec7bc0eb5a2a56b01c..ac956e111210ac0bc74b324c4bdd222d9364132f 100644 (file)
@@ -49,8 +49,8 @@ class test_extension_manager_searchtest extends CRM_Contact_Form_Search_Custom_B
    * Get a list of summary data points
    *
    * @return mixed; NULL or array with keys:
-   *  - summary: string
-   *  - total: numeric
+   *   - summary: string
+   *   - total: numeric
    */
   function summary() {
     return NULL;
index 11cb0b0dd1336559808b2c61f2fbb3a542ceca40..a762f5b3c786dc13272afe0dd0f5dfd6bff8c8ba 100644 (file)
@@ -850,11 +850,10 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
   /**
    * Run a series of cron jobs and make an assertion about email deliveries
    *
-   * @param $cronRuns
-   *
-   * @internal param array $jobSchedule specifying when to run cron and what messages to expect; each item is an array with keys:
-   *  - time: string, e.g. '2012-06-15 21:00:01'
-   *  - recipients: array(array(string)), list of email addresses which should receive messages
+   * @param array $cronRuns
+   *   array specifying when to run cron and what messages to expect; each item is an array with keys:
+   *   - time: string, e.g. '2012-06-15 21:00:01'
+   *   - recipients: array(array(string)), list of email addresses which should receive messages
    */
   public function assertCronRuns($cronRuns) {
     foreach ($cronRuns as $cronRun) {
@@ -865,11 +864,6 @@ class CRM_Core_BAO_ActionScheduleTest extends CiviUnitTestCase {
     }
   }
 
-  ////////////////////////////////
-  ////////////////////////////////
-  ////////////////////////////////
-  ////////////////////////////////
-
   /**
    * @var array(DAO_Name => array(int)) List of items to garbage-collect during tearDown
    */
index dd1efe2ba32574d140bdc2586b27c80c6ffbfba9..e36fb5ae6d6ed5ca3575326a9b148a6bc40a04af 100644 (file)
@@ -9,7 +9,7 @@ class CRM_Core_Permission_GenericTest extends CiviUnitTestCase {
 
   /**
    * @return array
-   *   of CRM_Core_Permission_Base
+   *   Array of CRM_Core_Permission_Base
    */
   public function permissionClasses() {
     $cases = array();
index 53933117b7388a64a8b0c5c01a07dd2b2f5c6754..124d08f0bb6aad6b2ed8f29c1b1cb36820b666d0 100644 (file)
@@ -168,7 +168,7 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
   /**
    * @param $entity
    * @param $action
-   * @param $params
+   * @param array $params
    * @dataProvider okDataProvider
    */
   public function testOk($entity, $action, $params) {
@@ -187,7 +187,7 @@ class DynamicFKAuthorizationTest extends \CiviUnitTestCase {
   /**
    * @param $entity
    * @param $action
-   * @param $params
+   * @param array $params
    * @dataProvider badDataProvider
    */
   public function testBad($entity, $action, $params, $expectedError) {
index b8f95576930c893ed6cbd281045bf0c1007cfb83..e0c46fbca4ea4506f7348033bc5d687bc78ffbab 100644 (file)
@@ -36,7 +36,7 @@ class AuthorizeNet extends PHPUnit_Framework_Testcase {
    * payment processor
    * @param int $id
    *   Id of the PayPal Pro payment processor.
-   * to be deleted
+   *   to be deleted
    * @return boolean
    *   true if payment processor deleted, false otherwise
    */
index 87b40a937f83b8b5dafa0a0cfcc91d1a4ef0d828..c8e8556c0d8a6c021bb1673c3ee1ed35c7a1b248 100644 (file)
@@ -120,13 +120,13 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
 
   /**
    * @param array $cookies
-   *   Each item is an array with keys:.
-   *  - name: string
-   *  - value: string; note that RFC's don't define particular encoding scheme, so
+   *   Each item is an Array with keys:
+   *   - name: string
+   *   - value: string; note that RFC's don't define particular encoding scheme, so
    *    you must pick one yourself and pre-encode; does not allow values with
    *    commas, semicolons, or whitespace
-   *  - path: string; default: '/'
-   *  - max_age: int; default: 1 week (7*24*60*60)
+   *   - path: string; default: '/'
+   *   - max_age: int; default: 1 week (7*24*60*60)
    */
   protected function setCookies($cookies) {
     foreach ($cookies as $cookie) {
@@ -652,7 +652,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
    *   Selector.
    * @param string $contactType
    * @return array
-   *   of contact attributes (id, names, email)
+   *   Array of contact attributes (id, names, email)
    */
   public function createDialogContact($field = 'contact_id', $contactType = 'Individual') {
     $selectId = 's2id_' . $this->getAttribute($field . '@id');
@@ -2105,7 +2105,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase {
    *
    * @param array $customSets
    *   Custom sets i.e entity wise sets want to be created and checked.
-   * e.g    $customSets = array(array('entity' => 'Contribution', 'subEntity' => 'Donation',
+   *   e.g    $customSets = array(array('entity' => 'Contribution', 'subEntity' => 'Donation',
    * 'triggerElement' => $triggerElement))
    * array  $triggerElement:   the element which is responsible for custom group to load
    *
index 12f4e98906eb5f058ea1cebcabecc6d7d56f8501..b57671daee91c6ee3ee50baa3ad7b9efc147fee2 100755 (executable)
@@ -884,7 +884,7 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   }
 
   /**
-   * This function exists to wrap api functions
+   * wrap api functions
    * so we can ensure they succeed & throw exceptions without litterering the test with checks
    *
    * @param string $entity
@@ -929,12 +929,12 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    * @param array $params
    * @param string $type
    *   Per http://php.net/manual/en/function.gettype.php possible types.
-   * - boolean
-   * - integer
-   * - double
-   * - string
-   * - array
-   * - object
+   *   - boolean
+   *   - integer
+   *   - double
+   *   - string
+   *   - array
+   *   - object
    *
    * @return array|int
    */
@@ -964,12 +964,12 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    * @param array $params
    * @param array $checkAgainst
    *   Array to compare result against.
-   * - boolean
-   * - integer
-   * - double
-   * - string
-   * - array
-   * - object
+   *   - boolean
+   *   - integer
+   *   - double
+   *   - string
+   *   - array
+   *   - object
    *
    * @throws Exception
    * @return array|int
@@ -1076,8 +1076,10 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   /**
    * Generic function to create Organisation, to be used in test cases
    *
-   * @param array parameters for civicrm_contact_add api function call
-   * @param int sequence number if creating multiple organizations
+   * @param array $params
+   *   parameters for civicrm_contact_add api function call
+   * @param int $seq
+   *   sequence number if creating multiple organizations
    *
    * @return int
    *   id of Organisation created
@@ -1093,8 +1095,10 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   /**
    * Generic function to create Individual, to be used in test cases
    *
-   * @param array parameters for civicrm_contact_add api function call
-   * @param int sequence number if creating multiple individuals
+   * @param array $params
+   *   parameters for civicrm_contact_add api function call
+   * @param int $seq
+   *   sequence number if creating multiple individuals
    *
    * @return int
    *   id of Individual created
@@ -1107,8 +1111,10 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   /**
    * Generic function to create Household, to be used in test cases
    *
-   * @param array parameters for civicrm_contact_add api function call
-   * @param int sequence number if creating multiple households
+   * @param array $params
+   *   parameters for civicrm_contact_add api function call
+   * @param int $seq
+   *   sequence number if creating multiple households
    *
    * @return int
    *   id of Household created
@@ -1121,8 +1127,10 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   /**
    * Helper function for getting sample contact properties
    *
-   * @param enum contact type: Individual, Organization
-   * @param int sequence number for the values of this type
+   * @param string $contact_type
+   *   enum contact type: Individual, Organization
+   * @param int $seq
+   *   sequence number for the values of this type
    *
    * @return array
    *   properties of sample contact (ie. $params for API call)
@@ -1406,8 +1414,8 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
   /**
    * Create Payment Processor
    *
-   * @return object
-   *   of Payment Processsor
+   * @return CRM_Financial_DAO_PaymentProcessor
+   *   instance of Payment Processsor
    */
   public function processorCreate() {
     $processorParams = array(
@@ -1429,8 +1437,8 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    * Create contribution page
    *
    * @param array $params
-   * @return object
-   *   of contribution page
+   * @return array
+   *   Array of contribution page
    */
   public function contributionPageCreate($params) {
     $this->_pageParams = array(
@@ -1471,6 +1479,8 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    *
    * @param int $tagId
    *   Id of the tag to be deleted.
+   *
+   * @return int
    */
   public function tagDelete($tagId) {
     require_once 'api/api.php';
@@ -1541,11 +1551,11 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    *   Contact_id.
    * @param int $cTypeID
    *   Id of financial type.
-   *
    * @param int $invoiceID
    * @param int $trxnID
    * @param int $paymentInstrumentID
    * @param bool $isFee
+   *
    * @return int
    *   id of created contribution
    */
@@ -1580,9 +1590,9 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    * @param array $params
    * @param int $financialType
    *   Id of financial type.
-   *
    * @param int $invoiceID
    * @param int $trxnID
+   *
    * @return int
    *   id of created contribution
    */
@@ -1764,7 +1774,8 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase {
    * Add a Location Type
    *
    * @param array $params
-   * @return CRM_Core_DAO_LocationType location id of created location
+   * @return CRM_Core_DAO_LocationType
+   *   location id of created location
    */
   public function locationTypeCreate($params = NULL) {
     if ($params === NULL) {
index c97d995bc052a727d77ccb87951b6883e5ad6310..a9b1f81a95104345c5a3065ad3d1e7bf6a46213c 100644 (file)
@@ -44,7 +44,7 @@ class ContributionPage extends PHPUnit_Framework_Testcase {
    *
    * @param int $contributionPageId
    *   Id of the Contribution Page.
-   * to be deleted
+   *   to be deleted
    * @return boolean
    *   true if Contribution Page deleted, false otherwise
    */
index 93558d914f5ee2bd5b8640793a72904faea2aa3e..e1ab14fea406442744ad7fa7e73a078bfce85380 100644 (file)
@@ -9,9 +9,9 @@ class PCPBlock extends PHPUnit_Framework_Testcase {
    *
    * @param int $contributionPageId
    *   Id of the Contribution Page.
-   * to be deleted
+   *   to be deleted
    * @return array
-   *   of created pcp block
+   *   Array of created pcp block
    */
   public function create($contributionPageId) {
     $profileParams = array(
index b150a26eddc810c2747ac696012fbbebf9f4b8b7..1a9ce0a411299c0fd136bc620dbfb16b4c23f84d 100644 (file)
@@ -44,7 +44,7 @@ class PaypalPro extends PHPUnit_Framework_Testcase {
    * payment processor
    * @param int $id
    *   Id of the PayPal Pro payment processor.
-   * to be deleted
+   *   to be deleted
    * @return boolean
    *   true if payment processor deleted, false otherwise
    */
index 9e27ca27bace913fd2e29e255c63f8f47561172b..a24ef13051c739080af21f372f44554e90f6853a 100644 (file)
@@ -75,7 +75,7 @@ class WebTest_Contribute_UpdatePendingContributionTest extends CiviSeleniumTestC
 
   /**
    * @return array
-   *   of contact details
+   *   Array of contact details
    */
   public function _testOfflineContribution() {
     // Create a contact to be used as soft creditor
index edc3642002cc06431b39435caf9539729f554944..11692b6931a77a8882c1fec73c9063b8bc4a2439 100644 (file)
@@ -51,10 +51,10 @@ class api_v3_ContributionPageTest extends CiviUnitTestCase {
 
   /**
    * @var array
-   *  - contribution_page
-   *  - price_set
-   *  - price_field
-   *  - price_field_value
+   *   - contribution_page
+   *   - price_set
+   *   - price_field
+   *   - price_field_value
    */
   protected $_ids = array();