Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More PHPdoc fixes #24495

Merged
merged 1 commit into from
Sep 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CRM/Contact/BAO/ContactType.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public static function isAllowEdit($contactId, $subType = NULL) {
}

/**
* @param $contactType
* @param string $contactType
* @param int $contactId
*
* @return bool
Expand Down Expand Up @@ -695,7 +695,7 @@ public static function hasCustomData($contactType, $contactId = NULL) {
/**
* @todo what does this function do?
* @param int $contactId
* @param $contactType
* @param string $contactType
*
* @return bool
*/
Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Form/RecurringEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class CRM_Core_Form_RecurringEntity {

/**
* Schedule Reminder data
* @var array
* @var CRM_Core_DAO|null
*/
protected static $_scheduleReminderDetails = [];
protected static $_scheduleReminderDetails = NULL;

/**
* Parent Entity ID
Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/Key.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function get($name, $addSequence = FALSE) {
* @param string $name
* @param bool $addSequence
*
* @return string
* @return string|null
* if valid, else null
*/
public static function validate($key, $name, $addSequence = FALSE) {
Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/OptionValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public static function getFields($mode = '', $contactType = 'Individual') {
/**
* Build select query in case of option-values
*
* @param $query
* @param CRM_Contact_BAO_Query $query
*/
public static function select(&$query) {
if (!empty($query->_params) || !empty($query->_returnProperties)) {
Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Payment/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public static function buildPaymentForm(&$form, $processor, $billing_profile_id,
* @param CRM_Core_Form $form
* @param array $paymentFields
* Array of properties including 'object' as loaded from CRM_Financial_BAO_PaymentProcessor::getPaymentProcessors.
* @param $paymentFields
* @return void
*/
protected static function addRules(&$form, $paymentFields) {
foreach ($paymentFields as $paymentField => $fieldSpecs) {
Expand Down Expand Up @@ -360,7 +360,7 @@ public static function mapParams($id, $src, &$dst, $reverse = FALSE) {
* The date format for this field should typically be "M Y" (ex: Feb 2011) or "m Y" (02 2011)
* See CRM-9017
*
* @param $src
* @param array $src
*
* @return int
*/
Expand Down