Skip to content

Commit 97b1e83

Browse files
committed
gpb-daily-service-booking-limit.php: Added new snippet.
1 parent 8fb788f commit 97b1e83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gp-bookings/gpb-daily-service-booking-limit.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,12 @@ private function is_tracked_service( int $service_id ): bool {
194194
return in_array( $service_id, $this->service_ids, true );
195195
}
196196

197-
private function normalize_booking_date( $start, $end, $bookable ): ?string {
197+
/**
198+
* Normalize booking date.
199+
*
200+
* @return string|null Returns the normalized start date (Y-m-d) or null on failure.
201+
*/
202+
private function normalize_booking_date( $start, $end, $bookable ) {
198203
try {
199204
$normalized = \GP_Bookings\Booking::normalize_datetime_values( $start, $end, $bookable );
200205
} catch ( \Throwable $e ) {

0 commit comments

Comments
 (0)