Completed
Branch dependabot/composer/tijsverkoy... (491ea6)
by
unknown
32:00 queued 25:42
created
admin_pages/events/templates/event_tickets_metabox_ticket_row.template.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,12 +84,15 @@  discard block
 block discarded – undo
84 84
                    name="edit_prices[<?php echo esc_attr($ticketrow); ?>][1][PRC_amount]"
85 85
                    value="<?php echo esc_attr($PRC_amount); ?>"
86 86
             />
87
-        <?php else : ?>
87
+        <?php else {
88
+	: ?>
88 89
             <input type="text"
89 90
                    size="1"
90 91
                    class="edit-price-PRC_amount ee-small-text-inp ee-inp-right"
91 92
                    name="disabled_price_amount"
92
-                   value="<?php echo esc_attr($PRC_amount); ?>"
93
+                   value="<?php echo esc_attr($PRC_amount);
94
+}
95
+?>"
93 96
                 <?php echo esc_attr($disabled); ?>
94 97
             />
95 98
             <input type="hidden"
@@ -123,11 +126,14 @@  discard block
 block discarded – undo
123 126
                    name="<?php echo esc_attr("{$edit_ticketrow_name}[{$ticketrow}][TKT_qty]"); ?>"
124 127
                    value="<?php echo absint($TKT_qty); ?>"
125 128
             />
126
-        <?php else : ?>
129
+        <?php else {
130
+	: ?>
127 131
             <input type="text"
128 132
                    class="edit-ticket-TKT_qty ee-small-text-inp ee-inp-right"
129 133
                    name="disabled_tkt_qty"
130
-                   value="<?php echo absint($TKT_qty); ?>"
134
+                   value="<?php echo absint($TKT_qty);
135
+}
136
+?>"
131 137
                 <?php echo esc_attr($disabled); ?>
132 138
             />
133 139
             <input type="hidden"
Please login to merge, or discard this patch.
caffeinated/admin/new/pricing/Prices_List_Table.class.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function __construct(EE_Admin_Page $admin_page)
28 28
     {
29 29
         parent::__construct($admin_page);
30
-        require_once(EE_MODELS . 'EEM_Price_Type.model.php');
30
+        require_once(EE_MODELS.'EEM_Price_Type.model.php');
31 31
         $this->_PRT         = EEM_Price_Type::instance();
32 32
         $this->_price_types = $this->_PRT->get_all_deleted_and_undeleted();
33 33
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     protected function getActionUrl(EE_Price $price, string $action): string
115 115
     {
116
-        if (! in_array($action, self::$actions)) {
116
+        if ( ! in_array($action, self::$actions)) {
117 117
             throw new DomainException(esc_html__('Invalid Action', 'event_espresso'));
118 118
         }
119 119
         return EE_Admin_Page::add_query_args_and_nonce(
@@ -146,8 +146,8 @@  discard block
 block discarded – undo
146 146
      */
147 147
     public function column_id($item)
148 148
     {
149
-        $content = '<span class="ee-entity-id">' . $item->ID() . '</span>';
150
-        $content .= '<span class="show-on-mobile-view-only">' . $this->column_name($item, false) . '</span>';
149
+        $content = '<span class="ee-entity-id">'.$item->ID().'</span>';
150
+        $content .= '<span class="show-on-mobile-view-only">'.$this->column_name($item, false).'</span>';
151 151
         return $this->columnContent('id', $content, 'end');
152 152
     }
153 153
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             }
240 240
         }
241 241
 
242
-        $content = $prep_content ? $name_link . $this->row_actions($actions) : $name_link;
242
+        $content = $prep_content ? $name_link.$this->row_actions($actions) : $name_link;
243 243
         return $prep_content ? $this->columnContent('name', $content) : $content;
244 244
     }
245 245
 
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public function column_type(EE_Price $price): string
252 252
     {
253
-        $content = isset($this->_price_types[ $price->type() ])
254
-            ? $this->_price_types[ $price->type() ]->name()
253
+        $content = isset($this->_price_types[$price->type()])
254
+            ? $this->_price_types[$price->type()]->name()
255 255
             : '';
256 256
         return $this->columnContent('type', $content);
257 257
     }
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function column_amount(EE_Price $price): string
276 276
     {
277
-        $price_type = isset($this->_price_types[ $price->type() ])
278
-            ? $this->_price_types[ $price->type() ]
277
+        $price_type = isset($this->_price_types[$price->type()])
278
+            ? $this->_price_types[$price->type()]
279 279
             : null;
280 280
         $content = $price_type instanceof EE_Price_Type && $price_type->is_percent() ?
281
-            '<div class="pad-amnt-rght">' . number_format($price->amount(), 1) . '%</div>'
282
-            : '<div class="pad-amnt-rght">' . EEH_Template::format_currency($price->amount()) . '</div>';
281
+            '<div class="pad-amnt-rght">'.number_format($price->amount(), 1).'%</div>'
282
+            : '<div class="pad-amnt-rght">'.EEH_Template::format_currency($price->amount()).'</div>';
283 283
         return $this->columnContent('amount', $content, 'end');
284 284
     }
285 285
 }
Please login to merge, or discard this patch.
Indentation   +281 added lines, -281 removed lines patch added patch discarded remove patch
@@ -13,285 +13,285 @@
 block discarded – undo
13 13
  */
14 14
 class Prices_List_Table extends EE_Admin_List_Table
15 15
 {
16
-    /**
17
-     * @var Pricing_Admin_Page
18
-     */
19
-    protected EE_Admin_Page $_admin_page;
20
-
21
-    protected EEM_Price_Type $_PRT;
22
-
23
-    /**
24
-     * @var EE_Price_Type[]
25
-     */
26
-    protected array $_price_types = [];
27
-
28
-
29
-    /**
30
-     * @throws ReflectionException
31
-     * @throws EE_Error
32
-     */
33
-    public function __construct(EE_Admin_Page $admin_page)
34
-    {
35
-        parent::__construct($admin_page);
36
-        require_once(EE_MODELS . 'EEM_Price_Type.model.php');
37
-        $this->_PRT         = EEM_Price_Type::instance();
38
-        $this->_price_types = $this->_PRT->get_all_deleted_and_undeleted();
39
-    }
40
-
41
-
42
-    /**
43
-     * @throws ReflectionException
44
-     * @throws EE_Error
45
-     */
46
-    protected function _setup_data()
47
-    {
48
-        $trashed               = $this->_admin_page->get_view() === 'trashed';
49
-        $this->_data           = $this->_admin_page->get_prices_overview_data($this->_per_page, false, $trashed);
50
-        $this->_all_data_count = $this->_admin_page->get_prices_overview_data($this->_per_page, true);
51
-        $this->_trashed_count  = $this->_admin_page->get_prices_overview_data($this->_per_page, true, true);
52
-    }
53
-
54
-
55
-    protected function _set_properties()
56
-    {
57
-        $this->_wp_list_args = [
58
-            'singular' => esc_html__('price', 'event_espresso'),
59
-            'plural'   => esc_html__('prices', 'event_espresso'),
60
-            'ajax'     => true,
61
-            'screen'   => $this->_admin_page->get_current_screen()->id,
62
-        ];
63
-
64
-        $this->_columns = [
65
-            'cb'          => '<input type="checkbox" />', // Render a checkbox instead of text
66
-            'id'          => esc_html__('ID', 'event_espresso'),
67
-            'name'        => esc_html__('Name', 'event_espresso'),
68
-            'type'        => esc_html__('Price Type', 'event_espresso'),
69
-            'description' => esc_html__('Description', 'event_espresso'),
70
-            'amount'      => esc_html__('Amount', 'event_espresso'),
71
-        ];
72
-        $this->_primary_column = 'id';
73
-
74
-        $this->_sortable_columns = [
75
-            // true means its already sorted
76
-            'name'   => ['name' => false],
77
-            'type'   => ['type' => false],
78
-            'amount' => ['amount' => false],
79
-        ];
80
-
81
-        $this->_hidden_columns = [];
82
-
83
-        $this->_ajax_sorting_callback = 'update_prices_order';
84
-    }
85
-
86
-
87
-    protected function _get_table_filters()
88
-    {
89
-        return [];
90
-    }
91
-
92
-
93
-    protected function _add_view_counts()
94
-    {
95
-        $this->_views['all']['count'] = $this->_all_data_count;
96
-        if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_prices', 'pricing_trash_price')) {
97
-            $this->_views['trashed']['count'] = $this->_trashed_count;
98
-        }
99
-    }
100
-
101
-
102
-    /**
103
-     * overriding parent method so that we can make sure the row isn't sortable for certain items
104
-     *
105
-     * @param object $item the current item
106
-     * @return string
107
-     */
108
-    protected function _get_row_class($item)
109
-    {
110
-        return $item->type_obj() instanceof EE_Price_Type
111
-                     && $item->type_obj()->base_type() !== 1
112
-                     && $item->type_obj()->base_type() !== 4
113
-            ? ' class="rowsortable"'
114
-            : '';
115
-    }
116
-
117
-
118
-    /**
119
-     * @param EE_Price $price
120
-     * @param string   $action
121
-     * @return string
122
-     * @throws EE_Error
123
-     * @throws ReflectionException
124
-     * @since 5.0.0.p
125
-     */
126
-    protected function getActionUrl(EE_Price $price, string $action): string
127
-    {
128
-        if (! in_array($action, self::$actions)) {
129
-            throw new DomainException(esc_html__('Invalid Action', 'event_espresso'));
130
-        }
131
-        return EE_Admin_Page::add_query_args_and_nonce(
132
-            [
133
-                'action'   => "{$action}_price",
134
-                'id'       => $price->ID(),
135
-                'noheader' => $action !== self::ACTION_EDIT,
136
-            ],
137
-            PRICING_ADMIN_URL
138
-        );
139
-    }
140
-
141
-
142
-    public function column_cb($item)
143
-    {
144
-        return $item->type_obj() instanceof EE_Price_Type && $item->type_obj()->base_type() !== 1
145
-            ? sprintf(
146
-                '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />',
147
-                $item->ID()
148
-            )
149
-            : '';
150
-    }
151
-
152
-
153
-    /**
154
-     * @param EE_Price $item
155
-     * @return string
156
-     * @throws EE_Error
157
-     * @throws ReflectionException
158
-     */
159
-    public function column_id($item)
160
-    {
161
-        $content = '<span class="ee-entity-id">' . $item->ID() . '</span>';
162
-        $content .= '<span class="show-on-mobile-view-only">' . $this->column_name($item, false) . '</span>';
163
-        return $this->columnContent('id', $content, 'end');
164
-    }
165
-
166
-
167
-    /**
168
-     * @param EE_Price $price
169
-     * @param bool     $prep_content
170
-     * @return string
171
-     * @throws EE_Error
172
-     * @throws ReflectionException
173
-     */
174
-    public function column_name(EE_Price $price, bool $prep_content = true): string
175
-    {
176
-
177
-        // Build row actions
178
-        $actions = [];
179
-        // edit price link
180
-        if (
181
-            EE_Registry::instance()->CAP->current_user_can(
182
-                'ee_edit_default_price',
183
-                'pricing_edit_price',
184
-                $price->ID()
185
-            )
186
-        ) {
187
-            $actions['edit'] = $this->getActionLink(
188
-                $this->getActionUrl($price, self::ACTION_EDIT),
189
-                esc_html__('Edit', 'event_espresso'),
190
-                esc_attr__('Edit Price', 'event_espresso')
191
-            );
192
-        }
193
-
194
-        $name_link = EE_Registry::instance()->CAP->current_user_can(
195
-            'ee_edit_default_price',
196
-            'edit_price',
197
-            $price->ID()
198
-        )
199
-            ? $this->getActionLink(
200
-                $this->getActionUrl($price, self::ACTION_EDIT),
201
-                stripslashes($price->name()),
202
-                esc_attr__('Edit Price', 'event_espresso')
203
-            )
204
-            : $price->name();
205
-
206
-        if ($price->type_obj() instanceof EE_Price_Type && $price->type_obj()->base_type() !== 1) {
207
-            if ($this->_view == 'all') {
208
-                // trash price link
209
-                if (
210
-                    EE_Registry::instance()->CAP->current_user_can(
211
-                        'ee_delete_default_price',
212
-                        'pricing_trash_price',
213
-                        $price->ID()
214
-                    )
215
-                ) {
216
-                    $actions['trash'] = $this->getActionLink(
217
-                        $this->getActionUrl($price, self::ACTION_TRASH),
218
-                        esc_html__('Trash', 'event_espresso'),
219
-                        esc_attr__('Move Price to Trash', 'event_espresso')
220
-                    );
221
-                }
222
-            } else {
223
-                if (
224
-                    EE_Registry::instance()->CAP->current_user_can(
225
-                        'ee_delete_default_price',
226
-                        'pricing_restore_price',
227
-                        $price->ID()
228
-                    )
229
-                ) {
230
-                    $actions['restore'] = $this->getActionLink(
231
-                        $this->getActionUrl($price, self::ACTION_RESTORE),
232
-                        esc_html__('Restore', 'event_espresso'),
233
-                        esc_attr__('Restore Price', 'event_espresso')
234
-                    );
235
-                }
236
-
237
-                // delete price link
238
-                if (
239
-                    EE_Registry::instance()->CAP->current_user_can(
240
-                        'ee_delete_default_price',
241
-                        'pricing_delete_price',
242
-                        $price->ID()
243
-                    )
244
-                ) {
245
-                    $actions['delete'] = $this->getActionLink(
246
-                        $this->getActionUrl($price, self::ACTION_DELETE),
247
-                        esc_html__('Delete Permanently', 'event_espresso'),
248
-                        esc_attr__('Delete Price Permanently', 'event_espresso')
249
-                    );
250
-                }
251
-            }
252
-        }
253
-
254
-        $content = $prep_content ? $name_link . $this->row_actions($actions) : $name_link;
255
-        return $prep_content ? $this->columnContent('name', $content) : $content;
256
-    }
257
-
258
-
259
-    /**
260
-     * @throws EE_Error
261
-     * @throws ReflectionException
262
-     */
263
-    public function column_type(EE_Price $price): string
264
-    {
265
-        $content = isset($this->_price_types[ $price->type() ])
266
-            ? $this->_price_types[ $price->type() ]->name()
267
-            : '';
268
-        return $this->columnContent('type', $content);
269
-    }
270
-
271
-
272
-    /**
273
-     * @throws EE_Error
274
-     * @throws ReflectionException
275
-     */
276
-    public function column_description(EE_Price $price): string
277
-    {
278
-        $content = stripslashes($price->desc());
279
-        return $this->columnContent('description', $content);
280
-    }
281
-
282
-
283
-    /**
284
-     * @throws EE_Error
285
-     * @throws ReflectionException
286
-     */
287
-    public function column_amount(EE_Price $price): string
288
-    {
289
-        $price_type = isset($this->_price_types[ $price->type() ])
290
-            ? $this->_price_types[ $price->type() ]
291
-            : null;
292
-        $content = $price_type instanceof EE_Price_Type && $price_type->is_percent() ?
293
-            '<div class="pad-amnt-rght">' . number_format($price->amount(), 1) . '%</div>'
294
-            : '<div class="pad-amnt-rght">' . EEH_Template::format_currency($price->amount()) . '</div>';
295
-        return $this->columnContent('amount', $content, 'end');
296
-    }
16
+	/**
17
+	 * @var Pricing_Admin_Page
18
+	 */
19
+	protected EE_Admin_Page $_admin_page;
20
+
21
+	protected EEM_Price_Type $_PRT;
22
+
23
+	/**
24
+	 * @var EE_Price_Type[]
25
+	 */
26
+	protected array $_price_types = [];
27
+
28
+
29
+	/**
30
+	 * @throws ReflectionException
31
+	 * @throws EE_Error
32
+	 */
33
+	public function __construct(EE_Admin_Page $admin_page)
34
+	{
35
+		parent::__construct($admin_page);
36
+		require_once(EE_MODELS . 'EEM_Price_Type.model.php');
37
+		$this->_PRT         = EEM_Price_Type::instance();
38
+		$this->_price_types = $this->_PRT->get_all_deleted_and_undeleted();
39
+	}
40
+
41
+
42
+	/**
43
+	 * @throws ReflectionException
44
+	 * @throws EE_Error
45
+	 */
46
+	protected function _setup_data()
47
+	{
48
+		$trashed               = $this->_admin_page->get_view() === 'trashed';
49
+		$this->_data           = $this->_admin_page->get_prices_overview_data($this->_per_page, false, $trashed);
50
+		$this->_all_data_count = $this->_admin_page->get_prices_overview_data($this->_per_page, true);
51
+		$this->_trashed_count  = $this->_admin_page->get_prices_overview_data($this->_per_page, true, true);
52
+	}
53
+
54
+
55
+	protected function _set_properties()
56
+	{
57
+		$this->_wp_list_args = [
58
+			'singular' => esc_html__('price', 'event_espresso'),
59
+			'plural'   => esc_html__('prices', 'event_espresso'),
60
+			'ajax'     => true,
61
+			'screen'   => $this->_admin_page->get_current_screen()->id,
62
+		];
63
+
64
+		$this->_columns = [
65
+			'cb'          => '<input type="checkbox" />', // Render a checkbox instead of text
66
+			'id'          => esc_html__('ID', 'event_espresso'),
67
+			'name'        => esc_html__('Name', 'event_espresso'),
68
+			'type'        => esc_html__('Price Type', 'event_espresso'),
69
+			'description' => esc_html__('Description', 'event_espresso'),
70
+			'amount'      => esc_html__('Amount', 'event_espresso'),
71
+		];
72
+		$this->_primary_column = 'id';
73
+
74
+		$this->_sortable_columns = [
75
+			// true means its already sorted
76
+			'name'   => ['name' => false],
77
+			'type'   => ['type' => false],
78
+			'amount' => ['amount' => false],
79
+		];
80
+
81
+		$this->_hidden_columns = [];
82
+
83
+		$this->_ajax_sorting_callback = 'update_prices_order';
84
+	}
85
+
86
+
87
+	protected function _get_table_filters()
88
+	{
89
+		return [];
90
+	}
91
+
92
+
93
+	protected function _add_view_counts()
94
+	{
95
+		$this->_views['all']['count'] = $this->_all_data_count;
96
+		if (EE_Registry::instance()->CAP->current_user_can('ee_delete_default_prices', 'pricing_trash_price')) {
97
+			$this->_views['trashed']['count'] = $this->_trashed_count;
98
+		}
99
+	}
100
+
101
+
102
+	/**
103
+	 * overriding parent method so that we can make sure the row isn't sortable for certain items
104
+	 *
105
+	 * @param object $item the current item
106
+	 * @return string
107
+	 */
108
+	protected function _get_row_class($item)
109
+	{
110
+		return $item->type_obj() instanceof EE_Price_Type
111
+					 && $item->type_obj()->base_type() !== 1
112
+					 && $item->type_obj()->base_type() !== 4
113
+			? ' class="rowsortable"'
114
+			: '';
115
+	}
116
+
117
+
118
+	/**
119
+	 * @param EE_Price $price
120
+	 * @param string   $action
121
+	 * @return string
122
+	 * @throws EE_Error
123
+	 * @throws ReflectionException
124
+	 * @since 5.0.0.p
125
+	 */
126
+	protected function getActionUrl(EE_Price $price, string $action): string
127
+	{
128
+		if (! in_array($action, self::$actions)) {
129
+			throw new DomainException(esc_html__('Invalid Action', 'event_espresso'));
130
+		}
131
+		return EE_Admin_Page::add_query_args_and_nonce(
132
+			[
133
+				'action'   => "{$action}_price",
134
+				'id'       => $price->ID(),
135
+				'noheader' => $action !== self::ACTION_EDIT,
136
+			],
137
+			PRICING_ADMIN_URL
138
+		);
139
+	}
140
+
141
+
142
+	public function column_cb($item)
143
+	{
144
+		return $item->type_obj() instanceof EE_Price_Type && $item->type_obj()->base_type() !== 1
145
+			? sprintf(
146
+				'<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />',
147
+				$item->ID()
148
+			)
149
+			: '';
150
+	}
151
+
152
+
153
+	/**
154
+	 * @param EE_Price $item
155
+	 * @return string
156
+	 * @throws EE_Error
157
+	 * @throws ReflectionException
158
+	 */
159
+	public function column_id($item)
160
+	{
161
+		$content = '<span class="ee-entity-id">' . $item->ID() . '</span>';
162
+		$content .= '<span class="show-on-mobile-view-only">' . $this->column_name($item, false) . '</span>';
163
+		return $this->columnContent('id', $content, 'end');
164
+	}
165
+
166
+
167
+	/**
168
+	 * @param EE_Price $price
169
+	 * @param bool     $prep_content
170
+	 * @return string
171
+	 * @throws EE_Error
172
+	 * @throws ReflectionException
173
+	 */
174
+	public function column_name(EE_Price $price, bool $prep_content = true): string
175
+	{
176
+
177
+		// Build row actions
178
+		$actions = [];
179
+		// edit price link
180
+		if (
181
+			EE_Registry::instance()->CAP->current_user_can(
182
+				'ee_edit_default_price',
183
+				'pricing_edit_price',
184
+				$price->ID()
185
+			)
186
+		) {
187
+			$actions['edit'] = $this->getActionLink(
188
+				$this->getActionUrl($price, self::ACTION_EDIT),
189
+				esc_html__('Edit', 'event_espresso'),
190
+				esc_attr__('Edit Price', 'event_espresso')
191
+			);
192
+		}
193
+
194
+		$name_link = EE_Registry::instance()->CAP->current_user_can(
195
+			'ee_edit_default_price',
196
+			'edit_price',
197
+			$price->ID()
198
+		)
199
+			? $this->getActionLink(
200
+				$this->getActionUrl($price, self::ACTION_EDIT),
201
+				stripslashes($price->name()),
202
+				esc_attr__('Edit Price', 'event_espresso')
203
+			)
204
+			: $price->name();
205
+
206
+		if ($price->type_obj() instanceof EE_Price_Type && $price->type_obj()->base_type() !== 1) {
207
+			if ($this->_view == 'all') {
208
+				// trash price link
209
+				if (
210
+					EE_Registry::instance()->CAP->current_user_can(
211
+						'ee_delete_default_price',
212
+						'pricing_trash_price',
213
+						$price->ID()
214
+					)
215
+				) {
216
+					$actions['trash'] = $this->getActionLink(
217
+						$this->getActionUrl($price, self::ACTION_TRASH),
218
+						esc_html__('Trash', 'event_espresso'),
219
+						esc_attr__('Move Price to Trash', 'event_espresso')
220
+					);
221
+				}
222
+			} else {
223
+				if (
224
+					EE_Registry::instance()->CAP->current_user_can(
225
+						'ee_delete_default_price',
226
+						'pricing_restore_price',
227
+						$price->ID()
228
+					)
229
+				) {
230
+					$actions['restore'] = $this->getActionLink(
231
+						$this->getActionUrl($price, self::ACTION_RESTORE),
232
+						esc_html__('Restore', 'event_espresso'),
233
+						esc_attr__('Restore Price', 'event_espresso')
234
+					);
235
+				}
236
+
237
+				// delete price link
238
+				if (
239
+					EE_Registry::instance()->CAP->current_user_can(
240
+						'ee_delete_default_price',
241
+						'pricing_delete_price',
242
+						$price->ID()
243
+					)
244
+				) {
245
+					$actions['delete'] = $this->getActionLink(
246
+						$this->getActionUrl($price, self::ACTION_DELETE),
247
+						esc_html__('Delete Permanently', 'event_espresso'),
248
+						esc_attr__('Delete Price Permanently', 'event_espresso')
249
+					);
250
+				}
251
+			}
252
+		}
253
+
254
+		$content = $prep_content ? $name_link . $this->row_actions($actions) : $name_link;
255
+		return $prep_content ? $this->columnContent('name', $content) : $content;
256
+	}
257
+
258
+
259
+	/**
260
+	 * @throws EE_Error
261
+	 * @throws ReflectionException
262
+	 */
263
+	public function column_type(EE_Price $price): string
264
+	{
265
+		$content = isset($this->_price_types[ $price->type() ])
266
+			? $this->_price_types[ $price->type() ]->name()
267
+			: '';
268
+		return $this->columnContent('type', $content);
269
+	}
270
+
271
+
272
+	/**
273
+	 * @throws EE_Error
274
+	 * @throws ReflectionException
275
+	 */
276
+	public function column_description(EE_Price $price): string
277
+	{
278
+		$content = stripslashes($price->desc());
279
+		return $this->columnContent('description', $content);
280
+	}
281
+
282
+
283
+	/**
284
+	 * @throws EE_Error
285
+	 * @throws ReflectionException
286
+	 */
287
+	public function column_amount(EE_Price $price): string
288
+	{
289
+		$price_type = isset($this->_price_types[ $price->type() ])
290
+			? $this->_price_types[ $price->type() ]
291
+			: null;
292
+		$content = $price_type instanceof EE_Price_Type && $price_type->is_percent() ?
293
+			'<div class="pad-amnt-rght">' . number_format($price->amount(), 1) . '%</div>'
294
+			: '<div class="pad-amnt-rght">' . EEH_Template::format_currency($price->amount()) . '</div>';
295
+		return $this->columnContent('amount', $content, 'end');
296
+	}
297 297
 }
Please login to merge, or discard this patch.
admin_pages/about/templates/decafvpro.template.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -1,47 +1,47 @@  discard block
 block discarded – undo
1 1
 <p>
2 2
     <?php printf(
3
-        esc_html__(
4
-            'We offer a free version of Event Espresso 4 called Decaf which is a good fit for basic events. Need more features like custom registration forms and advanced email notifications? %sUpgrade to Event Espresso 4 (Regular)%s.',
5
-            'event_espresso'
6
-        ),
7
-        '<a href="https://eventespresso.com/pricing/?ee_ver=ee4&utm_source=wordpress_org&amp;utm_medium=link&amp;utm_campaign=decaf_about_page&amp;utm_content=Decaf+vs+Regular">',
8
-        '</a>'
9
-    ); ?>
3
+		esc_html__(
4
+			'We offer a free version of Event Espresso 4 called Decaf which is a good fit for basic events. Need more features like custom registration forms and advanced email notifications? %sUpgrade to Event Espresso 4 (Regular)%s.',
5
+			'event_espresso'
6
+		),
7
+		'<a href="https://eventespresso.com/pricing/?ee_ver=ee4&utm_source=wordpress_org&amp;utm_medium=link&amp;utm_campaign=decaf_about_page&amp;utm_content=Decaf+vs+Regular">',
8
+		'</a>'
9
+	); ?>
10 10
     </p>
11 11
     <br>
12 12
 
13 13
     <?php
14
-    $features = array(
15
-        'pricing-options'        => array(
16
-            'label'   => __('Handle multiple dates and pricing options', 'event_espresso'),
17
-            'class'   => 'alternate',
18
-        ),
19
-        'custom-registration'    => array(
20
-            'label'   => __('Create custom registration forms', 'event_espresso'),
21
-            'class'   => 'none',
22
-        ),
23
-        'advanced-notifications' => array(
24
-            'label'   => __('Customize advanced email notifications', 'event_espresso'),
25
-            'class'   => 'alternate',
26
-        ),
27
-        'manage-taxes'           => array(
28
-            'label'   => __('Manage taxes', 'event_espresso'),
29
-            'class'   => 'none',
30
-        ),
31
-        'typography'             => array(
32
-            'label'   => __('Additional payment methods available', 'event_espresso'),
33
-            'class'   => 'alternate',
34
-        ),
35
-        'add-on-compatibility'   => array(
36
-            'label'   => __('Compatibility with add-ons', 'event_espresso'),
37
-            'class'   => 'none',
38
-        ),
39
-        'best-support'           => array(
40
-            'label'   => __('Best in class support', 'event_espresso'),
41
-            'class'   => 'alternate',
42
-        ),
43
-    );
44
-    ?>
14
+	$features = array(
15
+		'pricing-options'        => array(
16
+			'label'   => __('Handle multiple dates and pricing options', 'event_espresso'),
17
+			'class'   => 'alternate',
18
+		),
19
+		'custom-registration'    => array(
20
+			'label'   => __('Create custom registration forms', 'event_espresso'),
21
+			'class'   => 'none',
22
+		),
23
+		'advanced-notifications' => array(
24
+			'label'   => __('Customize advanced email notifications', 'event_espresso'),
25
+			'class'   => 'alternate',
26
+		),
27
+		'manage-taxes'           => array(
28
+			'label'   => __('Manage taxes', 'event_espresso'),
29
+			'class'   => 'none',
30
+		),
31
+		'typography'             => array(
32
+			'label'   => __('Additional payment methods available', 'event_espresso'),
33
+			'class'   => 'alternate',
34
+		),
35
+		'add-on-compatibility'   => array(
36
+			'label'   => __('Compatibility with add-ons', 'event_espresso'),
37
+			'class'   => 'none',
38
+		),
39
+		'best-support'           => array(
40
+			'label'   => __('Best in class support', 'event_espresso'),
41
+			'class'   => 'alternate',
42
+		),
43
+	);
44
+	?>
45 45
 <div class="featured-section features">
46 46
     <table class="decaf-regular-table">
47 47
         <thead>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         </thead>
54 54
         <tbody>
55 55
         <?php
56
-        foreach ($features as $feature) : ?>
56
+		foreach ($features as $feature) : ?>
57 57
             <tr class="<?php echo sanitize_html_class($feature['class']); ?>">
58 58
                 <td class="feature">
59 59
                     <h3>
Please login to merge, or discard this patch.
admin/new/pricing/templates/pricing_type_details_main_meta_box.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
                            type="text"
100 100
                            id="PRT_order"
101 101
                            name="PRT_order"
102
-                           value="<?php echo  esc_attr($price_type->order());  ?>"
102
+                           value="<?php echo  esc_attr($price_type->order()); ?>"
103 103
                     />
104 104
                     <p class="description">
105 105
                         <?php esc_html_e('The order that Price Types are applied.', 'event_espresso'); ?>
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
                     <?php echo wp_kses($base_type_select, AllowedTags::getWithFormTags()); ?>
22 22
                     <p class="description">
23 23
                         <?php printf(
24
-                            esc_html__(
25
-                                'Choosing a basic type allows us to quickly configure a bunch of other options for you.%1$sAll events need to have at least one Base Price type option.%1$sDiscounts reduce the price of an event, Surcharges increase the price.%1$sTaxes are applied to the final total.',
26
-                                'event_espresso'
27
-                            ),
28
-                            '<br/>'
29
-                        ); ?>
24
+							esc_html__(
25
+								'Choosing a basic type allows us to quickly configure a bunch of other options for you.%1$sAll events need to have at least one Base Price type option.%1$sDiscounts reduce the price of an event, Surcharges increase the price.%1$sTaxes are applied to the final total.',
26
+								'event_espresso'
27
+							),
28
+							'<br/>'
29
+						); ?>
30 30
                     </p>
31 31
                 </td>
32 32
             </tr>
@@ -73,21 +73,21 @@  discard block
 block discarded – undo
73 73
                         <?php esc_html_e('Fixed', 'event_espresso'); ?>
74 74
                     </label>
75 75
                     <p class="description"><?php
76
-                        esc_html_e(
77
-                            'Whether this Price Type will be applied as a percentage or applied as a set fixed amount.',
78
-                            'event_espresso'
79
-                        ); ?>
76
+						esc_html_e(
77
+							'Whether this Price Type will be applied as a percentage or applied as a set fixed amount.',
78
+							'event_espresso'
79
+						); ?>
80 80
                     </p>
81 81
                     <?php if ($price_type->base_type() == EEM_Price_Type::base_type_tax) :
82
-                        // base type is tax so let's just let the user know that taxes are always percentage.
83
-                        ?>
82
+						// base type is tax so let's just let the user know that taxes are always percentage.
83
+						?>
84 84
                         <p class="description" style="color:#E44064">
85 85
                             <?php
86
-                            esc_html_e(
87
-                                'The selected base type for this price type is "Tax".  Taxes are always assumed to be a percentage.  If you want to use a fixed value for a tax then please change the base type to a surcharge.',
88
-                                'event_espresso'
89
-                            );
90
-                            ?>
86
+							esc_html_e(
87
+								'The selected base type for this price type is "Tax".  Taxes are always assumed to be a percentage.  If you want to use a fixed value for a tax then please change the base type to a surcharge.',
88
+								'event_espresso'
89
+							);
90
+							?>
91 91
                         </p>
92 92
                     <?php endif; ?>
93 93
                 </td>
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
                     </p>
111 111
                     <p class="description">
112 112
                         <?php
113
-                        printf(
114
-                            esc_html__(
115
-                                'Price types are applied sequentially according to their Order, where higher ordered Price Types will affect lower ordered Price Types.%1$sPrice types with equal Orders will be applied in parallel to whatever total precedes them and will not affect each other. Actual Prices will be set to "0" so that they are processed first. Taxes will be always be applied last but their order will still determine if they are applied in parallel or as compound taxes (one tax on top of the other).',
116
-                                'event_espresso'
117
-                            ),
118
-                            '<br/>'
119
-                        ); ?>
113
+						printf(
114
+							esc_html__(
115
+								'Price types are applied sequentially according to their Order, where higher ordered Price Types will affect lower ordered Price Types.%1$sPrice types with equal Orders will be applied in parallel to whatever total precedes them and will not affect each other. Actual Prices will be set to "0" so that they are processed first. Taxes will be always be applied last but their order will still determine if they are applied in parallel or as compound taxes (one tax on top of the other).',
116
+								'event_espresso'
117
+							),
118
+							'<br/>'
119
+						); ?>
120 120
                     </p>
121 121
                 </td>
122 122
             </tr>
Please login to merge, or discard this patch.
admin/new/pricing/templates/pricing_details_main_meta_box.template.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
                 </th>
21 21
                 <td>
22 22
                     <?php if ($default_base_price) : ?>
23
-                        <input type='hidden' name='PRT_ID' id='PRT_ID' value="<?php echo esc_attr($price->type());?>" />
23
+                        <input type='hidden' name='PRT_ID' id='PRT_ID' value="<?php echo esc_attr($price->type()); ?>" />
24 24
                         <p class="description">
25 25
                             <?php
26 26
                             esc_html_e(
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
                     <label for="PRT_ID">
20 20
                         <?php esc_html_e('Type', 'event_espresso'); ?>
21 21
                         <?php echo wp_kses(
22
-                            EEH_Template::get_help_tab_link('type_field_info'),
23
-                            AllowedTags::getAllowedTags()
24
-                        ); ?>
22
+							EEH_Template::get_help_tab_link('type_field_info'),
23
+							AllowedTags::getAllowedTags()
24
+						); ?>
25 25
                     </label>
26 26
                 </th>
27 27
                 <td>
@@ -29,29 +29,29 @@  discard block
 block discarded – undo
29 29
                         <input type='hidden' name='PRT_ID' id='PRT_ID' value="<?php echo esc_attr($price->type());?>" />
30 30
                         <p class="description">
31 31
                             <?php
32
-                            esc_html_e(
33
-                                'This is the default base price. Every new ticket created will start off with this base price.',
34
-                                'event_espresso'
35
-                            );
36
-                            ?>
32
+							esc_html_e(
33
+								'This is the default base price. Every new ticket created will start off with this base price.',
34
+								'event_espresso'
35
+							);
36
+							?>
37 37
                         </p>
38 38
                     <?php else : ?>
39 39
                         <?php echo wp_kses(
40
-                            EEH_Form_Fields::select_input(
41
-                                'PRT_ID',
42
-                                $price_types,
43
-                                $price->type(),
44
-                                'id="PRT_ID"'
45
-                            ),
46
-                            AllowedTags::getWithFormTags()
47
-                        ); ?>
40
+							EEH_Form_Fields::select_input(
41
+								'PRT_ID',
42
+								$price_types,
43
+								$price->type(),
44
+								'id="PRT_ID"'
45
+							),
46
+							AllowedTags::getWithFormTags()
47
+						); ?>
48 48
                         <p class="description">
49 49
                             <?php
50
-                            esc_html_e(
51
-                                'Price Modifier. Default items will apply to ALL new events you create.',
52
-                                'event_espresso'
53
-                            );
54
-                            ?>
50
+							esc_html_e(
51
+								'Price Modifier. Default items will apply to ALL new events you create.',
52
+								'event_espresso'
53
+							);
54
+							?>
55 55
                         </p>
56 56
                     <?php endif; ?>
57 57
                 </td>
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
                     <label for="PRC_name">
62 62
                         <?php esc_html_e('Name', 'event_espresso'); ?>
63 63
                         <?php echo wp_kses(
64
-                            EEH_Template::get_help_tab_link('name_field_info'),
65
-                            AllowedTags::getAllowedTags()
66
-                        ); ?>
64
+							EEH_Template::get_help_tab_link('name_field_info'),
65
+							AllowedTags::getAllowedTags()
66
+						); ?>
67 67
                     </label>
68 68
                 </th>
69 69
                 <td>
@@ -79,15 +79,15 @@  discard block
 block discarded – undo
79 79
                     <label for="PRC_desc">
80 80
                         <?php esc_html_e('Description', 'event_espresso'); ?>
81 81
                         <?php echo wp_kses(
82
-                            EEH_Template::get_help_tab_link('description_field_info'),
83
-                            AllowedTags::getAllowedTags()
84
-                        ); ?>
82
+							EEH_Template::get_help_tab_link('description_field_info'),
83
+							AllowedTags::getAllowedTags()
84
+						); ?>
85 85
                     </label>
86 86
                 </th>
87 87
                 <td>
88 88
                     <textarea id="PRC_desc" name="PRC_desc" rows="5"><?php
89
-                        echo esc_textarea($price->get_f('PRC_desc'));
90
-                    ?></textarea>
89
+						echo esc_textarea($price->get_f('PRC_desc'));
90
+					?></textarea>
91 91
                 </td>
92 92
             </tr>
93 93
             <tr>
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
                     <label for="PRC_amount">
96 96
                         <?php esc_html_e('Amount', 'event_espresso'); ?>
97 97
                         <?php echo wp_kses(
98
-                            EEH_Template::get_help_tab_link('amount_field_info'),
99
-                            AllowedTags::getAllowedTags()
100
-                        ); ?>
98
+							EEH_Template::get_help_tab_link('amount_field_info'),
99
+							AllowedTags::getAllowedTags()
100
+						); ?>
101 101
                     </label>
102 102
                 </th>
103 103
                 <td>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,8 @@  discard block
 block discarded – undo
35 35
                             );
36 36
                             ?>
37 37
                         </p>
38
-                    <?php else : ?>
38
+                    <?php else {
39
+	: ?>
39 40
                         <?php echo wp_kses(
40 41
                             EEH_Form_Fields::select_input(
41 42
                                 'PRT_ID',
@@ -44,7 +45,9 @@  discard block
 block discarded – undo
44 45
                                 'id="PRT_ID"'
45 46
                             ),
46 47
                             AllowedTags::getWithFormTags()
47
-                        ); ?>
48
+                        );
49
+}
50
+?>
48 51
                         <p class="description">
49 52
                             <?php
50 53
                             esc_html_e(
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_venues-details.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,43 +5,43 @@
 block discarded – undo
5 5
 global $post;
6 6
 ?>
7 7
 <div class="venue-content">
8
-<?php if ( apply_filters( 'FHEE__content_espresso_venues_details_template__display_entry_meta', TRUE )): ?>
8
+<?php if (apply_filters('FHEE__content_espresso_venues_details_template__display_entry_meta', TRUE)): ?>
9 9
 	<div class="entry-meta">
10
-		<span class="tags-links"><?php espresso_venue_categories( $post->ID, TRUE, TRUE ); ?></span>
10
+		<span class="tags-links"><?php espresso_venue_categories($post->ID, TRUE, TRUE); ?></span>
11 11
 		<?php
12
-			if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
12
+			if ( ! post_password_required() && (comments_open() || get_comments_number())) :
13 13
 		?>
14
-		<span class="comments-link"><?php comments_popup_link( esc_html__( 'Leave a comment', 'event_espresso' ), esc_html__( '1 Comment', 'event_espresso' ), esc_html__( '% Comments', 'event_espresso' ) ); ?></span>
14
+		<span class="comments-link"><?php comments_popup_link(esc_html__('Leave a comment', 'event_espresso'), esc_html__('1 Comment', 'event_espresso'), esc_html__('% Comments', 'event_espresso')); ?></span>
15 15
 		<?php
16 16
 			endif;
17 17
 
18
-			edit_post_link( esc_html__( 'Edit', 'event_espresso' ), '<span class="edit-link">', '</span>' );
18
+			edit_post_link(esc_html__('Edit', 'event_espresso'), '<span class="edit-link">', '</span>');
19 19
 		?>
20 20
 	</div>
21 21
 <?php  endif; ?>
22 22
 	
23 23
 	<h3 class="event-venues-h3 ee-event-h3">
24
-		<?php esc_html_e( 'Details', 'event_espresso' ); ?>
24
+		<?php esc_html_e('Details', 'event_espresso'); ?>
25 25
 	</h3>
26 26
 
27
-	<?php if ( $venue_phone = espresso_venue_phone( $post->ID, FALSE )) : ?>
27
+	<?php if ($venue_phone = espresso_venue_phone($post->ID, FALSE)) : ?>
28 28
 	<p>
29
-		<span class="small-text"><strong><?php esc_html_e( 'Venue Phone:', 'event_espresso' ); ?> </strong></span><?php echo wp_kses($venue_phone, AllowedTags::getAllowedTags()); ?>
29
+		<span class="small-text"><strong><?php esc_html_e('Venue Phone:', 'event_espresso'); ?> </strong></span><?php echo wp_kses($venue_phone, AllowedTags::getAllowedTags()); ?>
30 30
 	</p>
31 31
 	<?php endif; ?>
32
-	<?php if ( $venue_website = espresso_venue_website( $post->ID, FALSE )) : ?>
32
+	<?php if ($venue_website = espresso_venue_website($post->ID, FALSE)) : ?>
33 33
 	<p>
34
-		<span class="small-text"><strong><?php esc_html_e( 'Venue Website:', 'event_espresso' ); ?> </strong></span><?php echo wp_kses($venue_website, AllowedTags::getAllowedTags()); ?>
34
+		<span class="small-text"><strong><?php esc_html_e('Venue Website:', 'event_espresso'); ?> </strong></span><?php echo wp_kses($venue_website, AllowedTags::getAllowedTags()); ?>
35 35
 	</p>
36 36
 	<?php endif; ?>
37 37
 	<?php 
38
-	do_action( 'AHEE__content_espresso_venues_details_template__before_the_content', $post ); 
39
-	if ( is_archive() && has_excerpt( $post->ID )) {
38
+	do_action('AHEE__content_espresso_venues_details_template__before_the_content', $post); 
39
+	if (is_archive() && has_excerpt($post->ID)) {
40 40
 		the_excerpt();
41 41
 	} else {
42 42
 		the_content();
43 43
 	}
44
-	do_action( 'AHEE__content_espresso_venues_details_template__after_the_content', $post ); 
44
+	do_action('AHEE__content_espresso_venues_details_template__after_the_content', $post); 
45 45
 	?>
46 46
 </div>
47 47
 <!-- .venue-content -->
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_event_attendees.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
16 16
 
17 17
 $gravatar = $show_gravatar
18
-    ? get_avatar(
19
-        $contact->email(),
20
-        (int) apply_filters('FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32)
21
-    )
22
-    : '';
18
+	? get_avatar(
19
+		$contact->email(),
20
+		(int) apply_filters('FHEE__loop-espresso_attendees-shortcode__template__avatar_size', 32)
21
+	)
22
+	: '';
23 23
 ?>
24 24
 <?php do_action( 'AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar ); ?>
25 25
 <li><?php echo wp_kses($gravatar . '&nbsp;' .  $contact->full_name(true), AllowedTags::getAllowedTags()); ?></li>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     )
22 22
     : '';
23 23
 ?>
24
-<?php do_action( 'AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar ); ?>
25
-<li><?php echo wp_kses($gravatar . '&nbsp;' .  $contact->full_name(true), AllowedTags::getAllowedTags()); ?></li>
26
-<?php do_action( 'AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar ); ?>
24
+<?php do_action('AHEE__content-espresso_event_attendees__before', $contact, $show_gravatar); ?>
25
+<li><?php echo wp_kses($gravatar.'&nbsp;'.$contact->full_name(true), AllowedTags::getAllowedTags()); ?></li>
26
+<?php do_action('AHEE__content-espresso_event_attendees__after', $contact, $show_gravatar); ?>
Please login to merge, or discard this patch.
core/libraries/form_sections/payment_methods/EE_Billing_Info_Form.form.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
      */
84 84
     public function html_class(): string
85 85
     {
86
-        return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form';
86
+        return ! empty($this->_html_class) ? $this->_html_class.' ee-billing-form' : 'ee-billing-form';
87 87
     }
88 88
 }
89 89
 // End of file EE_Billing_Info_Form.form.php
Please login to merge, or discard this patch.
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -14,75 +14,75 @@
 block discarded – undo
14 14
  */
15 15
 class EE_Billing_Info_Form extends EE_Form_Section_Proper
16 16
 {
17
-    /**
18
-     * The payment method this billing form is for
19
-     * @var EE_Payment_Method
20
-     */
21
-    protected $_pm_instance;
17
+	/**
18
+	 * The payment method this billing form is for
19
+	 * @var EE_Payment_Method
20
+	 */
21
+	protected $_pm_instance;
22 22
 
23 23
 
24
-    /**
25
-     *
26
-     * @param EE_Payment_Method $payment_method
27
-     * @param array             $options_array @see EE_Form_Section_Proper::__construct()
28
-     * @throws EE_Error
29
-     */
30
-    public function __construct(EE_Payment_Method $payment_method, $options_array = array())
31
-    {
32
-        $this->_pm_instance = $payment_method;
33
-        $this->_layout_strategy = new EE_Div_Per_Section_Layout();
34
-        parent::__construct($options_array);
35
-    }
24
+	/**
25
+	 *
26
+	 * @param EE_Payment_Method $payment_method
27
+	 * @param array             $options_array @see EE_Form_Section_Proper::__construct()
28
+	 * @throws EE_Error
29
+	 */
30
+	public function __construct(EE_Payment_Method $payment_method, $options_array = array())
31
+	{
32
+		$this->_pm_instance = $payment_method;
33
+		$this->_layout_strategy = new EE_Div_Per_Section_Layout();
34
+		parent::__construct($options_array);
35
+	}
36 36
 
37 37
 
38 38
 
39
-    /**
40
-     * Sets the payment method for this billing form
41
-     * @param EE_Payment_Method $payment_method
42
-     * @return void
43
-     */
44
-    public function set_payment_method(EE_Payment_Method $payment_method)
45
-    {
46
-        $this->_pm_instance = $payment_method;
47
-    }
39
+	/**
40
+	 * Sets the payment method for this billing form
41
+	 * @param EE_Payment_Method $payment_method
42
+	 * @return void
43
+	 */
44
+	public function set_payment_method(EE_Payment_Method $payment_method)
45
+	{
46
+		$this->_pm_instance = $payment_method;
47
+	}
48 48
 
49 49
 
50 50
 
51
-    /**
52
-     * Returns the instance of the payment method this billing form is for
53
-     * @return EE_Payment_Method
54
-     */
55
-    public function payment_method(): EE_Payment_Method
56
-    {
57
-        return $this->_pm_instance;
58
-    }
51
+	/**
52
+	 * Returns the instance of the payment method this billing form is for
53
+	 * @return EE_Payment_Method
54
+	 */
55
+	public function payment_method(): EE_Payment_Method
56
+	{
57
+		return $this->_pm_instance;
58
+	}
59 59
 
60 60
 
61 61
 
62
-    /**
63
-     * payment_fields_autofilled_notice_html
64
-     *
65
-     * @return EE_Form_Section_HTML
66
-     */
67
-    public function payment_fields_autofilled_notice_html(): EE_Form_Section_HTML
68
-    {
69
-        return  new EE_Form_Section_HTML(
70
-            EEH_HTML::p(
71
-                apply_filters('FHEE__EE_Billing_Info_Form__payment_fields_autofilled_notice_html_text', esc_html__('Payment fields have been autofilled because you are in debug mode', 'event_espresso')),
72
-                '',
73
-                'important-notice'
74
-            )
75
-        );
76
-    }
62
+	/**
63
+	 * payment_fields_autofilled_notice_html
64
+	 *
65
+	 * @return EE_Form_Section_HTML
66
+	 */
67
+	public function payment_fields_autofilled_notice_html(): EE_Form_Section_HTML
68
+	{
69
+		return  new EE_Form_Section_HTML(
70
+			EEH_HTML::p(
71
+				apply_filters('FHEE__EE_Billing_Info_Form__payment_fields_autofilled_notice_html_text', esc_html__('Payment fields have been autofilled because you are in debug mode', 'event_espresso')),
72
+				'',
73
+				'important-notice'
74
+			)
75
+		);
76
+	}
77 77
 
78 78
 
79 79
 
80
-    /**
81
-     * @return string
82
-     */
83
-    public function html_class(): string
84
-    {
85
-        return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form';
86
-    }
80
+	/**
81
+	 * @return string
82
+	 */
83
+	public function html_class(): string
84
+	{
85
+		return ! empty($this->_html_class) ? $this->_html_class . ' ee-billing-form' : 'ee-billing-form';
86
+	}
87 87
 }
88 88
 // End of file EE_Billing_Info_Form.form.php
Please login to merge, or discard this patch.
modules/ticket_selector/TicketSelectorRowSimple.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -14,31 +14,31 @@
 block discarded – undo
14 14
  */
15 15
 class TicketSelectorRowSimple extends TicketSelectorRow
16 16
 {
17
-    /**
18
-     * @throws EE_Error
19
-     * @throws ReflectionException
20
-     */
21
-    public function setupTicketStatusDisplay()
22
-    {
23
-        $remaining = $this->ticket->remaining();
24
-        $this->setTicketMinAndMax($remaining);
25
-        $this->setTicketStatusClasses($remaining);
26
-        $this->setTicketStatusDisplay($remaining);
27
-    }
17
+	/**
18
+	 * @throws EE_Error
19
+	 * @throws ReflectionException
20
+	 */
21
+	public function setupTicketStatusDisplay()
22
+	{
23
+		$remaining = $this->ticket->remaining();
24
+		$this->setTicketMinAndMax($remaining);
25
+		$this->setTicketStatusClasses($remaining);
26
+		$this->setTicketStatusDisplay($remaining);
27
+	}
28 28
 
29 29
 
30
-    /**
31
-     * @return bool|string
32
-     * @throws EE_Error
33
-     */
34
-    public function getTicketDescription()
35
-    {
36
-        $filtered_row_content = $this->getFilteredRowContents();
37
-        if ($filtered_row_content !== false) {
38
-            remove_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true');
39
-            add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_false');
40
-            return $filtered_row_content;
41
-        }
42
-        return $this->ticket->description();
43
-    }
30
+	/**
31
+	 * @return bool|string
32
+	 * @throws EE_Error
33
+	 */
34
+	public function getTicketDescription()
35
+	{
36
+		$filtered_row_content = $this->getFilteredRowContents();
37
+		if ($filtered_row_content !== false) {
38
+			remove_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_true');
39
+			add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector_submit', '__return_false');
40
+			return $filtered_row_content;
41
+		}
42
+		return $this->ticket->description();
43
+	}
44 44
 }
Please login to merge, or discard this patch.