Skip to content

Commit

Permalink
Minor whitespace adjustments in new docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
mattallan committed Feb 6, 2025
1 parent 90ebbaf commit 9ad04d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/class-wc-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,7 @@ public function can_date_be_updated( $date_type ) {
* @see WC_Subscription::calculate_next_payment_date() for more details about how the next payment date is calculated.
*
* @param string $date_type 'trial_end', 'next_payment', 'end_of_prepaid_term' or 'end'.
*
* @return string|int The calculated date in MySQL format (`YYYY-MM-DD HH:MM:SS`), or `0` if undefined.
*/
public function calculate_date( $date_type ) {
Expand Down Expand Up @@ -1565,7 +1566,7 @@ public function calculate_date( $date_type ) {
* - 'woocommerce_subscription_calculated_trial_end_date'
* - 'woocommerce_subscription_calculated_end_of_prepaid_term_date'
*
* @param string|int $date The calculated date in MySQL format (`YYYY-MM-DD HH:MM:SS`), or `0` if undefined.
* @param string|int $date The calculated date in MySQL format (`YYYY-MM-DD HH:MM:SS`), or `0` if undefined.
* @param WC_Subscription $subscription The subscription object.
*/
return apply_filters( 'woocommerce_subscription_calculated_' . $date_type . '_date', $date, $this );
Expand Down

0 comments on commit 9ad04d5

Please sign in to comment.