Completed
Branch FET-8385-datetime-ticket-selec... (e7a63b)
by
unknown
56:53 queued 37:10
created
modules/ticket_selector/templates/standard_ticket_selector.template.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 			<tr>
28 28
 				<th scope="col" class="ee-ticket-selector-ticket-details-th">
29 29
 					<?php
30
-                    echo apply_filters(
31
-                        'FHEE__ticket_selector_chart_template__table_header_available_tickets',
32
-                        esc_html(''),
33
-                        $EVT_ID
34
-                    );
35
-                    ?>
30
+					echo apply_filters(
31
+						'FHEE__ticket_selector_chart_template__table_header_available_tickets',
32
+						esc_html(''),
33
+						$EVT_ID
34
+					);
35
+					?>
36 36
 				</th>
37 37
 				<?php if ( apply_filters( 'FHEE__ticket_selector_chart_template__display_ticket_price_details', TRUE ) ) { ?>
38 38
 				<th scope="col" class="ee-ticket-selector-ticket-price-th cntr">
@@ -46,28 +46,28 @@  discard block
 block discarded – undo
46 46
 						 * @param int $EVT_ID The Event ID
47 47
 						 */
48 48
 						echo apply_filters(
49
-                            'FHEE__ticket_selector_chart_template__table_header_price',
50
-                            esc_html__( 'Price', 'event_espresso' ),
51
-                            $EVT_ID
52
-                        );
49
+							'FHEE__ticket_selector_chart_template__table_header_price',
50
+							esc_html__( 'Price', 'event_espresso' ),
51
+							$EVT_ID
52
+						);
53 53
 					?>
54 54
 				</th>
55 55
 				<?php } ?>
56 56
 				<th scope="col" class="ee-ticket-selector-ticket-qty-th cntr">
57 57
 					<?php
58 58
 						/**
59
-						* Filters the text printed for the header of the quantity column in the ticket selector table
60
-						*
61
-						* @since 4.7.2
62
-						*
63
-						* @param string 'Qty*' The translatable text to display in the table header for the Quantity of tickets
64
-						* @param int $EVT_ID The Event ID
65
-						*/
59
+						 * Filters the text printed for the header of the quantity column in the ticket selector table
60
+						 *
61
+						 * @since 4.7.2
62
+						 *
63
+						 * @param string 'Qty*' The translatable text to display in the table header for the Quantity of tickets
64
+						 * @param int $EVT_ID The Event ID
65
+						 */
66 66
 						echo apply_filters(
67
-                            'FHEE__ticket_selector_chart_template__table_header_qty',
68
-                            esc_html__( 'Qty*', 'event_espresso' ),
69
-                            $EVT_ID
70
-                        );
67
+							'FHEE__ticket_selector_chart_template__table_header_qty',
68
+							esc_html__( 'Qty*', 'event_espresso' ),
69
+							$EVT_ID
70
+						);
71 71
 					?>
72 72
 				</th>
73 73
 			</tr>
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 if ( $max_atndz > 0 ) {
98 98
 	echo apply_filters(
99 99
 		'FHEE__ticket_selector_chart_template__maximum_tickets_purchased_footnote',
100
-        esc_html('')
100
+		esc_html('')
101 101
 	);
102 102
 }
103 103
 if ( ! apply_filters( 'FHEE__EE_Ticket_Selector__display_ticket_selector_submit', false ) ) {
Please login to merge, or discard this patch.
core/EE_Config.core.php 1 patch
Indentation   +116 added lines, -116 removed lines patch added patch discarded remove patch
@@ -2211,7 +2211,7 @@  discard block
 block discarded – undo
2211 2211
 		$table_analysis = EE_Registry::instance()->create( 'TableAnalysis', array(), true );
2212 2212
 		// get country code from organization settings or use default
2213 2213
 		$ORG_CNT = isset( EE_Registry::instance()->CFG->organization )
2214
-		           && EE_Registry::instance()->CFG->organization instanceof EE_Organization_Config
2214
+				   && EE_Registry::instance()->CFG->organization instanceof EE_Organization_Config
2215 2215
 			? EE_Registry::instance()->CFG->organization->CNT_ISO
2216 2216
 			: '';
2217 2217
 		// but override if requested
@@ -2521,12 +2521,12 @@  discard block
 block discarded – undo
2521 2521
 	public $help_tour_activation;
2522 2522
 
2523 2523
 	/**
2524
-     * adds extra layer of encoding to session data to prevent serialization errors
2525
-     * but is incompatible with some server configuration errors
2526
-     * if you get "500 internal server errors" during registration, try turning this on
2527
-     * if you get PHP fatal errors regarding base 64 methods not defined, then turn this off
2528
-     *
2529
-     * @var boolean $encode_session_data
2524
+	 * adds extra layer of encoding to session data to prevent serialization errors
2525
+	 * but is incompatible with some server configuration errors
2526
+	 * if you get "500 internal server errors" during registration, try turning this on
2527
+	 * if you get PHP fatal errors regarding base 64 methods not defined, then turn this off
2528
+	 *
2529
+	 * @var boolean $encode_session_data
2530 2530
 	 */
2531 2531
 	private $encode_session_data = false;
2532 2532
 
@@ -2591,21 +2591,21 @@  discard block
 block discarded – undo
2591 2591
 
2592 2592
 
2593 2593
 
2594
-    /**
2595
-     * @return boolean
2596
-     */
2597
-    public function encode_session_data() {
2598
-        return filter_var( $this->encode_session_data, FILTER_VALIDATE_BOOLEAN );
2599
-    }
2594
+	/**
2595
+	 * @return boolean
2596
+	 */
2597
+	public function encode_session_data() {
2598
+		return filter_var( $this->encode_session_data, FILTER_VALIDATE_BOOLEAN );
2599
+	}
2600 2600
 
2601 2601
 
2602 2602
 
2603
-    /**
2604
-     * @param boolean $encode_session_data
2605
-     */
2606
-    public function set_encode_session_data( $encode_session_data ) {
2607
-        $this->encode_session_data = filter_var( $encode_session_data, FILTER_VALIDATE_BOOLEAN );
2608
-    }
2603
+	/**
2604
+	 * @param boolean $encode_session_data
2605
+	 */
2606
+	public function set_encode_session_data( $encode_session_data ) {
2607
+		$this->encode_session_data = filter_var( $encode_session_data, FILTER_VALIDATE_BOOLEAN );
2608
+	}
2609 2609
 
2610 2610
 
2611 2611
 
@@ -2896,16 +2896,16 @@  discard block
 block discarded – undo
2896 2896
  */
2897 2897
 class EE_Ticket_Selector_Config extends EE_Config_Base {
2898 2898
 
2899
-    /**
2900
-     * constant to indicate that a datetime selector should NEVER be shown for ticket selectors
2901
-     */
2902
-    const DO_NOT_SHOW_DATETIME_SELECTOR = 'no_datetime_selector';
2899
+	/**
2900
+	 * constant to indicate that a datetime selector should NEVER be shown for ticket selectors
2901
+	 */
2902
+	const DO_NOT_SHOW_DATETIME_SELECTOR = 'no_datetime_selector';
2903 2903
 
2904
-    /**
2905
-     * constant to indicate that a datetime selector should only be shown for ticket selectors
2906
-     * when the number of datetimes for the event matches the value set for $datetime_selector_threshold
2907
-     */
2908
-    const MAYBE_SHOW_DATETIME_SELECTOR = 'maybe_datetime_selector';
2904
+	/**
2905
+	 * constant to indicate that a datetime selector should only be shown for ticket selectors
2906
+	 * when the number of datetimes for the event matches the value set for $datetime_selector_threshold
2907
+	 */
2908
+	const MAYBE_SHOW_DATETIME_SELECTOR = 'maybe_datetime_selector';
2909 2909
 
2910 2910
 	/**
2911 2911
 	 * @var boolean $show_ticket_sale_columns
@@ -2944,7 +2944,7 @@  discard block
 block discarded – undo
2944 2944
 	 *    class constructor
2945 2945
 	 */
2946 2946
 	public function __construct() {
2947
-        $this->show_ticket_sale_columns = true;
2947
+		$this->show_ticket_sale_columns = true;
2948 2948
 		$this->show_ticket_details = true;
2949 2949
 		$this->show_expired_tickets = true;
2950 2950
 		$this->show_datetime_selector = \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR;
@@ -2953,91 +2953,91 @@  discard block
 block discarded – undo
2953 2953
 
2954 2954
 
2955 2955
 
2956
-    /**
2957
-     * returns true if a datetime selector should be displayed
2958
-     *
2959
-     * @param array $datetimes
2960
-     * @return bool
2961
-     */
2962
-    public function showDatetimeSelector(array $datetimes)
2963
-    {
2964
-        // if the settings are NOT: don't show OR below threshold, THEN active = true
2965
-        return ! (
2966
-            $this->getShowDatetimeSelector() === \EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR
2967
-           || (
2968
-               $this->getShowDatetimeSelector() === \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR
2969
-               && count($datetimes) < $this->getDatetimeSelectorThreshold()
2970
-           )
2971
-        );
2972
-    }
2973
-
2974
-
2975
-    /**
2976
-     * @return string
2977
-     */
2978
-    public function getShowDatetimeSelector()
2979
-    {
2980
-        return $this->show_datetime_selector;
2981
-    }
2956
+	/**
2957
+	 * returns true if a datetime selector should be displayed
2958
+	 *
2959
+	 * @param array $datetimes
2960
+	 * @return bool
2961
+	 */
2962
+	public function showDatetimeSelector(array $datetimes)
2963
+	{
2964
+		// if the settings are NOT: don't show OR below threshold, THEN active = true
2965
+		return ! (
2966
+			$this->getShowDatetimeSelector() === \EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR
2967
+		   || (
2968
+			   $this->getShowDatetimeSelector() === \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR
2969
+			   && count($datetimes) < $this->getDatetimeSelectorThreshold()
2970
+		   )
2971
+		);
2972
+	}
2982 2973
 
2983 2974
 
2975
+	/**
2976
+	 * @return string
2977
+	 */
2978
+	public function getShowDatetimeSelector()
2979
+	{
2980
+		return $this->show_datetime_selector;
2981
+	}
2984 2982
 
2985
-    /**
2986
-     * @param bool $keys_only
2987
-     * @return array
2988
-     */
2989
-    public function getShowDatetimeSelectorOptions($keys_only = true)
2990
-    {
2991
-        return $keys_only
2992
-            ? array(
2993
-                \EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR,
2994
-                \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR,
2995
-            )
2996
-            : array(
2997
-                \EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR => esc_html__(
2998
-                    'Do not show datetime selector', 'event_espresso'
2999
-                ),
3000
-                \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR => esc_html__(
3001
-                    'Maybe show datetime selector', 'event_espresso'
3002
-                ),
3003
-            );
3004
-    }
3005
-
3006
-
3007
-
3008
-    /**
3009
-     * @param string $show_datetime_selector
3010
-     */
3011
-    public function setShowDatetimeSelector($show_datetime_selector)
3012
-    {
3013
-        $this->show_datetime_selector = in_array(
3014
-            $show_datetime_selector,
3015
-            $this->getShowDatetimeSelectorOptions()
3016
-        )
3017
-            ? $show_datetime_selector
3018
-            : \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR;
3019
-    }
3020 2983
 
3021 2984
 
2985
+	/**
2986
+	 * @param bool $keys_only
2987
+	 * @return array
2988
+	 */
2989
+	public function getShowDatetimeSelectorOptions($keys_only = true)
2990
+	{
2991
+		return $keys_only
2992
+			? array(
2993
+				\EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR,
2994
+				\EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR,
2995
+			)
2996
+			: array(
2997
+				\EE_Ticket_Selector_Config::DO_NOT_SHOW_DATETIME_SELECTOR => esc_html__(
2998
+					'Do not show datetime selector', 'event_espresso'
2999
+				),
3000
+				\EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR => esc_html__(
3001
+					'Maybe show datetime selector', 'event_espresso'
3002
+				),
3003
+			);
3004
+	}
3022 3005
 
3023
-    /**
3024
-     * @return int
3025
-     */
3026
-    public function getDatetimeSelectorThreshold()
3027
-    {
3028
-        return $this->datetime_selector_threshold;
3029
-    }
3030 3006
 
3031 3007
 
3008
+	/**
3009
+	 * @param string $show_datetime_selector
3010
+	 */
3011
+	public function setShowDatetimeSelector($show_datetime_selector)
3012
+	{
3013
+		$this->show_datetime_selector = in_array(
3014
+			$show_datetime_selector,
3015
+			$this->getShowDatetimeSelectorOptions()
3016
+		)
3017
+			? $show_datetime_selector
3018
+			: \EE_Ticket_Selector_Config::MAYBE_SHOW_DATETIME_SELECTOR;
3019
+	}
3032 3020
 
3033
-    /**
3034
-     * @param int $datetime_selector_threshold
3035
-     */
3036
-    public function setDatetimeSelectorThreshold($datetime_selector_threshold)
3037
-    {
3038
-        $datetime_selector_threshold = absint($datetime_selector_threshold);
3039
-        $this->datetime_selector_threshold = $datetime_selector_threshold ? $datetime_selector_threshold : 3;
3040
-    }
3021
+
3022
+
3023
+	/**
3024
+	 * @return int
3025
+	 */
3026
+	public function getDatetimeSelectorThreshold()
3027
+	{
3028
+		return $this->datetime_selector_threshold;
3029
+	}
3030
+
3031
+
3032
+
3033
+	/**
3034
+	 * @param int $datetime_selector_threshold
3035
+	 */
3036
+	public function setDatetimeSelectorThreshold($datetime_selector_threshold)
3037
+	{
3038
+		$datetime_selector_threshold = absint($datetime_selector_threshold);
3039
+		$this->datetime_selector_threshold = $datetime_selector_threshold ? $datetime_selector_threshold : 3;
3040
+	}
3041 3041
 
3042 3042
 
3043 3043
 }
@@ -3100,8 +3100,8 @@  discard block
 block discarded – undo
3100 3100
 	 */
3101 3101
 	public function max_input_vars_limit_check( $input_count = 0 ) {
3102 3102
 		if ( ! empty( $this->php->max_input_vars )
3103
-		     && ( $input_count >= $this->php->max_input_vars )
3104
-		     && ( PHP_MAJOR_VERSION >= 5 && PHP_MINOR_VERSION >= 3 && PHP_RELEASE_VERSION >= 9 )
3103
+			 && ( $input_count >= $this->php->max_input_vars )
3104
+			 && ( PHP_MAJOR_VERSION >= 5 && PHP_MINOR_VERSION >= 3 && PHP_RELEASE_VERSION >= 9 )
3105 3105
 		) {
3106 3106
 			return sprintf(
3107 3107
 				__(
@@ -3145,22 +3145,22 @@  discard block
 block discarded – undo
3145 3145
 class EE_Tax_Config extends EE_Config_Base
3146 3146
 {
3147 3147
 
3148
-    /*
3148
+	/*
3149 3149
      * flag to indicate whether or not to display ticket prices with the taxes included
3150 3150
      *
3151 3151
      * @var boolean $prices_displayed_including_taxes
3152 3152
      */
3153
-    public $prices_displayed_including_taxes;
3153
+	public $prices_displayed_including_taxes;
3154 3154
 
3155 3155
 
3156 3156
 
3157
-    /**
3158
-     *    class constructor
3159
-     */
3160
-    public function __construct()
3161
-    {
3162
-        $this->prices_displayed_including_taxes = true;
3163
-    }
3157
+	/**
3158
+	 *    class constructor
3159
+	 */
3160
+	public function __construct()
3161
+	{
3162
+		$this->prices_displayed_including_taxes = true;
3163
+	}
3164 3164
 }
3165 3165
 
3166 3166
 
Please login to merge, or discard this patch.