From 2f71c58a5461ef082ed36f0fe6670d769ad49af9 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 3 Oct 2023 16:45:18 +0200 Subject: [PATCH] Remove uneccessary import and add phpdoc --- src/View/Calendar.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/View/Calendar.php b/src/View/Calendar.php index 9cc687e8a..eb718b89d 100644 --- a/src/View/Calendar.php +++ b/src/View/Calendar.php @@ -3,7 +3,6 @@ namespace CommonsBooking\View; -use CommonsBooking\CB\CB; use CommonsBooking\Helper\Helper; use CommonsBooking\Helper\Wordpress; use CommonsBooking\Model\CustomPost; @@ -13,11 +12,13 @@ use CommonsBooking\Wordpress\CustomPostType\Item; use CommonsBooking\Wordpress\CustomPostType\Location; use CommonsBooking\Wordpress\CustomPostType\Timeframe; -use DateInterval; -use DateTime; + use Exception; use WP_Post; +/** + * Different methods to render shortcode view on item availabilities, with calls to repository/model layer. + */ class Calendar { /** @@ -35,7 +36,7 @@ class Calendar { * Many thanks to fLotte Berlin! * Forked from https://github.com/flotte-berlin/cb-shortcodes/blob/master/custom-shortcodes-cb-items.php * - * @param $atts + * @param array $atts assoc array for mainly passing query params. * * @return string * @throws Exception