(NFC) Reference classes with correct case
authorBradley Taylor <hello@brad-taylor.co.uk>
Sun, 8 Jan 2023 17:51:51 +0000 (17:51 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sun, 8 Jan 2023 18:04:11 +0000 (18:04 +0000)
CRM/Core/BAO/CustomField.php
CRM/Core/Form.php
CRM/Event/BAO/Event.php
CRM/Event/Import/Parser/Participant.php
CRM/Extension/Downloader.php
CRM/Member/Import/Parser/Membership.php
CRM/Report/Form.php
CRM/Utils/Date.php
CRM/Utils/Mail/Incoming.php

index 9b03aef76d0454715c54349f6c862f29f6ba8c56..b84d24525713b64844b4856eb26db353fb2e345d 100644 (file)
@@ -752,7 +752,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
    *   True if used for search else false.
    * @param string $label
    *   Label for custom field.
-   * @return \HTML_QuickForm_Element|null
+   * @return \HTML_QuickForm_element|null
    * @throws \CRM_Core_Exception
    */
   public static function addQuickFormElement(
index 95834816b6d52dc0e2b1fac7220888627dd89ff5..d6c526711fc6d331185724591f942a3cea130145 100644 (file)
@@ -416,7 +416,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *   For datepicker elements this is consistent with the data
    *   from CRM_Utils_Date::getDatePickerExtra
    *
-   * @return HTML_QuickForm_Element
+   * @return HTML_QuickForm_element
    *   Could be an error object
    *
    * @throws \CRM_Core_Exception
@@ -1598,7 +1598,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *   - context - @see CRM_Core_DAO::buildOptionsContext
    * @param bool $required
    * @throws CRM_Core_Exception
-   * @return HTML_QuickForm_Element
+   * @return HTML_QuickForm_element
    */
   public function addSelect($name, $props = [], $required = FALSE) {
     if (!isset($props['entity'])) {
@@ -1713,7 +1713,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @throws \CRM_Core_Exception
    * @throws \Exception
    * @return mixed
-   *   HTML_QuickForm_Element
+   *   HTML_QuickForm_element
    *   void
    */
   public function addField($name, $props = [], $required = FALSE, $legacyDate = TRUE) {
@@ -2138,7 +2138,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @param string $defaultCurrency
    * @param bool $freezeCurrency
    *
-   * @return \HTML_QuickForm_Element
+   * @return HTML_QuickForm_element
    */
   public function addMoney(
     $name,
@@ -2222,7 +2222,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *   - class, etc. - other html properties
    * @param bool $required
    *
-   * @return HTML_QuickForm_Element
+   * @return HTML_QuickForm_element
    */
   public function addEntityRef($name, $label = '', $props = [], $required = FALSE) {
     // Default properties
@@ -2538,7 +2538,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    * @param string $elementName
    * @param array $settings
    *
-   * @return HTML_QuickForm_Element
+   * @return HTML_QuickForm_element
    */
   public function addChainSelect($elementName, $settings = []) {
     $required = $settings['required'] ?? FALSE;
index d49e9d15482c6159c98776534308e28c7c321cff..ba87473d1821f124da2f9bd3f4bcb811e338c938 100644 (file)
@@ -722,13 +722,13 @@ WHERE civicrm_address.geo_code_1 IS NOT NULL
   /**
    * Get the complete information for one or more events.
    *
-   * @param date $start
+   * @param Date $start
    *   Get events with start date >= this date.
    * @param int $type Get events on the a specific event type (by event_type_id).
    *   Get events on the a specific event type (by event_type_id).
    * @param int $eventId Return a single event - by event id.
    *   Return a single event - by event id.
-   * @param date $end
+   * @param Date $end
    *   Also get events with end date >= this date.
    * @param bool $onlyPublic Include public events only, default TRUE.
    *   Include public events only, default TRUE.
index 4f4ab4c277297fdb8143d5e1e17fc9796ad93bba..86bc1f0a4bfa2859aa304208103d02a71eb3367f 100644 (file)
@@ -187,7 +187,7 @@ class CRM_Event_Import_Parser_Participant extends CRM_Import_Parser {
       if (empty($params['contact_id'])) {
         $error = $this->checkContactDuplicate($formatValues);
 
-        if (CRM_Core_Error::isAPIError($error, CRM_Core_ERROR::DUPLICATE_CONTACT)) {
+        if (CRM_Core_Error::isAPIError($error, CRM_Core_Error::DUPLICATE_CONTACT)) {
           $matchedIDs = (array) $error['error_message']['params'];
           if (count($matchedIDs) >= 1) {
             foreach ($matchedIDs as $contactId) {
index 05e871f368e378ea812b809a18f4196aa4b5fe8b..dbf689a807d710d1f9463e1411504b31f71dd7af 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Extension_Downloader {
   /**
    * Determine whether downloading is supported.
    *
-   * @param \CRM_EXtension_Info $extensionInfo Optional info for (updated) extension
+   * @param \CRM_Extension_Info $extensionInfo Optional info for (updated) extension
    *
    * @return array
    *   list of error messages; empty if OK
index 3a29c4bc573a2d8cfb70f1d2715aa0d6f11300f9..92cb027c6da2eff1257aa44667d9ec0ad31b262e 100644 (file)
@@ -204,7 +204,7 @@ class CRM_Member_Import_Parser_Membership extends CRM_Import_Parser {
       if (empty($formatValues['id']) && empty($formatValues['contact_id'])) {
         $error = $this->checkContactDuplicate($formatValues);
 
-        if (CRM_Core_Error::isAPIError($error, CRM_Core_ERROR::DUPLICATE_CONTACT)) {
+        if (CRM_Core_Error::isAPIError($error, CRM_Core_Error::DUPLICATE_CONTACT)) {
           $matchedIDs = (array) $error['error_message']['params'];
           if (count($matchedIDs) > 1) {
             throw new CRM_Core_Exception('Multiple matching contact records detected for this row. The membership was not imported', CRM_Import_Parser::ERROR);
index 37a08a2e418dd86b44256ba4ab0227b0af6f5c7e..e74c355a0c86e293af8000690954c560b03a52c7 100644 (file)
@@ -2695,7 +2695,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
     $communicationMethods = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'preferred_communication_method');
 
     // Explode padded values.
-    $values = CRM_utils_array::explodePadded($value);
+    $values = CRM_Utils_Array::explodePadded($value);
     // Flip values, compute intersection with $communicationMethods, and implode with commas.
     $value = implode(', ', array_intersect_key($communicationMethods, array_flip($values)));
     return $value;
index f97951a1ba54b05e3b2ec5b788cc1867793e9d95..409833e470a6a0e57331b4a8e3ceddf715e4c223 100644 (file)
@@ -850,9 +850,9 @@ class CRM_Utils_Date {
    * Find whether today's date lies in
    * the given range
    *
-   * @param date $startDate
+   * @param Date $startDate
    *   Start date for the range.
-   * @param date $endDate
+   * @param Date $endDate
    *   End date for the range.
    *
    * @return bool
@@ -915,9 +915,9 @@ class CRM_Utils_Date {
   /**
    * Calculate Age in Years if greater than one year else in months.
    *
-   * @param date $birthDate
+   * @param Date $birthDate
    *   Birth Date.
-   * @param date $targetDate
+   * @param Date $targetDate
    *   Target Date. (show age on specific date)
    *
    * @return array
index c53e66fe6b0a0fb395918e610f184d058d76dfe0..ff539d2bd632702e12b8cab7bc9004373bb746bb 100644 (file)
@@ -63,7 +63,7 @@ class CRM_Utils_Mail_Incoming {
       return self::formatMailRfc822Digest($part, $attachments);
     }
 
-    if ($part instanceof ezcMailMultiPart) {
+    if ($part instanceof ezcMailMultipart) {
       return self::formatMailMultipart($part, $attachments);
     }
 
@@ -86,19 +86,19 @@ class CRM_Utils_Mail_Incoming {
    * @throws Exception
    */
   public static function formatMailMultipart($part, &$attachments) {
-    if ($part instanceof ezcMailMultiPartAlternative) {
+    if ($part instanceof ezcMailMultipartAlternative) {
       return self::formatMailMultipartAlternative($part, $attachments);
     }
 
-    if ($part instanceof ezcMailMultiPartDigest) {
+    if ($part instanceof ezcMailMultipartDigest) {
       return self::formatMailMultipartDigest($part, $attachments);
     }
 
-    if ($part instanceof ezcMailMultiPartRelated) {
+    if ($part instanceof ezcMailMultipartRelated) {
       return self::formatMailMultipartRelated($part, $attachments);
     }
 
-    if ($part instanceof ezcMailMultiPartMixed) {
+    if ($part instanceof ezcMailMultipartMixed) {
       return self::formatMailMultipartMixed($part, $attachments);
     }