all( 2 ) ) > 1; } public static function resolve( string $surface, ?array $booking = null, ?int $location_id = null ): array { $repo = new LocationsRepository(); $location = $booking ? $repo->find( (int) $booking['location_id'] ) : $repo->default_location(); $location = apply_filters( 'abientot_booking_location', $location, $surface, $booking, $location_id ); return is_array( $location ) ? $location : array( 'id' => 0, 'name' => '', 'timezone' => '' ); } }