Completed
Branch BUG/3575-event-deletion-previe... (bbeda1)
by
unknown
06:40 queued 04:49
created
Extend_Registration_Form_Questions_Admin_List_Table.class.php 2 patches
Indentation   +107 added lines, -107 removed lines patch added patch discarded remove patch
@@ -16,123 +16,123 @@
 block discarded – undo
16 16
 class Extend_Registration_Form_Questions_Admin_List_Table extends Registration_Form_Questions_Admin_List_Table
17 17
 {
18 18
 
19
-    public function __construct($admin_page)
20
-    {
21
-        parent::__construct($admin_page);
22
-    }
19
+	public function __construct($admin_page)
20
+	{
21
+		parent::__construct($admin_page);
22
+	}
23 23
 
24
-    public function column_display_text(EE_Question $item)
25
-    {
26
-        $system_question = $item->is_system_question();
27
-        $actions = array();
24
+	public function column_display_text(EE_Question $item)
25
+	{
26
+		$system_question = $item->is_system_question();
27
+		$actions = array();
28 28
 
29
-        if (! defined('REG_ADMIN_URL')) {
30
-            define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
31
-        }
29
+		if (! defined('REG_ADMIN_URL')) {
30
+			define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
31
+		}
32 32
 
33
-        $edit_query_args = array(
34
-            'action' => 'edit_question',
35
-            'QST_ID' => $item->ID(),
36
-        );
33
+		$edit_query_args = array(
34
+			'action' => 'edit_question',
35
+			'QST_ID' => $item->ID(),
36
+		);
37 37
 
38
-        $trash_query_args = array(
39
-            'action' => 'trash_question',
40
-            'QST_ID' => $item->ID(),
41
-        );
38
+		$trash_query_args = array(
39
+			'action' => 'trash_question',
40
+			'QST_ID' => $item->ID(),
41
+		);
42 42
 
43
-        $restore_query_args = array(
44
-            'action' => 'restore_question',
45
-            'QST_ID' => $item->ID(),
46
-        );
43
+		$restore_query_args = array(
44
+			'action' => 'restore_question',
45
+			'QST_ID' => $item->ID(),
46
+		);
47 47
 
48
-        $delete_query_args = array(
49
-            'action' => 'delete_questions',
50
-            'QST_ID' => $item->ID(),
51
-        );
48
+		$delete_query_args = array(
49
+			'action' => 'delete_questions',
50
+			'QST_ID' => $item->ID(),
51
+		);
52 52
 
53
-        $duplicate_query_args = array(
54
-            'action' => 'duplicate_question',
55
-            'QST_ID' => $item->ID(),
56
-        );
53
+		$duplicate_query_args = array(
54
+			'action' => 'duplicate_question',
55
+			'QST_ID' => $item->ID(),
56
+		);
57 57
 
58
-        $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
59
-        $trash_link = EE_Admin_Page::add_query_args_and_nonce($trash_query_args, EE_FORMS_ADMIN_URL);
60
-        $restore_link = EE_Admin_Page::add_query_args_and_nonce($restore_query_args, EE_FORMS_ADMIN_URL);
61
-        $delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_FORMS_ADMIN_URL);
62
-        $duplicate_link = EE_Admin_Page::add_query_args_and_nonce($duplicate_query_args, EE_FORMS_ADMIN_URL);
58
+		$edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
59
+		$trash_link = EE_Admin_Page::add_query_args_and_nonce($trash_query_args, EE_FORMS_ADMIN_URL);
60
+		$restore_link = EE_Admin_Page::add_query_args_and_nonce($restore_query_args, EE_FORMS_ADMIN_URL);
61
+		$delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_FORMS_ADMIN_URL);
62
+		$duplicate_link = EE_Admin_Page::add_query_args_and_nonce($duplicate_query_args, EE_FORMS_ADMIN_URL);
63 63
 
64
-        if (
65
-            EE_Registry::instance()->CAP->current_user_can(
66
-                'ee_edit_question',
67
-                'espresso_registration_form_edit_question',
68
-                $item->ID()
69
-            )
70
-        ) {
71
-            $actions = array(
72
-                'edit' => '<a href="' . $edit_link . '" title="'
73
-                          . esc_html__('Edit Question', 'event_espresso') . '">'
74
-                          . esc_html__('Edit', 'event_espresso') . '</a>',
75
-            );
76
-        }
64
+		if (
65
+			EE_Registry::instance()->CAP->current_user_can(
66
+				'ee_edit_question',
67
+				'espresso_registration_form_edit_question',
68
+				$item->ID()
69
+			)
70
+		) {
71
+			$actions = array(
72
+				'edit' => '<a href="' . $edit_link . '" title="'
73
+						  . esc_html__('Edit Question', 'event_espresso') . '">'
74
+						  . esc_html__('Edit', 'event_espresso') . '</a>',
75
+			);
76
+		}
77 77
 
78
-        if (
79
-            ! $system_question
80
-            && $this->_view != 'trash'
81
-            && EE_Registry::instance()->CAP->current_user_can(
82
-                'ee_delete_question',
83
-                'espresso_registration_form_trash_question',
84
-                $item->ID()
85
-            )
86
-        ) {
87
-                $actions['delete'] = '<a href="' . $trash_link . '" title="'
88
-                                     . esc_html__('Trash Question', 'event_espresso') . '">'
89
-                                     . esc_html__('Trash', 'event_espresso') . '</a>';
90
-        }
78
+		if (
79
+			! $system_question
80
+			&& $this->_view != 'trash'
81
+			&& EE_Registry::instance()->CAP->current_user_can(
82
+				'ee_delete_question',
83
+				'espresso_registration_form_trash_question',
84
+				$item->ID()
85
+			)
86
+		) {
87
+				$actions['delete'] = '<a href="' . $trash_link . '" title="'
88
+									 . esc_html__('Trash Question', 'event_espresso') . '">'
89
+									 . esc_html__('Trash', 'event_espresso') . '</a>';
90
+		}
91 91
 
92
-        if ($this->_view == 'trash') {
93
-            if (
94
-                EE_Registry::instance()->CAP->current_user_can(
95
-                    'ee_delete_question',
96
-                    'espresso_registration_form_restore_question',
97
-                    $item->ID()
98
-                )
99
-            ) {
100
-                $actions['restore'] = '<a href="' . $restore_link . '" title="'
101
-                                      . esc_html__('Restore Question', 'event_espresso') . '">'
102
-                                      . esc_html__('Restore', 'event_espresso') . '</a>';
103
-            }
104
-            if (
105
-                $item->count_related('Answer') === 0
106
-                && EE_Registry::instance()->CAP->current_user_can(
107
-                    'ee_delete_question',
108
-                    'espresso_registration_form_delete_questions',
109
-                    $item->ID()
110
-                )
111
-            ) {
112
-                    $actions['delete'] = '<a href="' . $delete_link . '" title="'
113
-                                         . esc_html__('Delete Question Permanently', 'event_espresso') . '">'
114
-                                         . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
115
-            }
116
-        }
117
-        if (
118
-            EE_Registry::instance()->CAP->current_user_can(
119
-                'ee_edit_questions',
120
-                'espresso_registration_form_edit_question'
121
-            )
122
-        ) {
123
-            $actions['duplicate'] = '<a href="' . $duplicate_link . '" title="'
124
-                                    . esc_html__('Duplicate Question', 'event_espresso') . '">'
125
-                                    . esc_html__('Duplicate', 'event_espresso') . '</a>';
126
-        }
92
+		if ($this->_view == 'trash') {
93
+			if (
94
+				EE_Registry::instance()->CAP->current_user_can(
95
+					'ee_delete_question',
96
+					'espresso_registration_form_restore_question',
97
+					$item->ID()
98
+				)
99
+			) {
100
+				$actions['restore'] = '<a href="' . $restore_link . '" title="'
101
+									  . esc_html__('Restore Question', 'event_espresso') . '">'
102
+									  . esc_html__('Restore', 'event_espresso') . '</a>';
103
+			}
104
+			if (
105
+				$item->count_related('Answer') === 0
106
+				&& EE_Registry::instance()->CAP->current_user_can(
107
+					'ee_delete_question',
108
+					'espresso_registration_form_delete_questions',
109
+					$item->ID()
110
+				)
111
+			) {
112
+					$actions['delete'] = '<a href="' . $delete_link . '" title="'
113
+										 . esc_html__('Delete Question Permanently', 'event_espresso') . '">'
114
+										 . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
115
+			}
116
+		}
117
+		if (
118
+			EE_Registry::instance()->CAP->current_user_can(
119
+				'ee_edit_questions',
120
+				'espresso_registration_form_edit_question'
121
+			)
122
+		) {
123
+			$actions['duplicate'] = '<a href="' . $duplicate_link . '" title="'
124
+									. esc_html__('Duplicate Question', 'event_espresso') . '">'
125
+									. esc_html__('Duplicate', 'event_espresso') . '</a>';
126
+		}
127 127
 
128
-        $content = EE_Registry::instance()->CAP->current_user_can(
129
-            'ee_edit_question',
130
-            'espresso_registration_form_edit_question',
131
-            $item->ID()
132
-        )
133
-            ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>'
134
-            : $item->display_text();
135
-        $content .= $this->row_actions($actions);
136
-        return $content;
137
-    }
128
+		$content = EE_Registry::instance()->CAP->current_user_can(
129
+			'ee_edit_question',
130
+			'espresso_registration_form_edit_question',
131
+			$item->ID()
132
+		)
133
+			? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>'
134
+			: $item->display_text();
135
+		$content .= $this->row_actions($actions);
136
+		return $content;
137
+	}
138 138
 }
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         $system_question = $item->is_system_question();
27 27
         $actions = array();
28 28
 
29
-        if (! defined('REG_ADMIN_URL')) {
29
+        if ( ! defined('REG_ADMIN_URL')) {
30 30
             define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
31 31
         }
32 32
 
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
             )
70 70
         ) {
71 71
             $actions = array(
72
-                'edit' => '<a href="' . $edit_link . '" title="'
73
-                          . esc_html__('Edit Question', 'event_espresso') . '">'
74
-                          . esc_html__('Edit', 'event_espresso') . '</a>',
72
+                'edit' => '<a href="'.$edit_link.'" title="'
73
+                          . esc_html__('Edit Question', 'event_espresso').'">'
74
+                          . esc_html__('Edit', 'event_espresso').'</a>',
75 75
             );
76 76
         }
77 77
 
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
                 $item->ID()
85 85
             )
86 86
         ) {
87
-                $actions['delete'] = '<a href="' . $trash_link . '" title="'
88
-                                     . esc_html__('Trash Question', 'event_espresso') . '">'
89
-                                     . esc_html__('Trash', 'event_espresso') . '</a>';
87
+                $actions['delete'] = '<a href="'.$trash_link.'" title="'
88
+                                     . esc_html__('Trash Question', 'event_espresso').'">'
89
+                                     . esc_html__('Trash', 'event_espresso').'</a>';
90 90
         }
91 91
 
92 92
         if ($this->_view == 'trash') {
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
                     $item->ID()
98 98
                 )
99 99
             ) {
100
-                $actions['restore'] = '<a href="' . $restore_link . '" title="'
101
-                                      . esc_html__('Restore Question', 'event_espresso') . '">'
102
-                                      . esc_html__('Restore', 'event_espresso') . '</a>';
100
+                $actions['restore'] = '<a href="'.$restore_link.'" title="'
101
+                                      . esc_html__('Restore Question', 'event_espresso').'">'
102
+                                      . esc_html__('Restore', 'event_espresso').'</a>';
103 103
             }
104 104
             if (
105 105
                 $item->count_related('Answer') === 0
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
                     $item->ID()
110 110
                 )
111 111
             ) {
112
-                    $actions['delete'] = '<a href="' . $delete_link . '" title="'
113
-                                         . esc_html__('Delete Question Permanently', 'event_espresso') . '">'
114
-                                         . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
112
+                    $actions['delete'] = '<a href="'.$delete_link.'" title="'
113
+                                         . esc_html__('Delete Question Permanently', 'event_espresso').'">'
114
+                                         . esc_html__('Delete Permanently', 'event_espresso').'</a>';
115 115
             }
116 116
         }
117 117
         if (
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
                 'espresso_registration_form_edit_question'
121 121
             )
122 122
         ) {
123
-            $actions['duplicate'] = '<a href="' . $duplicate_link . '" title="'
124
-                                    . esc_html__('Duplicate Question', 'event_espresso') . '">'
125
-                                    . esc_html__('Duplicate', 'event_espresso') . '</a>';
123
+            $actions['duplicate'] = '<a href="'.$duplicate_link.'" title="'
124
+                                    . esc_html__('Duplicate Question', 'event_espresso').'">'
125
+                                    . esc_html__('Duplicate', 'event_espresso').'</a>';
126 126
         }
127 127
 
128 128
         $content = EE_Registry::instance()->CAP->current_user_can(
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             'espresso_registration_form_edit_question',
131 131
             $item->ID()
132 132
         )
133
-            ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->display_text() . '</a></strong>'
133
+            ? '<strong><a class="row-title" href="'.$edit_link.'">'.$item->display_text().'</a></strong>'
134 134
             : $item->display_text();
135 135
         $content .= $this->row_actions($actions);
136 136
         return $content;
Please login to merge, or discard this patch.
help_tours/Registration_Form_Questions_Overview_Help_Tour.class.php 2 patches
Indentation   +139 added lines, -139 removed lines patch added patch discarded remove patch
@@ -28,155 +28,155 @@
 block discarded – undo
28 28
 class Registration_Form_Questions_Overview_Help_Tour extends EE_Help_Tour
29 29
 {
30 30
 
31
-    protected function _set_tour_properties()
32
-    {
33
-        $this->_label = esc_html__('Questions Overview Tour', 'event_espresso');
34
-        $this->_slug = $this->_is_caf ? 'questions-overview-caf-joyride' : 'questions-overview-joyride';
35
-    }
31
+	protected function _set_tour_properties()
32
+	{
33
+		$this->_label = esc_html__('Questions Overview Tour', 'event_espresso');
34
+		$this->_slug = $this->_is_caf ? 'questions-overview-caf-joyride' : 'questions-overview-joyride';
35
+	}
36 36
 
37
-    protected function _set_tour_stops()
38
-    {
39
-        $this->_stops = array(
40
-            10  => array(
41
-                'content' => $this->_start(),
42
-            ),
43
-            30  => array(
44
-                'id'      => 'display_text',
45
-                'content' => $this->_display_text_stop(),
46
-                'options' => array(
47
-                    'tipLocation'    => 'top',
48
-                    'tipAdjustmentX' => -5,
49
-                    'tipAdjustmentY' => -25,
50
-                ),
51
-            ),
52
-            40  => array(
53
-                'id'      => 'admin_label',
54
-                'content' => $this->_admin_label_stop(),
55
-                'options' => array(
56
-                    'tipLocation'    => 'top',
57
-                    'tipAdjustmentX' => 20,
58
-                    'tipAdjustmentY' => -25,
59
-                ),
60
-            ),
61
-            50  => array(
62
-                'id'      => 'type',
63
-                'content' => $this->_type_stop(),
64
-                'options' => array(
65
-                    'tipLocation'    => 'top',
66
-                    'tipAdjustmentX' => -5,
67
-                    'tipAdjustmentY' => -25,
68
-                ),
69
-            ),
70
-            60  => array(
71
-                'id'      => 'values',
72
-                'content' => $this->_values_stop(),
73
-                'options' => array(
74
-                    'tipLocation'    => 'top',
75
-                    'tipAdjustmentX' => -5,
76
-                    'tipAdjustmentY' => -25,
77
-                ),
78
-            ),
79
-            70  => array(
80
-                'id'      => 'required',
81
-                'content' => $this->_required_stop(),
82
-                'options' => array(
83
-                    'tipLocation'    => 'top',
84
-                    'tipAdjustmentY' => -20,
85
-                    'tipAdjustmentX' => -15,
86
-                ),
87
-            ),
88
-            80  => array(
89
-                'class'   => 'bulkactions',
90
-                'content' => $this->_bulk_actions_stop(),
91
-                'options' => array(
92
-                    'tipLocation'    => 'top',
93
-                    'tipAdjustmentY' => -30,
94
-                    'tipAdjustmentX' => -15,
95
-                ),
96
-            ),
97
-            90  => array(
98
-                'id'      => 'event-espresso_page_espresso_registration_form-search-input',
99
-                'content' => $this->_search_stop(),
100
-                'options' => array(
101
-                    'tipLocation'    => 'left',
102
-                    'tipAdjustmentY' => -50,
103
-                    'tipAdjustmentX' => -15,
104
-                ),
105
-            ),
106
-            100 => array(
107
-                'id'      => 'add-new-question',
108
-                'content' => $this->_add_new_question_stop(),
109
-                'options' => array(
110
-                    'tipLocation'    => 'right',
111
-                    'tipAdjustmentY' => -50,
112
-                    'tipAdjustmentX' => 15,
113
-                ),
114
-            ),
115
-        );
116
-    }
37
+	protected function _set_tour_stops()
38
+	{
39
+		$this->_stops = array(
40
+			10  => array(
41
+				'content' => $this->_start(),
42
+			),
43
+			30  => array(
44
+				'id'      => 'display_text',
45
+				'content' => $this->_display_text_stop(),
46
+				'options' => array(
47
+					'tipLocation'    => 'top',
48
+					'tipAdjustmentX' => -5,
49
+					'tipAdjustmentY' => -25,
50
+				),
51
+			),
52
+			40  => array(
53
+				'id'      => 'admin_label',
54
+				'content' => $this->_admin_label_stop(),
55
+				'options' => array(
56
+					'tipLocation'    => 'top',
57
+					'tipAdjustmentX' => 20,
58
+					'tipAdjustmentY' => -25,
59
+				),
60
+			),
61
+			50  => array(
62
+				'id'      => 'type',
63
+				'content' => $this->_type_stop(),
64
+				'options' => array(
65
+					'tipLocation'    => 'top',
66
+					'tipAdjustmentX' => -5,
67
+					'tipAdjustmentY' => -25,
68
+				),
69
+			),
70
+			60  => array(
71
+				'id'      => 'values',
72
+				'content' => $this->_values_stop(),
73
+				'options' => array(
74
+					'tipLocation'    => 'top',
75
+					'tipAdjustmentX' => -5,
76
+					'tipAdjustmentY' => -25,
77
+				),
78
+			),
79
+			70  => array(
80
+				'id'      => 'required',
81
+				'content' => $this->_required_stop(),
82
+				'options' => array(
83
+					'tipLocation'    => 'top',
84
+					'tipAdjustmentY' => -20,
85
+					'tipAdjustmentX' => -15,
86
+				),
87
+			),
88
+			80  => array(
89
+				'class'   => 'bulkactions',
90
+				'content' => $this->_bulk_actions_stop(),
91
+				'options' => array(
92
+					'tipLocation'    => 'top',
93
+					'tipAdjustmentY' => -30,
94
+					'tipAdjustmentX' => -15,
95
+				),
96
+			),
97
+			90  => array(
98
+				'id'      => 'event-espresso_page_espresso_registration_form-search-input',
99
+				'content' => $this->_search_stop(),
100
+				'options' => array(
101
+					'tipLocation'    => 'left',
102
+					'tipAdjustmentY' => -50,
103
+					'tipAdjustmentX' => -15,
104
+				),
105
+			),
106
+			100 => array(
107
+				'id'      => 'add-new-question',
108
+				'content' => $this->_add_new_question_stop(),
109
+				'options' => array(
110
+					'tipLocation'    => 'right',
111
+					'tipAdjustmentY' => -50,
112
+					'tipAdjustmentX' => 15,
113
+				),
114
+			),
115
+		);
116
+	}
117 117
 
118 118
 
119
-    protected function _start()
120
-    {
121
-        $content = '<h3>' . esc_html__('Questions Overview', 'event_espresso') . '</h3>';
122
-        $content .= '<p>'
123
-                    . esc_html__(
124
-                        'This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.',
125
-                        'event_espresso'
126
-                    ) . '</p>';
119
+	protected function _start()
120
+	{
121
+		$content = '<h3>' . esc_html__('Questions Overview', 'event_espresso') . '</h3>';
122
+		$content .= '<p>'
123
+					. esc_html__(
124
+						'This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.',
125
+						'event_espresso'
126
+					) . '</p>';
127 127
 
128
-        return $content;
129
-    }
128
+		return $content;
129
+	}
130 130
 
131
-    protected function _display_text_stop()
132
-    {
133
-        return '<p>' . esc_html__('View available questions.', 'event_espresso') . '</p>';
134
-    }
131
+	protected function _display_text_stop()
132
+	{
133
+		return '<p>' . esc_html__('View available questions.', 'event_espresso') . '</p>';
134
+	}
135 135
 
136
-    protected function _admin_label_stop()
137
-    {
138
-        return '<p>' . esc_html__('View the admin label for your questions.', 'event_espresso') . '</p>';
139
-    }
136
+	protected function _admin_label_stop()
137
+	{
138
+		return '<p>' . esc_html__('View the admin label for your questions.', 'event_espresso') . '</p>';
139
+	}
140 140
 
141
-    protected function _type_stop()
142
-    {
143
-        return '<p>'
144
-               . esc_html__(
145
-                   'View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.',
146
-                   'event_espresso'
147
-               ) . '</p>';
148
-    }
141
+	protected function _type_stop()
142
+	{
143
+		return '<p>'
144
+			   . esc_html__(
145
+				   'View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.',
146
+				   'event_espresso'
147
+			   ) . '</p>';
148
+	}
149 149
 
150
-    protected function _values_stop()
151
-    {
152
-        return '<p>'
153
-               . esc_html__(
154
-                   'View stored values for checkboxes, radio buttons, and select boxes.',
155
-                   'event_espresso'
156
-               ) . '</p>';
157
-    }
150
+	protected function _values_stop()
151
+	{
152
+		return '<p>'
153
+			   . esc_html__(
154
+				   'View stored values for checkboxes, radio buttons, and select boxes.',
155
+				   'event_espresso'
156
+			   ) . '</p>';
157
+	}
158 158
 
159
-    protected function _required_stop()
160
-    {
161
-        return '<p>' . esc_html__('View if a question is required.', 'event_espresso') . '</p>';
162
-    }
159
+	protected function _required_stop()
160
+	{
161
+		return '<p>' . esc_html__('View if a question is required.', 'event_espresso') . '</p>';
162
+	}
163 163
 
164
-    protected function _bulk_actions_stop()
165
-    {
166
-        return '<p>' . esc_html__('Perform bulk actions to multiple questions.', 'event_espresso') . '</p>';
167
-    }
164
+	protected function _bulk_actions_stop()
165
+	{
166
+		return '<p>' . esc_html__('Perform bulk actions to multiple questions.', 'event_espresso') . '</p>';
167
+	}
168 168
 
169
-    protected function _search_stop()
170
-    {
171
-        return '<p>'
172
-               . esc_html__(
173
-                   'Search through questions. The following sources will be searched: Name of Question (display text).',
174
-                   'event_espresso'
175
-               ) . '</p>';
176
-    }
169
+	protected function _search_stop()
170
+	{
171
+		return '<p>'
172
+			   . esc_html__(
173
+				   'Search through questions. The following sources will be searched: Name of Question (display text).',
174
+				   'event_espresso'
175
+			   ) . '</p>';
176
+	}
177 177
 
178
-    protected function _add_new_question_stop()
179
-    {
180
-        return '<p>' . esc_html__('Click here to add a new question.', 'event_espresso') . '</p>';
181
-    }
178
+	protected function _add_new_question_stop()
179
+	{
180
+		return '<p>' . esc_html__('Click here to add a new question.', 'event_espresso') . '</p>';
181
+	}
182 182
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -118,24 +118,24 @@  discard block
 block discarded – undo
118 118
 
119 119
     protected function _start()
120 120
     {
121
-        $content = '<h3>' . esc_html__('Questions Overview', 'event_espresso') . '</h3>';
121
+        $content = '<h3>'.esc_html__('Questions Overview', 'event_espresso').'</h3>';
122 122
         $content .= '<p>'
123 123
                     . esc_html__(
124 124
                         'This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.',
125 125
                         'event_espresso'
126
-                    ) . '</p>';
126
+                    ).'</p>';
127 127
 
128 128
         return $content;
129 129
     }
130 130
 
131 131
     protected function _display_text_stop()
132 132
     {
133
-        return '<p>' . esc_html__('View available questions.', 'event_espresso') . '</p>';
133
+        return '<p>'.esc_html__('View available questions.', 'event_espresso').'</p>';
134 134
     }
135 135
 
136 136
     protected function _admin_label_stop()
137 137
     {
138
-        return '<p>' . esc_html__('View the admin label for your questions.', 'event_espresso') . '</p>';
138
+        return '<p>'.esc_html__('View the admin label for your questions.', 'event_espresso').'</p>';
139 139
     }
140 140
 
141 141
     protected function _type_stop()
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                . esc_html__(
145 145
                    'View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.',
146 146
                    'event_espresso'
147
-               ) . '</p>';
147
+               ).'</p>';
148 148
     }
149 149
 
150 150
     protected function _values_stop()
@@ -153,17 +153,17 @@  discard block
 block discarded – undo
153 153
                . esc_html__(
154 154
                    'View stored values for checkboxes, radio buttons, and select boxes.',
155 155
                    'event_espresso'
156
-               ) . '</p>';
156
+               ).'</p>';
157 157
     }
158 158
 
159 159
     protected function _required_stop()
160 160
     {
161
-        return '<p>' . esc_html__('View if a question is required.', 'event_espresso') . '</p>';
161
+        return '<p>'.esc_html__('View if a question is required.', 'event_espresso').'</p>';
162 162
     }
163 163
 
164 164
     protected function _bulk_actions_stop()
165 165
     {
166
-        return '<p>' . esc_html__('Perform bulk actions to multiple questions.', 'event_espresso') . '</p>';
166
+        return '<p>'.esc_html__('Perform bulk actions to multiple questions.', 'event_espresso').'</p>';
167 167
     }
168 168
 
169 169
     protected function _search_stop()
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
                . esc_html__(
173 173
                    'Search through questions. The following sources will be searched: Name of Question (display text).',
174 174
                    'event_espresso'
175
-               ) . '</p>';
175
+               ).'</p>';
176 176
     }
177 177
 
178 178
     protected function _add_new_question_stop()
179 179
     {
180
-        return '<p>' . esc_html__('Click here to add a new question.', 'event_espresso') . '</p>';
180
+        return '<p>'.esc_html__('Click here to add a new question.', 'event_espresso').'</p>';
181 181
     }
182 182
 }
Please login to merge, or discard this patch.
Registration_Form_Question_Groups_Admin_List_Table.class.php 2 patches
Indentation   +237 added lines, -237 removed lines patch added patch discarded remove patch
@@ -30,241 +30,241 @@
 block discarded – undo
30 30
 {
31 31
 
32 32
 
33
-    public function __construct($admin_page)
34
-    {
35
-        parent::__construct($admin_page);
36
-    }
37
-
38
-
39
-    protected function _setup_data()
40
-    {
41
-        $this->_data = $this->_view != 'trash'
42
-            ? $this->_admin_page->get_question_groups($this->_per_page, $this->_current_page, false)
43
-            : $this->_admin_page->get_trashed_question_groups($this->_per_page, $this->_current_page, false);
44
-        $this->_all_data_count = $this->_view != 'trash'
45
-            ? $this->_admin_page->get_question_groups($this->_per_page, $this->_current_page, true)
46
-            : $this->_admin_page->get_trashed_question_groups($this->_per_page, $this->_current_page, true);
47
-    }
48
-
49
-
50
-    protected function _set_properties()
51
-    {
52
-        $this->_wp_list_args = array(
53
-            'singular' => esc_html__('question group', 'event_espresso'),
54
-            'plural'   => esc_html__('question groups', 'event_espresso'),
55
-            'ajax'     => true, // for now,
56
-            'screen'   => $this->_admin_page->get_current_screen()->id,
57
-        );
58
-
59
-        $this->_columns = array(
60
-            'cb'              => '<input type="checkbox" />',
61
-            'id'              => esc_html__('ID', 'event_espresso'),
62
-            'name'            => esc_html__('Group Name', 'event_espresso'),
63
-            'description'     => esc_html__('Description', 'event_espresso'),
64
-            'show_group_name' => esc_html__('Show Name', 'event_espresso'),
65
-            'show_group_desc' => esc_html__('Show Desc', 'event_espresso'),
66
-        );
67
-
68
-        $this->_sortable_columns = array(
69
-            'id'   => array('QSG_ID' => false),
70
-            'name' => array('QSG_name' => false),
71
-        );
72
-
73
-        $this->_hidden_columns = array(
74
-            'id',
75
-        );
76
-
77
-        $this->_ajax_sorting_callback = 'update_question_group_order';
78
-    }
79
-
80
-
81
-    // not needed
82
-    protected function _get_table_filters()
83
-    {
84
-        return array();
85
-    }
86
-
87
-
88
-    protected function _add_view_counts()
89
-    {
90
-        $this->_views['all']['count'] = $this->_admin_page->get_question_groups(
91
-            $this->_per_page,
92
-            $this->_current_page,
93
-            true
94
-        );
95
-        if (
96
-            EE_Registry::instance()->CAP->current_user_can(
97
-                'ee_delete_question_groups',
98
-                'espresso_registration_form_trash_question_group'
99
-            )
100
-        ) {
101
-            $this->_views['trash']['count'] = $this->_admin_page->get_trashed_question_groups(
102
-                $this->_per_page,
103
-                $this->_current_page,
104
-                true
105
-            );
106
-        }
107
-    }
108
-
109
-
110
-    public function column_cb($item)
111
-    {
112
-        $system_group = $item->get('QSG_system');
113
-        $has_questions_with_answers = $item->has_questions_with_answers();
114
-        $lock_icon = $system_group === 0 && $this->_view == 'trash' && $has_questions_with_answers
115
-            ? 'ee-lock-icon ee-alternate-color'
116
-            : 'ee-lock-icon ee-system-lock';
117
-        return $system_group > 0
118
-               || ($system_group === 0
119
-                    && $this->_view == 'trash'
120
-                    && $has_questions_with_answers
121
-                )
122
-               || ! EE_Registry::instance()->CAP->current_user_can(
123
-                   'ee_delete_question_groups',
124
-                   'espresso_registration_form_trash_question_groups',
125
-                   $item->ID()
126
-               )
127
-            ? '<span class="' . $lock_icon . '"></span>'
128
-              . sprintf(
129
-                  '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />',
130
-                  $item->ID()
131
-              )
132
-            : sprintf(
133
-                '<input type="checkbox" id="QSG_ID[%1$d]" name="checkbox[%1$d]" value="%1$d" />',
134
-                $item->ID()
135
-            );
136
-    }
137
-
138
-
139
-    public function column_id(EE_Question_Group $item)
140
-    {
141
-        $content = $item->ID();
142
-        $content .= '  <span class="show-on-mobile-view-only">' . $item->name() . '</span>';
143
-        return $content;
144
-    }
145
-
146
-
147
-    public function column_name(EE_Question_Group $item)
148
-    {
149
-        $actions = array();
150
-
151
-        // return $item->name();
152
-        if (! defined('REG_ADMIN_URL')) {
153
-            define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
154
-        }
155
-
156
-        $edit_query_args = array(
157
-            'action' => 'edit_question_group',
158
-            'QSG_ID' => $item->ID(),
159
-        );
160
-
161
-        $trash_query_args = array(
162
-            'action' => 'trash_question_group',
163
-            'QSG_ID' => $item->ID(),
164
-        );
165
-
166
-        $restore_query_args = array(
167
-            'action' => 'restore_question_group',
168
-            'QSG_ID' => $item->ID(),
169
-        );
170
-
171
-        $delete_query_args = array(
172
-            'action' => 'delete_question_group',
173
-            'QSG_ID' => $item->ID(),
174
-        );
175
-
176
-
177
-        $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
178
-        $trash_link = EE_Admin_Page::add_query_args_and_nonce($trash_query_args, EE_FORMS_ADMIN_URL);
179
-        $restore_link = EE_Admin_Page::add_query_args_and_nonce($restore_query_args, EE_FORMS_ADMIN_URL);
180
-        $delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_FORMS_ADMIN_URL);
181
-
182
-        if (
183
-            EE_Registry::instance()->CAP->current_user_can(
184
-                'ee_edit_question_group',
185
-                'espresso_registration_form_edit_question_group',
186
-                $item->ID()
187
-            )
188
-        ) {
189
-            $actions = array(
190
-                'edit' => '<a href="' . $edit_link . '" title="'
191
-                          . esc_attr__('Edit Question Group', 'event_espresso') . '">'
192
-                          . esc_html__('Edit', 'event_espresso') . '</a>',
193
-            );
194
-        }
195
-        if (
196
-            $item->get('QSG_system') < 1
197
-            && $this->_view != 'trash'
198
-            && EE_Registry::instance()->CAP->current_user_can(
199
-                'ee_delete_question_group',
200
-                'espresso_registration_form_trash_question_group',
201
-                $item->ID()
202
-            )
203
-        ) {
204
-            $actions['delete'] = '<a href="' . $trash_link . '" title="'
205
-                                 . esc_attr__('Delete Question Group', 'event_espresso') . '">'
206
-                                 . esc_html__('Trash', 'event_espresso') . '</a>';
207
-        }
208
-
209
-        if ($this->_view == 'trash') {
210
-            if (
211
-                EE_Registry::instance()->CAP->current_user_can(
212
-                    'ee_delete_question_group',
213
-                    'espresso_registration_form_restore_question_group',
214
-                    $item->ID()
215
-                )
216
-            ) {
217
-                $actions['restore'] = '<a href="' . $restore_link . '" title="'
218
-                                      . esc_attr__('Restore Question Group', 'event_espresso') . '">'
219
-                                      . esc_html__('Restore', 'event_espresso') . '</a>';
220
-            }
221
-
222
-            if (
223
-                ! $item->has_questions_with_answers()
224
-                && EE_Registry::instance()->CAP->current_user_can(
225
-                    'ee_delete_question_group',
226
-                    'espresso_registration_form_delete_question_group',
227
-                    $item->ID()
228
-                )
229
-            ) {
230
-                    $actions['delete'] = '<a href="' . $delete_link . '" title="'
231
-                                         . esc_attr__('Delete Question Group Permanently', 'event_espresso') . '">'
232
-                                         . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
233
-            }
234
-        }
235
-
236
-        $content = EE_Registry::instance()->CAP->current_user_can(
237
-            'ee_edit_question_group',
238
-            'espresso_registration_form_edit_question_group',
239
-            $item->ID()
240
-        )
241
-            ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->name() . '</a></strong>'
242
-            : $item->name();
243
-        $content .= $this->row_actions($actions);
244
-        return $content;
245
-    }
246
-
247
-
248
-    public function column_identifier(EE_Question_Group $item)
249
-    {
250
-        return $item->identifier();
251
-    }
252
-
253
-
254
-    public function column_description(EE_Question_Group $item)
255
-    {
256
-        return $item->desc();
257
-    }
258
-
259
-
260
-    public function column_show_group_name(EE_Question_Group $item)
261
-    {
262
-        return $this->_yes_no[ $item->show_group_name() ];
263
-    }
264
-
265
-
266
-    public function column_show_group_desc(EE_Question_Group $item)
267
-    {
268
-        return $this->_yes_no[ $item->show_group_desc() ];
269
-    }
33
+	public function __construct($admin_page)
34
+	{
35
+		parent::__construct($admin_page);
36
+	}
37
+
38
+
39
+	protected function _setup_data()
40
+	{
41
+		$this->_data = $this->_view != 'trash'
42
+			? $this->_admin_page->get_question_groups($this->_per_page, $this->_current_page, false)
43
+			: $this->_admin_page->get_trashed_question_groups($this->_per_page, $this->_current_page, false);
44
+		$this->_all_data_count = $this->_view != 'trash'
45
+			? $this->_admin_page->get_question_groups($this->_per_page, $this->_current_page, true)
46
+			: $this->_admin_page->get_trashed_question_groups($this->_per_page, $this->_current_page, true);
47
+	}
48
+
49
+
50
+	protected function _set_properties()
51
+	{
52
+		$this->_wp_list_args = array(
53
+			'singular' => esc_html__('question group', 'event_espresso'),
54
+			'plural'   => esc_html__('question groups', 'event_espresso'),
55
+			'ajax'     => true, // for now,
56
+			'screen'   => $this->_admin_page->get_current_screen()->id,
57
+		);
58
+
59
+		$this->_columns = array(
60
+			'cb'              => '<input type="checkbox" />',
61
+			'id'              => esc_html__('ID', 'event_espresso'),
62
+			'name'            => esc_html__('Group Name', 'event_espresso'),
63
+			'description'     => esc_html__('Description', 'event_espresso'),
64
+			'show_group_name' => esc_html__('Show Name', 'event_espresso'),
65
+			'show_group_desc' => esc_html__('Show Desc', 'event_espresso'),
66
+		);
67
+
68
+		$this->_sortable_columns = array(
69
+			'id'   => array('QSG_ID' => false),
70
+			'name' => array('QSG_name' => false),
71
+		);
72
+
73
+		$this->_hidden_columns = array(
74
+			'id',
75
+		);
76
+
77
+		$this->_ajax_sorting_callback = 'update_question_group_order';
78
+	}
79
+
80
+
81
+	// not needed
82
+	protected function _get_table_filters()
83
+	{
84
+		return array();
85
+	}
86
+
87
+
88
+	protected function _add_view_counts()
89
+	{
90
+		$this->_views['all']['count'] = $this->_admin_page->get_question_groups(
91
+			$this->_per_page,
92
+			$this->_current_page,
93
+			true
94
+		);
95
+		if (
96
+			EE_Registry::instance()->CAP->current_user_can(
97
+				'ee_delete_question_groups',
98
+				'espresso_registration_form_trash_question_group'
99
+			)
100
+		) {
101
+			$this->_views['trash']['count'] = $this->_admin_page->get_trashed_question_groups(
102
+				$this->_per_page,
103
+				$this->_current_page,
104
+				true
105
+			);
106
+		}
107
+	}
108
+
109
+
110
+	public function column_cb($item)
111
+	{
112
+		$system_group = $item->get('QSG_system');
113
+		$has_questions_with_answers = $item->has_questions_with_answers();
114
+		$lock_icon = $system_group === 0 && $this->_view == 'trash' && $has_questions_with_answers
115
+			? 'ee-lock-icon ee-alternate-color'
116
+			: 'ee-lock-icon ee-system-lock';
117
+		return $system_group > 0
118
+			   || ($system_group === 0
119
+					&& $this->_view == 'trash'
120
+					&& $has_questions_with_answers
121
+				)
122
+			   || ! EE_Registry::instance()->CAP->current_user_can(
123
+				   'ee_delete_question_groups',
124
+				   'espresso_registration_form_trash_question_groups',
125
+				   $item->ID()
126
+			   )
127
+			? '<span class="' . $lock_icon . '"></span>'
128
+			  . sprintf(
129
+				  '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />',
130
+				  $item->ID()
131
+			  )
132
+			: sprintf(
133
+				'<input type="checkbox" id="QSG_ID[%1$d]" name="checkbox[%1$d]" value="%1$d" />',
134
+				$item->ID()
135
+			);
136
+	}
137
+
138
+
139
+	public function column_id(EE_Question_Group $item)
140
+	{
141
+		$content = $item->ID();
142
+		$content .= '  <span class="show-on-mobile-view-only">' . $item->name() . '</span>';
143
+		return $content;
144
+	}
145
+
146
+
147
+	public function column_name(EE_Question_Group $item)
148
+	{
149
+		$actions = array();
150
+
151
+		// return $item->name();
152
+		if (! defined('REG_ADMIN_URL')) {
153
+			define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
154
+		}
155
+
156
+		$edit_query_args = array(
157
+			'action' => 'edit_question_group',
158
+			'QSG_ID' => $item->ID(),
159
+		);
160
+
161
+		$trash_query_args = array(
162
+			'action' => 'trash_question_group',
163
+			'QSG_ID' => $item->ID(),
164
+		);
165
+
166
+		$restore_query_args = array(
167
+			'action' => 'restore_question_group',
168
+			'QSG_ID' => $item->ID(),
169
+		);
170
+
171
+		$delete_query_args = array(
172
+			'action' => 'delete_question_group',
173
+			'QSG_ID' => $item->ID(),
174
+		);
175
+
176
+
177
+		$edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
178
+		$trash_link = EE_Admin_Page::add_query_args_and_nonce($trash_query_args, EE_FORMS_ADMIN_URL);
179
+		$restore_link = EE_Admin_Page::add_query_args_and_nonce($restore_query_args, EE_FORMS_ADMIN_URL);
180
+		$delete_link = EE_Admin_Page::add_query_args_and_nonce($delete_query_args, EE_FORMS_ADMIN_URL);
181
+
182
+		if (
183
+			EE_Registry::instance()->CAP->current_user_can(
184
+				'ee_edit_question_group',
185
+				'espresso_registration_form_edit_question_group',
186
+				$item->ID()
187
+			)
188
+		) {
189
+			$actions = array(
190
+				'edit' => '<a href="' . $edit_link . '" title="'
191
+						  . esc_attr__('Edit Question Group', 'event_espresso') . '">'
192
+						  . esc_html__('Edit', 'event_espresso') . '</a>',
193
+			);
194
+		}
195
+		if (
196
+			$item->get('QSG_system') < 1
197
+			&& $this->_view != 'trash'
198
+			&& EE_Registry::instance()->CAP->current_user_can(
199
+				'ee_delete_question_group',
200
+				'espresso_registration_form_trash_question_group',
201
+				$item->ID()
202
+			)
203
+		) {
204
+			$actions['delete'] = '<a href="' . $trash_link . '" title="'
205
+								 . esc_attr__('Delete Question Group', 'event_espresso') . '">'
206
+								 . esc_html__('Trash', 'event_espresso') . '</a>';
207
+		}
208
+
209
+		if ($this->_view == 'trash') {
210
+			if (
211
+				EE_Registry::instance()->CAP->current_user_can(
212
+					'ee_delete_question_group',
213
+					'espresso_registration_form_restore_question_group',
214
+					$item->ID()
215
+				)
216
+			) {
217
+				$actions['restore'] = '<a href="' . $restore_link . '" title="'
218
+									  . esc_attr__('Restore Question Group', 'event_espresso') . '">'
219
+									  . esc_html__('Restore', 'event_espresso') . '</a>';
220
+			}
221
+
222
+			if (
223
+				! $item->has_questions_with_answers()
224
+				&& EE_Registry::instance()->CAP->current_user_can(
225
+					'ee_delete_question_group',
226
+					'espresso_registration_form_delete_question_group',
227
+					$item->ID()
228
+				)
229
+			) {
230
+					$actions['delete'] = '<a href="' . $delete_link . '" title="'
231
+										 . esc_attr__('Delete Question Group Permanently', 'event_espresso') . '">'
232
+										 . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
233
+			}
234
+		}
235
+
236
+		$content = EE_Registry::instance()->CAP->current_user_can(
237
+			'ee_edit_question_group',
238
+			'espresso_registration_form_edit_question_group',
239
+			$item->ID()
240
+		)
241
+			? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->name() . '</a></strong>'
242
+			: $item->name();
243
+		$content .= $this->row_actions($actions);
244
+		return $content;
245
+	}
246
+
247
+
248
+	public function column_identifier(EE_Question_Group $item)
249
+	{
250
+		return $item->identifier();
251
+	}
252
+
253
+
254
+	public function column_description(EE_Question_Group $item)
255
+	{
256
+		return $item->desc();
257
+	}
258
+
259
+
260
+	public function column_show_group_name(EE_Question_Group $item)
261
+	{
262
+		return $this->_yes_no[ $item->show_group_name() ];
263
+	}
264
+
265
+
266
+	public function column_show_group_desc(EE_Question_Group $item)
267
+	{
268
+		return $this->_yes_no[ $item->show_group_desc() ];
269
+	}
270 270
 }
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                    'espresso_registration_form_trash_question_groups',
125 125
                    $item->ID()
126 126
                )
127
-            ? '<span class="' . $lock_icon . '"></span>'
127
+            ? '<span class="'.$lock_icon.'"></span>'
128 128
               . sprintf(
129 129
                   '<input type="hidden" name="hdnchk[%1$d]" value="%1$d" />',
130 130
                   $item->ID()
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public function column_id(EE_Question_Group $item)
140 140
     {
141 141
         $content = $item->ID();
142
-        $content .= '  <span class="show-on-mobile-view-only">' . $item->name() . '</span>';
142
+        $content .= '  <span class="show-on-mobile-view-only">'.$item->name().'</span>';
143 143
         return $content;
144 144
     }
145 145
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $actions = array();
150 150
 
151 151
         // return $item->name();
152
-        if (! defined('REG_ADMIN_URL')) {
152
+        if ( ! defined('REG_ADMIN_URL')) {
153 153
             define('REG_ADMIN_URL', EVENTS_ADMIN_URL);
154 154
         }
155 155
 
@@ -187,9 +187,9 @@  discard block
 block discarded – undo
187 187
             )
188 188
         ) {
189 189
             $actions = array(
190
-                'edit' => '<a href="' . $edit_link . '" title="'
191
-                          . esc_attr__('Edit Question Group', 'event_espresso') . '">'
192
-                          . esc_html__('Edit', 'event_espresso') . '</a>',
190
+                'edit' => '<a href="'.$edit_link.'" title="'
191
+                          . esc_attr__('Edit Question Group', 'event_espresso').'">'
192
+                          . esc_html__('Edit', 'event_espresso').'</a>',
193 193
             );
194 194
         }
195 195
         if (
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
                 $item->ID()
202 202
             )
203 203
         ) {
204
-            $actions['delete'] = '<a href="' . $trash_link . '" title="'
205
-                                 . esc_attr__('Delete Question Group', 'event_espresso') . '">'
206
-                                 . esc_html__('Trash', 'event_espresso') . '</a>';
204
+            $actions['delete'] = '<a href="'.$trash_link.'" title="'
205
+                                 . esc_attr__('Delete Question Group', 'event_espresso').'">'
206
+                                 . esc_html__('Trash', 'event_espresso').'</a>';
207 207
         }
208 208
 
209 209
         if ($this->_view == 'trash') {
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
                     $item->ID()
215 215
                 )
216 216
             ) {
217
-                $actions['restore'] = '<a href="' . $restore_link . '" title="'
218
-                                      . esc_attr__('Restore Question Group', 'event_espresso') . '">'
219
-                                      . esc_html__('Restore', 'event_espresso') . '</a>';
217
+                $actions['restore'] = '<a href="'.$restore_link.'" title="'
218
+                                      . esc_attr__('Restore Question Group', 'event_espresso').'">'
219
+                                      . esc_html__('Restore', 'event_espresso').'</a>';
220 220
             }
221 221
 
222 222
             if (
@@ -227,9 +227,9 @@  discard block
 block discarded – undo
227 227
                     $item->ID()
228 228
                 )
229 229
             ) {
230
-                    $actions['delete'] = '<a href="' . $delete_link . '" title="'
231
-                                         . esc_attr__('Delete Question Group Permanently', 'event_espresso') . '">'
232
-                                         . esc_html__('Delete Permanently', 'event_espresso') . '</a>';
230
+                    $actions['delete'] = '<a href="'.$delete_link.'" title="'
231
+                                         . esc_attr__('Delete Question Group Permanently', 'event_espresso').'">'
232
+                                         . esc_html__('Delete Permanently', 'event_espresso').'</a>';
233 233
             }
234 234
         }
235 235
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             'espresso_registration_form_edit_question_group',
239 239
             $item->ID()
240 240
         )
241
-            ? '<strong><a class="row-title" href="' . $edit_link . '">' . $item->name() . '</a></strong>'
241
+            ? '<strong><a class="row-title" href="'.$edit_link.'">'.$item->name().'</a></strong>'
242 242
             : $item->name();
243 243
         $content .= $this->row_actions($actions);
244 244
         return $content;
@@ -259,12 +259,12 @@  discard block
 block discarded – undo
259 259
 
260 260
     public function column_show_group_name(EE_Question_Group $item)
261 261
     {
262
-        return $this->_yes_no[ $item->show_group_name() ];
262
+        return $this->_yes_no[$item->show_group_name()];
263 263
     }
264 264
 
265 265
 
266 266
     public function column_show_group_desc(EE_Question_Group $item)
267 267
     {
268
-        return $this->_yes_no[ $item->show_group_desc() ];
268
+        return $this->_yes_no[$item->show_group_desc()];
269 269
     }
270 270
 }
Please login to merge, or discard this patch.
caffeinated/admin/new/pricing/Pricing_Admin_Page_Init.core.php 2 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -15,52 +15,52 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    /**
19
-     *        constructor
20
-     *
21
-     * @Constructor
22
-     * @access public
23
-     * @return Pricing_Admin_Page_Init
24
-     */
25
-    public function __construct()
26
-    {
18
+	/**
19
+	 *        constructor
20
+	 *
21
+	 * @Constructor
22
+	 * @access public
23
+	 * @return Pricing_Admin_Page_Init
24
+	 */
25
+	public function __construct()
26
+	{
27 27
 
28
-        do_action('AHEE_log', __FILE__, __FUNCTION__, '');
28
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
29 29
 
30
-        define('PRICING_PG_SLUG', 'pricing');
31
-        define('PRICING_LABEL', esc_html__('Pricing', 'event_espresso'));
32
-        define('PRICING_PG_NAME', ucwords(str_replace('_', '', PRICING_PG_SLUG)));
33
-        define('PRICING_ADMIN', EE_CORE_CAF_ADMIN . 'new/' . PRICING_PG_SLUG . '/');
34
-        define('PRICING_ADMIN_URL', admin_url('admin.php?page=' . PRICING_PG_SLUG));
35
-        define('PRICING_ASSETS_PATH', PRICING_ADMIN . 'assets/');
36
-        define('PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/assets/');
37
-        define('PRICING_TEMPLATE_PATH', PRICING_ADMIN . 'templates/');
38
-        define('PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/templates/');
30
+		define('PRICING_PG_SLUG', 'pricing');
31
+		define('PRICING_LABEL', esc_html__('Pricing', 'event_espresso'));
32
+		define('PRICING_PG_NAME', ucwords(str_replace('_', '', PRICING_PG_SLUG)));
33
+		define('PRICING_ADMIN', EE_CORE_CAF_ADMIN . 'new/' . PRICING_PG_SLUG . '/');
34
+		define('PRICING_ADMIN_URL', admin_url('admin.php?page=' . PRICING_PG_SLUG));
35
+		define('PRICING_ASSETS_PATH', PRICING_ADMIN . 'assets/');
36
+		define('PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/assets/');
37
+		define('PRICING_TEMPLATE_PATH', PRICING_ADMIN . 'templates/');
38
+		define('PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/templates/');
39 39
 
40
-        parent::__construct();
41
-        $this->_folder_path = EE_CORE_CAF_ADMIN . 'new/' . $this->_folder_name . '/';
42
-    }
40
+		parent::__construct();
41
+		$this->_folder_path = EE_CORE_CAF_ADMIN . 'new/' . $this->_folder_name . '/';
42
+	}
43 43
 
44 44
 
45
-    protected function _set_init_properties()
46
-    {
47
-        $this->label = PRICING_LABEL;
48
-    }
45
+	protected function _set_init_properties()
46
+	{
47
+		$this->label = PRICING_LABEL;
48
+	}
49 49
 
50 50
 
51
-    protected function _set_menu_map()
52
-    {
53
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
54
-            array(
55
-                'menu_group'      => 'management',
56
-                'menu_order'      => 20,
57
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
58
-                'parent_slug'     => 'espresso_events',
59
-                'menu_slug'       => PRICING_PG_SLUG,
60
-                'menu_label'      => PRICING_LABEL,
61
-                'capability'      => 'ee_read_default_prices',
62
-                'admin_init_page' => $this,
63
-            )
64
-        );
65
-    }
51
+	protected function _set_menu_map()
52
+	{
53
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
54
+			array(
55
+				'menu_group'      => 'management',
56
+				'menu_order'      => 20,
57
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
58
+				'parent_slug'     => 'espresso_events',
59
+				'menu_slug'       => PRICING_PG_SLUG,
60
+				'menu_label'      => PRICING_LABEL,
61
+				'capability'      => 'ee_read_default_prices',
62
+				'admin_init_page' => $this,
63
+			)
64
+		);
65
+	}
66 66
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,15 +30,15 @@
 block discarded – undo
30 30
         define('PRICING_PG_SLUG', 'pricing');
31 31
         define('PRICING_LABEL', esc_html__('Pricing', 'event_espresso'));
32 32
         define('PRICING_PG_NAME', ucwords(str_replace('_', '', PRICING_PG_SLUG)));
33
-        define('PRICING_ADMIN', EE_CORE_CAF_ADMIN . 'new/' . PRICING_PG_SLUG . '/');
34
-        define('PRICING_ADMIN_URL', admin_url('admin.php?page=' . PRICING_PG_SLUG));
35
-        define('PRICING_ASSETS_PATH', PRICING_ADMIN . 'assets/');
36
-        define('PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/assets/');
37
-        define('PRICING_TEMPLATE_PATH', PRICING_ADMIN . 'templates/');
38
-        define('PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL . 'new/' . PRICING_PG_SLUG . '/templates/');
33
+        define('PRICING_ADMIN', EE_CORE_CAF_ADMIN.'new/'.PRICING_PG_SLUG.'/');
34
+        define('PRICING_ADMIN_URL', admin_url('admin.php?page='.PRICING_PG_SLUG));
35
+        define('PRICING_ASSETS_PATH', PRICING_ADMIN.'assets/');
36
+        define('PRICING_ASSETS_URL', EE_CORE_CAF_ADMIN_URL.'new/'.PRICING_PG_SLUG.'/assets/');
37
+        define('PRICING_TEMPLATE_PATH', PRICING_ADMIN.'templates/');
38
+        define('PRICING_TEMPLATE_URL', EE_CORE_CAF_ADMIN_URL.'new/'.PRICING_PG_SLUG.'/templates/');
39 39
 
40 40
         parent::__construct();
41
-        $this->_folder_path = EE_CORE_CAF_ADMIN . 'new/' . $this->_folder_name . '/';
41
+        $this->_folder_path = EE_CORE_CAF_ADMIN.'new/'.$this->_folder_name.'/';
42 42
     }
43 43
 
44 44
 
Please login to merge, or discard this patch.
admin/new/pricing/help_tours/Pricing_Edit_Default_Price_Help_Tour.class.php 2 patches
Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -15,20 +15,20 @@  discard block
 block discarded – undo
15 15
 class Pricing_Edit_Default_Price_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Edit Default Price Tour', 'event_espresso');
21
-        $this->_slug = 'edit-default-price-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Edit Default Price Tour', 'event_espresso');
21
+		$this->_slug = 'edit-default-price-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            /*20 => array(
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			/*20 => array(
32 32
                 'id' => 'PRT_ID',
33 33
                 'content' => $this->_price_type_stop(),
34 34
                 'options' => array(
@@ -37,74 +37,74 @@  discard block
 block discarded – undo
37 37
                     'tipAdjustmentX' => -15
38 38
                     )
39 39
                 ),*/
40
-            30 => array(
41
-                'id'      => 'PRC_name',
42
-                'content' => $this->_price_name_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'id'      => 'PRC_desc',
50
-                'content' => $this->_price_description_stop(),
51
-                'options' => array(
52
-                    'tipLocation'    => 'top',
53
-                    'tipAdjustmentY' => -40,
54
-                ),
55
-            ),
56
-            50 => array(
57
-                'id'      => 'PRC_amount',
58
-                'content' => $this->_price_amount_stop(),
59
-                'options' => array(
60
-                    'tipLocation'    => 'top',
61
-                    'tipAdjustmentY' => -40,
62
-                ),
63
-            ),
64
-        );
65
-    }
40
+			30 => array(
41
+				'id'      => 'PRC_name',
42
+				'content' => $this->_price_name_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+				),
47
+			),
48
+			40 => array(
49
+				'id'      => 'PRC_desc',
50
+				'content' => $this->_price_description_stop(),
51
+				'options' => array(
52
+					'tipLocation'    => 'top',
53
+					'tipAdjustmentY' => -40,
54
+				),
55
+			),
56
+			50 => array(
57
+				'id'      => 'PRC_amount',
58
+				'content' => $this->_price_amount_stop(),
59
+				'options' => array(
60
+					'tipLocation'    => 'top',
61
+					'tipAdjustmentY' => -40,
62
+				),
63
+			),
64
+		);
65
+	}
66 66
 
67 67
 
68
-    protected function _start()
69
-    {
70
-        $content = '<h3>' . esc_html__('Edit Default Price', 'event_espresso') . '</h3>';
71
-        $content .= '<p>'
72
-                    . esc_html__(
73
-                        'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.',
74
-                        'event_espresso'
75
-                    ) . '</p>';
76
-        return $content;
77
-    }
68
+	protected function _start()
69
+	{
70
+		$content = '<h3>' . esc_html__('Edit Default Price', 'event_espresso') . '</h3>';
71
+		$content .= '<p>'
72
+					. esc_html__(
73
+						'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.',
74
+						'event_espresso'
75
+					) . '</p>';
76
+		return $content;
77
+	}
78 78
 
79
-    protected function _price_type_stop()
80
-    {
81
-        return '<p>'
82
-               . esc_html__(
83
-                   'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84
-                   'event_espresso'
85
-               ) . '</p>';
86
-    }
79
+	protected function _price_type_stop()
80
+	{
81
+		return '<p>'
82
+			   . esc_html__(
83
+				   'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84
+				   'event_espresso'
85
+			   ) . '</p>';
86
+	}
87 87
 
88
-    protected function _price_name_stop()
89
-    {
90
-        return '<p>'
91
-               . esc_html__(
92
-                   'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93
-                   'event_espresso'
94
-               ) . '</p>';
95
-    }
88
+	protected function _price_name_stop()
89
+	{
90
+		return '<p>'
91
+			   . esc_html__(
92
+				   'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93
+				   'event_espresso'
94
+			   ) . '</p>';
95
+	}
96 96
 
97
-    protected function _price_description_stop()
98
-    {
99
-        return '<p>'
100
-               . esc_html__(
101
-                   'View the price type (price, discount, tax or surcharge) description.',
102
-                   'event_espresso'
103
-               ) . '</p>';
104
-    }
97
+	protected function _price_description_stop()
98
+	{
99
+		return '<p>'
100
+			   . esc_html__(
101
+				   'View the price type (price, discount, tax or surcharge) description.',
102
+				   'event_espresso'
103
+			   ) . '</p>';
104
+	}
105 105
 
106
-    protected function _price_amount_stop()
107
-    {
108
-        return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
109
-    }
106
+	protected function _price_amount_stop()
107
+	{
108
+		return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
109
+	}
110 110
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 
68 68
     protected function _start()
69 69
     {
70
-        $content = '<h3>' . esc_html__('Edit Default Price', 'event_espresso') . '</h3>';
70
+        $content = '<h3>'.esc_html__('Edit Default Price', 'event_espresso').'</h3>';
71 71
         $content .= '<p>'
72 72
                     . esc_html__(
73 73
                         'This tour of the Edit Default Price page will go over different areas of the screen to help you understand what they are used for.',
74 74
                         'event_espresso'
75
-                    ) . '</p>';
75
+                    ).'</p>';
76 76
         return $content;
77 77
     }
78 78
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                . esc_html__(
83 83
                    'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84 84
                    'event_espresso'
85
-               ) . '</p>';
85
+               ).'</p>';
86 86
     }
87 87
 
88 88
     protected function _price_name_stop()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                . esc_html__(
92 92
                    'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93 93
                    'event_espresso'
94
-               ) . '</p>';
94
+               ).'</p>';
95 95
     }
96 96
 
97 97
     protected function _price_description_stop()
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
                . esc_html__(
101 101
                    'View the price type (price, discount, tax or surcharge) description.',
102 102
                    'event_espresso'
103
-               ) . '</p>';
103
+               ).'</p>';
104 104
     }
105 105
 
106 106
     protected function _price_amount_stop()
107 107
     {
108
-        return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
108
+        return '<p>'.esc_html__('The ticket amount before any deductions.', 'event_espresso').'</p>';
109 109
     }
110 110
 }
Please login to merge, or discard this patch.
admin/new/pricing/help_tours/Pricing_Edit_Price_Type_Help_Tour.class.php 2 patches
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -15,84 +15,84 @@
 block discarded – undo
15 15
 class Pricing_Edit_Price_Type_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Edit Price Type Tour', 'event_espresso');
21
-        $this->_slug = 'edit-price-type-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Edit Price Type Tour', 'event_espresso');
21
+		$this->_slug = 'edit-price-type-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'base_type',
33
-                'content' => $this->_basic_type_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -50,
37
-                    'tipAdjustmentX' => -15,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'PRT_name',
42
-                'content' => $this->_price_type_name_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'id'      => 'PRT_name',
50
-                'content' => $this->_percentage_dollar_amount_stop(),
51
-                'options' => array(
52
-                    'tipLocation'    => 'top',
53
-                    'tipAdjustmentY' => 45,
54
-                ),
55
-            ),
56
-            50 => array(
57
-                'id'      => 'PRT_order',
58
-                'content' => $this->_order_of_application_stop(),
59
-                'options' => array(
60
-                    'tipLocation'    => 'top',
61
-                    'tipAdjustmentY' => -40,
62
-                ),
63
-            ),
64
-        );
65
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'base_type',
33
+				'content' => $this->_basic_type_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -50,
37
+					'tipAdjustmentX' => -15,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'PRT_name',
42
+				'content' => $this->_price_type_name_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+				),
47
+			),
48
+			40 => array(
49
+				'id'      => 'PRT_name',
50
+				'content' => $this->_percentage_dollar_amount_stop(),
51
+				'options' => array(
52
+					'tipLocation'    => 'top',
53
+					'tipAdjustmentY' => 45,
54
+				),
55
+			),
56
+			50 => array(
57
+				'id'      => 'PRT_order',
58
+				'content' => $this->_order_of_application_stop(),
59
+				'options' => array(
60
+					'tipLocation'    => 'top',
61
+					'tipAdjustmentY' => -40,
62
+				),
63
+			),
64
+		);
65
+	}
66 66
 
67 67
 
68
-    protected function _start()
69
-    {
70
-        $content = '<h3>' . esc_html__('Edit Price Type', 'event_espresso') . '</h3>';
71
-        $content .= '<p>'
72
-                    . esc_html__(
73
-                        'This tour of the Edit Price Type page will go over different areas of the screen to help you understand what they are used for.',
74
-                        'event_espresso'
75
-                    ) . '</p>';
76
-        return $content;
77
-    }
68
+	protected function _start()
69
+	{
70
+		$content = '<h3>' . esc_html__('Edit Price Type', 'event_espresso') . '</h3>';
71
+		$content .= '<p>'
72
+					. esc_html__(
73
+						'This tour of the Edit Price Type page will go over different areas of the screen to help you understand what they are used for.',
74
+						'event_espresso'
75
+					) . '</p>';
76
+		return $content;
77
+	}
78 78
 
79
-    protected function _basic_type_stop()
80
-    {
81
-        return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
82
-    }
79
+	protected function _basic_type_stop()
80
+	{
81
+		return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
82
+	}
83 83
 
84
-    protected function _price_type_name_stop()
85
-    {
86
-        return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
87
-    }
84
+	protected function _price_type_name_stop()
85
+	{
86
+		return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
87
+	}
88 88
 
89
-    protected function _percentage_dollar_amount_stop()
90
-    {
91
-        return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
92
-    }
89
+	protected function _percentage_dollar_amount_stop()
90
+	{
91
+		return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
92
+	}
93 93
 
94
-    protected function _order_of_application_stop()
95
-    {
96
-        return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
97
-    }
94
+	protected function _order_of_application_stop()
95
+	{
96
+		return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
97
+	}
98 98
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,32 +67,32 @@
 block discarded – undo
67 67
 
68 68
     protected function _start()
69 69
     {
70
-        $content = '<h3>' . esc_html__('Edit Price Type', 'event_espresso') . '</h3>';
70
+        $content = '<h3>'.esc_html__('Edit Price Type', 'event_espresso').'</h3>';
71 71
         $content .= '<p>'
72 72
                     . esc_html__(
73 73
                         'This tour of the Edit Price Type page will go over different areas of the screen to help you understand what they are used for.',
74 74
                         'event_espresso'
75
-                    ) . '</p>';
75
+                    ).'</p>';
76 76
         return $content;
77 77
     }
78 78
 
79 79
     protected function _basic_type_stop()
80 80
     {
81
-        return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
81
+        return '<p>'.esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso').'</p>';
82 82
     }
83 83
 
84 84
     protected function _price_type_name_stop()
85 85
     {
86
-        return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
86
+        return '<p>'.esc_html__('The name of the price type.', 'event_espresso').'</p>';
87 87
     }
88 88
 
89 89
     protected function _percentage_dollar_amount_stop()
90 90
     {
91
-        return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
91
+        return '<p>'.esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso').'</p>';
92 92
     }
93 93
 
94 94
     protected function _order_of_application_stop()
95 95
     {
96
-        return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
96
+        return '<p>'.esc_html__('Set the order of application for a price type.', 'event_espresso').'</p>';
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
new/pricing/help_tours/Pricing_Add_New_Default_Price_Help_Tour.class.php 2 patches
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -15,96 +15,96 @@
 block discarded – undo
15 15
 class Pricing_Add_New_Default_Price_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Add New Default Price Tour', 'event_espresso');
21
-        $this->_slug = 'add-new-default-price-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Add New Default Price Tour', 'event_espresso');
21
+		$this->_slug = 'add-new-default-price-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'PRT_ID',
33
-                'content' => $this->_price_type_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -50,
37
-                    'tipAdjustmentX' => -15,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'PRC_name',
42
-                'content' => $this->_price_name_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'id'      => 'PRC_desc',
50
-                'content' => $this->_price_description_stop(),
51
-                'options' => array(
52
-                    'tipLocation'    => 'top',
53
-                    'tipAdjustmentY' => -40,
54
-                ),
55
-            ),
56
-            50 => array(
57
-                'id'      => 'PRC_amount',
58
-                'content' => $this->_price_amount_stop(),
59
-                'options' => array(
60
-                    'tipLocation'    => 'top',
61
-                    'tipAdjustmentY' => -40,
62
-                ),
63
-            ),
64
-        );
65
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'PRT_ID',
33
+				'content' => $this->_price_type_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -50,
37
+					'tipAdjustmentX' => -15,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'PRC_name',
42
+				'content' => $this->_price_name_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+				),
47
+			),
48
+			40 => array(
49
+				'id'      => 'PRC_desc',
50
+				'content' => $this->_price_description_stop(),
51
+				'options' => array(
52
+					'tipLocation'    => 'top',
53
+					'tipAdjustmentY' => -40,
54
+				),
55
+			),
56
+			50 => array(
57
+				'id'      => 'PRC_amount',
58
+				'content' => $this->_price_amount_stop(),
59
+				'options' => array(
60
+					'tipLocation'    => 'top',
61
+					'tipAdjustmentY' => -40,
62
+				),
63
+			),
64
+		);
65
+	}
66 66
 
67 67
 
68
-    protected function _start()
69
-    {
70
-        $content = '<h3>' . esc_html__('Add New Default Price', 'event_espresso') . '</h3>';
71
-        $content .= '<p>'
72
-                    . esc_html__(
73
-                        'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.',
74
-                        'event_espresso'
75
-                    ) . '</p>';
76
-        return $content;
77
-    }
68
+	protected function _start()
69
+	{
70
+		$content = '<h3>' . esc_html__('Add New Default Price', 'event_espresso') . '</h3>';
71
+		$content .= '<p>'
72
+					. esc_html__(
73
+						'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.',
74
+						'event_espresso'
75
+					) . '</p>';
76
+		return $content;
77
+	}
78 78
 
79
-    protected function _price_type_stop()
80
-    {
81
-        return '<p>'
82
-               . esc_html__(
83
-                   'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84
-                   'event_espresso'
85
-               ) . '</p>';
86
-    }
79
+	protected function _price_type_stop()
80
+	{
81
+		return '<p>'
82
+			   . esc_html__(
83
+				   'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84
+				   'event_espresso'
85
+			   ) . '</p>';
86
+	}
87 87
 
88
-    protected function _price_name_stop()
89
-    {
90
-        return '<p>'
91
-               . esc_html__(
92
-                   'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93
-                   'event_espresso'
94
-               ) . '</p>';
95
-    }
88
+	protected function _price_name_stop()
89
+	{
90
+		return '<p>'
91
+			   . esc_html__(
92
+				   'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93
+				   'event_espresso'
94
+			   ) . '</p>';
95
+	}
96 96
 
97
-    protected function _price_description_stop()
98
-    {
99
-        return '<p>'
100
-               . esc_html__(
101
-                   'View the price type (price, discount, tax or surcharge) description.',
102
-                   'event_espresso'
103
-               ) . '</p>';
104
-    }
97
+	protected function _price_description_stop()
98
+	{
99
+		return '<p>'
100
+			   . esc_html__(
101
+				   'View the price type (price, discount, tax or surcharge) description.',
102
+				   'event_espresso'
103
+			   ) . '</p>';
104
+	}
105 105
 
106
-    protected function _price_amount_stop()
107
-    {
108
-        return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
109
-    }
106
+	protected function _price_amount_stop()
107
+	{
108
+		return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
109
+	}
110 110
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 
68 68
     protected function _start()
69 69
     {
70
-        $content = '<h3>' . esc_html__('Add New Default Price', 'event_espresso') . '</h3>';
70
+        $content = '<h3>'.esc_html__('Add New Default Price', 'event_espresso').'</h3>';
71 71
         $content .= '<p>'
72 72
                     . esc_html__(
73 73
                         'This tour of the add new default price page will go over different areas of the screen to help you understand what they are used for.',
74 74
                         'event_espresso'
75
-                    ) . '</p>';
75
+                    ).'</p>';
76 76
         return $content;
77 77
     }
78 78
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                . esc_html__(
83 83
                    'Price Types are a way of categorizing a price, discount, tax, or surcharge and indicating how it gets applied to a running total when a transaction occurs.',
84 84
                    'event_espresso'
85
-               ) . '</p>';
85
+               ).'</p>';
86 86
     }
87 87
 
88 88
     protected function _price_name_stop()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                . esc_html__(
92 92
                    'The name of the price, discount, tax, or surcharge that will be seen by your customers.',
93 93
                    'event_espresso'
94
-               ) . '</p>';
94
+               ).'</p>';
95 95
     }
96 96
 
97 97
     protected function _price_description_stop()
@@ -100,11 +100,11 @@  discard block
 block discarded – undo
100 100
                . esc_html__(
101 101
                    'View the price type (price, discount, tax or surcharge) description.',
102 102
                    'event_espresso'
103
-               ) . '</p>';
103
+               ).'</p>';
104 104
     }
105 105
 
106 106
     protected function _price_amount_stop()
107 107
     {
108
-        return '<p>' . esc_html__('The ticket amount before any deductions.', 'event_espresso') . '</p>';
108
+        return '<p>'.esc_html__('The ticket amount before any deductions.', 'event_espresso').'</p>';
109 109
     }
110 110
 }
Please login to merge, or discard this patch.
admin/new/pricing/help_tours/Pricing_Add_New_Price_Type_Help_Tour.class.php 2 patches
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -15,84 +15,84 @@
 block discarded – undo
15 15
 class Pricing_Add_New_Price_Type_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Add New Price Type Tour', 'event_espresso');
21
-        $this->_slug = 'add-new-price-type-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Add New Price Type Tour', 'event_espresso');
21
+		$this->_slug = 'add-new-price-type-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'base_type',
33
-                'content' => $this->_basic_type_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentY' => -50,
37
-                    'tipAdjustmentX' => -15,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'PRT_name',
42
-                'content' => $this->_price_type_name_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentY' => -40,
46
-                ),
47
-            ),
48
-            40 => array(
49
-                'id'      => 'PRT_name',
50
-                'content' => $this->_percentage_dollar_amount_stop(),
51
-                'options' => array(
52
-                    'tipLocation'    => 'top',
53
-                    'tipAdjustmentY' => 45,
54
-                ),
55
-            ),
56
-            50 => array(
57
-                'id'      => 'PRT_order',
58
-                'content' => $this->_order_of_application_stop(),
59
-                'options' => array(
60
-                    'tipLocation'    => 'top',
61
-                    'tipAdjustmentY' => -40,
62
-                ),
63
-            ),
64
-        );
65
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'base_type',
33
+				'content' => $this->_basic_type_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentY' => -50,
37
+					'tipAdjustmentX' => -15,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'PRT_name',
42
+				'content' => $this->_price_type_name_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentY' => -40,
46
+				),
47
+			),
48
+			40 => array(
49
+				'id'      => 'PRT_name',
50
+				'content' => $this->_percentage_dollar_amount_stop(),
51
+				'options' => array(
52
+					'tipLocation'    => 'top',
53
+					'tipAdjustmentY' => 45,
54
+				),
55
+			),
56
+			50 => array(
57
+				'id'      => 'PRT_order',
58
+				'content' => $this->_order_of_application_stop(),
59
+				'options' => array(
60
+					'tipLocation'    => 'top',
61
+					'tipAdjustmentY' => -40,
62
+				),
63
+			),
64
+		);
65
+	}
66 66
 
67 67
 
68
-    protected function _start()
69
-    {
70
-        $content = '<h3>' . esc_html__('Add New Price Type', 'event_espresso') . '</h3>';
71
-        $content .= '<p>'
72
-                    . esc_html__(
73
-                        'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.',
74
-                        'event_espresso'
75
-                    ) . '</p>';
76
-        return $content;
77
-    }
68
+	protected function _start()
69
+	{
70
+		$content = '<h3>' . esc_html__('Add New Price Type', 'event_espresso') . '</h3>';
71
+		$content .= '<p>'
72
+					. esc_html__(
73
+						'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.',
74
+						'event_espresso'
75
+					) . '</p>';
76
+		return $content;
77
+	}
78 78
 
79
-    protected function _basic_type_stop()
80
-    {
81
-        return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
82
-    }
79
+	protected function _basic_type_stop()
80
+	{
81
+		return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
82
+	}
83 83
 
84
-    protected function _price_type_name_stop()
85
-    {
86
-        return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
87
-    }
84
+	protected function _price_type_name_stop()
85
+	{
86
+		return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
87
+	}
88 88
 
89
-    protected function _percentage_dollar_amount_stop()
90
-    {
91
-        return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
92
-    }
89
+	protected function _percentage_dollar_amount_stop()
90
+	{
91
+		return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
92
+	}
93 93
 
94
-    protected function _order_of_application_stop()
95
-    {
96
-        return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
97
-    }
94
+	protected function _order_of_application_stop()
95
+	{
96
+		return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
97
+	}
98 98
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,32 +67,32 @@
 block discarded – undo
67 67
 
68 68
     protected function _start()
69 69
     {
70
-        $content = '<h3>' . esc_html__('Add New Price Type', 'event_espresso') . '</h3>';
70
+        $content = '<h3>'.esc_html__('Add New Price Type', 'event_espresso').'</h3>';
71 71
         $content .= '<p>'
72 72
                     . esc_html__(
73 73
                         'This tour of the Add New Price Type page will go over different areas of the screen to help you understand what they are used for.',
74 74
                         'event_espresso'
75
-                    ) . '</p>';
75
+                    ).'</p>';
76 76
         return $content;
77 77
     }
78 78
 
79 79
     protected function _basic_type_stop()
80 80
     {
81
-        return '<p>' . esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso') . '</p>';
81
+        return '<p>'.esc_html__('Set a price type to be a discount, surcharge, or tax.', 'event_espresso').'</p>';
82 82
     }
83 83
 
84 84
     protected function _price_type_name_stop()
85 85
     {
86
-        return '<p>' . esc_html__('The name of the price type.', 'event_espresso') . '</p>';
86
+        return '<p>'.esc_html__('The name of the price type.', 'event_espresso').'</p>';
87 87
     }
88 88
 
89 89
     protected function _percentage_dollar_amount_stop()
90 90
     {
91
-        return '<p>' . esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso') . '</p>';
91
+        return '<p>'.esc_html__('Set a price type to be percentage-based or a fixed amount.', 'event_espresso').'</p>';
92 92
     }
93 93
 
94 94
     protected function _order_of_application_stop()
95 95
     {
96
-        return '<p>' . esc_html__('Set the order of application for a price type.', 'event_espresso') . '</p>';
96
+        return '<p>'.esc_html__('Set the order of application for a price type.', 'event_espresso').'</p>';
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
new/pricing/help_tours/Pricing_Price_Types_Default_Help_Tour.class.php 2 patches
Indentation   +125 added lines, -125 removed lines patch added patch discarded remove patch
@@ -15,140 +15,140 @@
 block discarded – undo
15 15
 class Pricing_Price_Types_Default_Help_Tour extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Price Types Tour', 'event_espresso');
21
-        $this->_slug = 'default-price-types-joyride';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Price Types Tour', 'event_espresso');
21
+		$this->_slug = 'default-price-types-joyride';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'content' => $this->_start(),
30
-            ),
31
-            20 => array(
32
-                'id'      => 'name',
33
-                'content' => $this->_name_column_stop(),
34
-                'options' => array(
35
-                    'tipLocation'    => 'top',
36
-                    'tipAdjustmentX' => -5,
37
-                    'tipAdjustmentY' => -30,
38
-                ),
39
-            ),
40
-            30 => array(
41
-                'id'      => 'base_type',
42
-                'content' => $this->_base_type_stop(),
43
-                'options' => array(
44
-                    'tipLocation'    => 'top',
45
-                    'tipAdjustmentX' => 120,
46
-                    'tipAdjustmentY' => -30,
47
-                ),
48
-            ),
49
-            40 => array(
50
-                'id'      => 'percent',
51
-                'content' => $this->_percent_column_stop(),
52
-                'options' => array(
53
-                    'tipLocation'    => 'top',
54
-                    'tipAdjustmentX' => 120,
55
-                    'tipAdjustmentY' => -30,
56
-                ),
57
-            ),
58
-            50 => array(
59
-                'id'      => 'order',
60
-                'content' => $this->_order_column_stop(),
61
-                'options' => array(
62
-                    'tipLocation'    => 'left',
63
-                    'tipAdjustmentY' => -30,
64
-                    'tipAdjustmentX' => 100,
65
-                ),
66
-            ),
67
-            60 => array(
68
-                'class'   => 'bulkactions',
69
-                'content' => $this->_bulk_actions_stop(),
70
-                'options' => array(
71
-                    'tipLocation'    => 'left',
72
-                    'tipAdjustmentY' => -50,
73
-                    'tipAdjustmentX' => -75,
74
-                ),
75
-            ),
76
-            70 => array(
77
-                'id'      => 'event-espresso_page_pricing-search-input',
78
-                'content' => $this->_search_stop(),
79
-                'options' => array(
80
-                    'tipLocation'    => 'left',
81
-                    'tipAdjustmentY' => -50,
82
-                    'tipAdjustmentX' => -15,
83
-                ),
84
-            ),
85
-        );
86
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'content' => $this->_start(),
30
+			),
31
+			20 => array(
32
+				'id'      => 'name',
33
+				'content' => $this->_name_column_stop(),
34
+				'options' => array(
35
+					'tipLocation'    => 'top',
36
+					'tipAdjustmentX' => -5,
37
+					'tipAdjustmentY' => -30,
38
+				),
39
+			),
40
+			30 => array(
41
+				'id'      => 'base_type',
42
+				'content' => $this->_base_type_stop(),
43
+				'options' => array(
44
+					'tipLocation'    => 'top',
45
+					'tipAdjustmentX' => 120,
46
+					'tipAdjustmentY' => -30,
47
+				),
48
+			),
49
+			40 => array(
50
+				'id'      => 'percent',
51
+				'content' => $this->_percent_column_stop(),
52
+				'options' => array(
53
+					'tipLocation'    => 'top',
54
+					'tipAdjustmentX' => 120,
55
+					'tipAdjustmentY' => -30,
56
+				),
57
+			),
58
+			50 => array(
59
+				'id'      => 'order',
60
+				'content' => $this->_order_column_stop(),
61
+				'options' => array(
62
+					'tipLocation'    => 'left',
63
+					'tipAdjustmentY' => -30,
64
+					'tipAdjustmentX' => 100,
65
+				),
66
+			),
67
+			60 => array(
68
+				'class'   => 'bulkactions',
69
+				'content' => $this->_bulk_actions_stop(),
70
+				'options' => array(
71
+					'tipLocation'    => 'left',
72
+					'tipAdjustmentY' => -50,
73
+					'tipAdjustmentX' => -75,
74
+				),
75
+			),
76
+			70 => array(
77
+				'id'      => 'event-espresso_page_pricing-search-input',
78
+				'content' => $this->_search_stop(),
79
+				'options' => array(
80
+					'tipLocation'    => 'left',
81
+					'tipAdjustmentY' => -50,
82
+					'tipAdjustmentX' => -15,
83
+				),
84
+			),
85
+		);
86
+	}
87 87
 
88 88
 
89
-    protected function _start()
90
-    {
91
-        $content = '<h3>' . esc_html__('Price Types', 'event_espresso') . '</h3>';
92
-        $content .= '<p>'
93
-                    . esc_html__(
94
-                        'This tour of the Price Types page will go over different areas of the screen to help you understand what they are used for.',
95
-                        'event_espresso'
96
-                    ) . '</p>';
97
-        return $content;
98
-    }
89
+	protected function _start()
90
+	{
91
+		$content = '<h3>' . esc_html__('Price Types', 'event_espresso') . '</h3>';
92
+		$content .= '<p>'
93
+					. esc_html__(
94
+						'This tour of the Price Types page will go over different areas of the screen to help you understand what they are used for.',
95
+						'event_espresso'
96
+					) . '</p>';
97
+		return $content;
98
+	}
99 99
 
100
-    protected function _name_column_stop()
101
-    {
102
-        return '<p>'
103
-               . esc_html__(
104
-                   'The name of the price type. Can be sorted in ascending or descending order.',
105
-                   'event_espresso'
106
-               ) . '</p>';
107
-    }
100
+	protected function _name_column_stop()
101
+	{
102
+		return '<p>'
103
+			   . esc_html__(
104
+				   'The name of the price type. Can be sorted in ascending or descending order.',
105
+				   'event_espresso'
106
+			   ) . '</p>';
107
+	}
108 108
 
109
-    protected function _base_type_stop()
110
-    {
111
-        return '<p>' . esc_html__('View if a price type is a discount, surcharge, or tax.', 'event_espresso') . '</p>';
112
-    }
109
+	protected function _base_type_stop()
110
+	{
111
+		return '<p>' . esc_html__('View if a price type is a discount, surcharge, or tax.', 'event_espresso') . '</p>';
112
+	}
113 113
 
114
-    protected function _member_column_stop()
115
-    {
116
-        return '<p>'
117
-               . esc_html__(
118
-                   'Here you can see if the discount/surcharge is percentage based or a flat monetary amount.',
119
-                   'event_espresso'
120
-               ) . '</p>';
121
-    }
114
+	protected function _member_column_stop()
115
+	{
116
+		return '<p>'
117
+			   . esc_html__(
118
+				   'Here you can see if the discount/surcharge is percentage based or a flat monetary amount.',
119
+				   'event_espresso'
120
+			   ) . '</p>';
121
+	}
122 122
 
123
-    protected function _percent_column_stop()
124
-    {
125
-        return '<p>'
126
-               . esc_html__(
127
-                   'View if the discount, surcharge, or tax is percentage-based or a fixed amount.',
128
-                   'event_espresso'
129
-               ) . '</p>';
130
-    }
123
+	protected function _percent_column_stop()
124
+	{
125
+		return '<p>'
126
+			   . esc_html__(
127
+				   'View if the discount, surcharge, or tax is percentage-based or a fixed amount.',
128
+				   'event_espresso'
129
+			   ) . '</p>';
130
+	}
131 131
 
132
-    protected function _order_column_stop()
133
-    {
134
-        return '<p>'
135
-               . esc_html__(
136
-                   'View the order in which each discount, surcharge, or tax will be applied to the base ticket cost. Zero (0) means it will be applied first.',
137
-                   'event_espresso'
138
-               ) . '</p>';
139
-    }
132
+	protected function _order_column_stop()
133
+	{
134
+		return '<p>'
135
+			   . esc_html__(
136
+				   'View the order in which each discount, surcharge, or tax will be applied to the base ticket cost. Zero (0) means it will be applied first.',
137
+				   'event_espresso'
138
+			   ) . '</p>';
139
+	}
140 140
 
141
-    protected function _bulk_actions_stop()
142
-    {
143
-        return '<p>' . esc_html__('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>';
144
-    }
141
+	protected function _bulk_actions_stop()
142
+	{
143
+		return '<p>' . esc_html__('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>';
144
+	}
145 145
 
146
-    protected function _search_stop()
147
-    {
148
-        return '<p>'
149
-               . esc_html__(
150
-                   'Search through price types. The following source will be searched: Price Type Name.',
151
-                   'event_espresso'
152
-               ) . '</p>';
153
-    }
146
+	protected function _search_stop()
147
+	{
148
+		return '<p>'
149
+			   . esc_html__(
150
+				   'Search through price types. The following source will be searched: Price Type Name.',
151
+				   'event_espresso'
152
+			   ) . '</p>';
153
+	}
154 154
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,12 +88,12 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function _start()
90 90
     {
91
-        $content = '<h3>' . esc_html__('Price Types', 'event_espresso') . '</h3>';
91
+        $content = '<h3>'.esc_html__('Price Types', 'event_espresso').'</h3>';
92 92
         $content .= '<p>'
93 93
                     . esc_html__(
94 94
                         'This tour of the Price Types page will go over different areas of the screen to help you understand what they are used for.',
95 95
                         'event_espresso'
96
-                    ) . '</p>';
96
+                    ).'</p>';
97 97
         return $content;
98 98
     }
99 99
 
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
                . esc_html__(
104 104
                    'The name of the price type. Can be sorted in ascending or descending order.',
105 105
                    'event_espresso'
106
-               ) . '</p>';
106
+               ).'</p>';
107 107
     }
108 108
 
109 109
     protected function _base_type_stop()
110 110
     {
111
-        return '<p>' . esc_html__('View if a price type is a discount, surcharge, or tax.', 'event_espresso') . '</p>';
111
+        return '<p>'.esc_html__('View if a price type is a discount, surcharge, or tax.', 'event_espresso').'</p>';
112 112
     }
113 113
 
114 114
     protected function _member_column_stop()
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                . esc_html__(
118 118
                    'Here you can see if the discount/surcharge is percentage based or a flat monetary amount.',
119 119
                    'event_espresso'
120
-               ) . '</p>';
120
+               ).'</p>';
121 121
     }
122 122
 
123 123
     protected function _percent_column_stop()
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                . esc_html__(
127 127
                    'View if the discount, surcharge, or tax is percentage-based or a fixed amount.',
128 128
                    'event_espresso'
129
-               ) . '</p>';
129
+               ).'</p>';
130 130
     }
131 131
 
132 132
     protected function _order_column_stop()
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
                . esc_html__(
136 136
                    'View the order in which each discount, surcharge, or tax will be applied to the base ticket cost. Zero (0) means it will be applied first.',
137 137
                    'event_espresso'
138
-               ) . '</p>';
138
+               ).'</p>';
139 139
     }
140 140
 
141 141
     protected function _bulk_actions_stop()
142 142
     {
143
-        return '<p>' . esc_html__('Perform bulk actions to multiple price types.', 'event_espresso') . '</p>';
143
+        return '<p>'.esc_html__('Perform bulk actions to multiple price types.', 'event_espresso').'</p>';
144 144
     }
145 145
 
146 146
     protected function _search_stop()
@@ -149,6 +149,6 @@  discard block
 block discarded – undo
149 149
                . esc_html__(
150 150
                    'Search through price types. The following source will be searched: Price Type Name.',
151 151
                    'event_espresso'
152
-               ) . '</p>';
152
+               ).'</p>';
153 153
     }
154 154
 }
Please login to merge, or discard this patch.