Completed
Branch 973/fix-visible-recaptcha (0580c7)
by
unknown
03:03 queued 30s
created
core/libraries/template_parts/EE_Template_Part_Manager.class.php 2 patches
Indentation   +191 added lines, -191 removed lines patch added patch discarded remove patch
@@ -14,195 +14,195 @@
 block discarded – undo
14 14
 class EE_Template_Part_Manager
15 15
 {
16 16
 
17
-    /**
18
-     * @param EE_Template_Part_PriorityQueue $template_parts
19
-     */
20
-    protected $template_parts;
21
-
22
-    /**
23
-     * @param array $priorities
24
-     */
25
-    protected $priorities = array();
26
-
27
-    /**
28
-     * @param int $event_desc_priority
29
-     */
30
-    protected $event_desc_priority;
31
-
32
-    /**
33
-     * @param string $before_event_content
34
-     */
35
-    protected $before_event_content;
36
-
37
-    /**
38
-     * @param string $event_content
39
-     */
40
-    protected $event_content;
41
-
42
-    /**
43
-     * @param string $after_event_content
44
-     */
45
-    protected $after_event_content;
46
-
47
-
48
-    /**
49
-     *    class constructor
50
-     */
51
-    public function __construct()
52
-    {
53
-        $this->template_parts = new EE_Template_Part_PriorityQueue();
54
-    }
55
-
56
-
57
-    /**
58
-     *    add_template_part
59
-     *
60
-     *    used for setting the details about a particular template part
61
-     *
62
-     * @param string $name     - just a simple string identifier - do NOT use 'event'
63
-     * @param string $label    - template part label displayed in admin
64
-     * @param string $template - name or path of template to be used by EEH_Template::locate_template()
65
-     * @param int    $priority - order in which template parts should be applied
66
-     */
67
-    public function add_template_part($name, $label, $template, $priority)
68
-    {
69
-        // SplPriorityQueue doesn't play nice with multiple items having the same priority
70
-        // so if the incoming priority is already occupied, then let's increment it by one,
71
-        // and then pass everything back into this method and try again with the new priority
72
-        if (isset($this->priorities[ $priority ])) {
73
-            $priority++;
74
-            $this->add_template_part($name, $label, $template, $priority);
75
-            return;
76
-        }
77
-        // kk now we can mark this priority as being occupied
78
-        $this->priorities[ $priority ] = true;
79
-        // create the template part and add to the queue
80
-        $this->template_parts->insert(
81
-            new EE_Template_Part($name, $label, $template, $priority),
82
-            $priority
83
-        );
84
-        if ($name === 'event') {
85
-            $this->event_desc_priority = $priority;
86
-        }
87
-    }
88
-
89
-
90
-    /**
91
-     *    apply_template_part_filters
92
-     *
93
-     *    adds template parts to the supplied content
94
-     *    according to the details set when the template parts were added
95
-     *
96
-     * @access public
97
-     * @param string $content
98
-     * @return string
99
-     */
100
-    public function apply_template_part_filters($content = '')
101
-    {
102
-        $this->template_parts->rewind();
103
-        // loop through template parts and position content
104
-        while ($this->template_parts->valid()) {
105
-            $this->_position_template_part(
106
-                $content,
107
-                $this->template_parts->current()->template(),
108
-                $this->template_parts->current()->priority()
109
-            );
110
-            $this->template_parts->next();
111
-        }
112
-        // now simply add our three strings of content together
113
-        return $this->before_event_content . $this->event_content . $this->after_event_content;
114
-    }
115
-
116
-
117
-    /**
118
-     *    position_template_part
119
-     *
120
-     * based on the priority of the incoming template part
121
-     * relative to the known event description template part priority,
122
-     * this method will assign template parts to one of the following:
123
-     *        $this->before_event_content
124
-     *        $this->event_content
125
-     *        $this->after_event_content
126
-     *
127
-     * @access protected
128
-     * @param string $content
129
-     * @param string $template
130
-     * @param int    $priority
131
-     * @return void
132
-     */
133
-    protected function _position_template_part($content, $template, $priority)
134
-    {
135
-        // Event Description content is the actual incoming content itself
136
-        if ($priority === $this->event_desc_priority) {
137
-            $this->event_content = $content;
138
-        } elseif ($priority < $this->event_desc_priority) {
139
-            // everything BEFORE the Event Description
140
-            $this->before_event_content .= EEH_Template::locate_template($template);
141
-        } elseif ($priority > $this->event_desc_priority) {
142
-            // everything AFTER the Event Description
143
-            $this->after_event_content .= EEH_Template::locate_template($template);
144
-        }
145
-    }
146
-
147
-
148
-    /**
149
-     *    generate_sortable_list_of_template_parts
150
-     *
151
-     *    creates an HTML list (<ul>) with list items (<li>) for each template part,
152
-     *    in a format that can be used as a sortable list in the admin
153
-     *
154
-     * @access public
155
-     * @param string $list_css_id
156
-     * @param string $list_css_class
157
-     * @param string $list_item_css_class
158
-     * @param string $list_item_css_id_prefix
159
-     * @return string
160
-     */
161
-    public function generate_sortable_list_of_template_parts(
162
-        $list_css_id = '',
163
-        $list_css_class = '',
164
-        $list_item_css_class = '',
165
-        $list_item_css_id_prefix = ''
166
-    ) {
167
-        $event_archive_display_order = EEH_HTML::ul($list_css_id, $list_css_class);
168
-        $this->template_parts->rewind();
169
-        // loop through template parts and add template content
170
-        while ($this->template_parts->valid()) {
171
-            $event_archive_display_order .= EEH_HTML::li(
172
-                EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') .
173
-                EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') .
174
-                $this->template_parts->current()->label(),
175
-                $list_item_css_id_prefix . $this->template_parts->current()->name(),
176
-                $list_item_css_class
177
-            );
178
-            $this->template_parts->next();
179
-        }
180
-        $event_archive_display_order .= EEH_HTML::ulx();
181
-        return $event_archive_display_order;
182
-    }
183
-
184
-
185
-    /**
186
-     *    display_template_parts
187
-     *
188
-     * just for debugging purposes
189
-     *
190
-     * @access    public
191
-     * @return void
192
-     */
193
-    public function display_template_parts()
194
-    {
195
-        if (WP_DEBUG) {
196
-            $this->template_parts->rewind();
197
-            while ($this->template_parts->valid()) {
198
-                EEH_Debug_Tools::printr(
199
-                    $this->template_parts->current(),
200
-                    'template_part',
201
-                    __FILE__,
202
-                    __LINE__
203
-                );
204
-                $this->template_parts->next();
205
-            }
206
-        }
207
-    }
17
+	/**
18
+	 * @param EE_Template_Part_PriorityQueue $template_parts
19
+	 */
20
+	protected $template_parts;
21
+
22
+	/**
23
+	 * @param array $priorities
24
+	 */
25
+	protected $priorities = array();
26
+
27
+	/**
28
+	 * @param int $event_desc_priority
29
+	 */
30
+	protected $event_desc_priority;
31
+
32
+	/**
33
+	 * @param string $before_event_content
34
+	 */
35
+	protected $before_event_content;
36
+
37
+	/**
38
+	 * @param string $event_content
39
+	 */
40
+	protected $event_content;
41
+
42
+	/**
43
+	 * @param string $after_event_content
44
+	 */
45
+	protected $after_event_content;
46
+
47
+
48
+	/**
49
+	 *    class constructor
50
+	 */
51
+	public function __construct()
52
+	{
53
+		$this->template_parts = new EE_Template_Part_PriorityQueue();
54
+	}
55
+
56
+
57
+	/**
58
+	 *    add_template_part
59
+	 *
60
+	 *    used for setting the details about a particular template part
61
+	 *
62
+	 * @param string $name     - just a simple string identifier - do NOT use 'event'
63
+	 * @param string $label    - template part label displayed in admin
64
+	 * @param string $template - name or path of template to be used by EEH_Template::locate_template()
65
+	 * @param int    $priority - order in which template parts should be applied
66
+	 */
67
+	public function add_template_part($name, $label, $template, $priority)
68
+	{
69
+		// SplPriorityQueue doesn't play nice with multiple items having the same priority
70
+		// so if the incoming priority is already occupied, then let's increment it by one,
71
+		// and then pass everything back into this method and try again with the new priority
72
+		if (isset($this->priorities[ $priority ])) {
73
+			$priority++;
74
+			$this->add_template_part($name, $label, $template, $priority);
75
+			return;
76
+		}
77
+		// kk now we can mark this priority as being occupied
78
+		$this->priorities[ $priority ] = true;
79
+		// create the template part and add to the queue
80
+		$this->template_parts->insert(
81
+			new EE_Template_Part($name, $label, $template, $priority),
82
+			$priority
83
+		);
84
+		if ($name === 'event') {
85
+			$this->event_desc_priority = $priority;
86
+		}
87
+	}
88
+
89
+
90
+	/**
91
+	 *    apply_template_part_filters
92
+	 *
93
+	 *    adds template parts to the supplied content
94
+	 *    according to the details set when the template parts were added
95
+	 *
96
+	 * @access public
97
+	 * @param string $content
98
+	 * @return string
99
+	 */
100
+	public function apply_template_part_filters($content = '')
101
+	{
102
+		$this->template_parts->rewind();
103
+		// loop through template parts and position content
104
+		while ($this->template_parts->valid()) {
105
+			$this->_position_template_part(
106
+				$content,
107
+				$this->template_parts->current()->template(),
108
+				$this->template_parts->current()->priority()
109
+			);
110
+			$this->template_parts->next();
111
+		}
112
+		// now simply add our three strings of content together
113
+		return $this->before_event_content . $this->event_content . $this->after_event_content;
114
+	}
115
+
116
+
117
+	/**
118
+	 *    position_template_part
119
+	 *
120
+	 * based on the priority of the incoming template part
121
+	 * relative to the known event description template part priority,
122
+	 * this method will assign template parts to one of the following:
123
+	 *        $this->before_event_content
124
+	 *        $this->event_content
125
+	 *        $this->after_event_content
126
+	 *
127
+	 * @access protected
128
+	 * @param string $content
129
+	 * @param string $template
130
+	 * @param int    $priority
131
+	 * @return void
132
+	 */
133
+	protected function _position_template_part($content, $template, $priority)
134
+	{
135
+		// Event Description content is the actual incoming content itself
136
+		if ($priority === $this->event_desc_priority) {
137
+			$this->event_content = $content;
138
+		} elseif ($priority < $this->event_desc_priority) {
139
+			// everything BEFORE the Event Description
140
+			$this->before_event_content .= EEH_Template::locate_template($template);
141
+		} elseif ($priority > $this->event_desc_priority) {
142
+			// everything AFTER the Event Description
143
+			$this->after_event_content .= EEH_Template::locate_template($template);
144
+		}
145
+	}
146
+
147
+
148
+	/**
149
+	 *    generate_sortable_list_of_template_parts
150
+	 *
151
+	 *    creates an HTML list (<ul>) with list items (<li>) for each template part,
152
+	 *    in a format that can be used as a sortable list in the admin
153
+	 *
154
+	 * @access public
155
+	 * @param string $list_css_id
156
+	 * @param string $list_css_class
157
+	 * @param string $list_item_css_class
158
+	 * @param string $list_item_css_id_prefix
159
+	 * @return string
160
+	 */
161
+	public function generate_sortable_list_of_template_parts(
162
+		$list_css_id = '',
163
+		$list_css_class = '',
164
+		$list_item_css_class = '',
165
+		$list_item_css_id_prefix = ''
166
+	) {
167
+		$event_archive_display_order = EEH_HTML::ul($list_css_id, $list_css_class);
168
+		$this->template_parts->rewind();
169
+		// loop through template parts and add template content
170
+		while ($this->template_parts->valid()) {
171
+			$event_archive_display_order .= EEH_HTML::li(
172
+				EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') .
173
+				EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') .
174
+				$this->template_parts->current()->label(),
175
+				$list_item_css_id_prefix . $this->template_parts->current()->name(),
176
+				$list_item_css_class
177
+			);
178
+			$this->template_parts->next();
179
+		}
180
+		$event_archive_display_order .= EEH_HTML::ulx();
181
+		return $event_archive_display_order;
182
+	}
183
+
184
+
185
+	/**
186
+	 *    display_template_parts
187
+	 *
188
+	 * just for debugging purposes
189
+	 *
190
+	 * @access    public
191
+	 * @return void
192
+	 */
193
+	public function display_template_parts()
194
+	{
195
+		if (WP_DEBUG) {
196
+			$this->template_parts->rewind();
197
+			while ($this->template_parts->valid()) {
198
+				EEH_Debug_Tools::printr(
199
+					$this->template_parts->current(),
200
+					'template_part',
201
+					__FILE__,
202
+					__LINE__
203
+				);
204
+				$this->template_parts->next();
205
+			}
206
+		}
207
+	}
208 208
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
         // SplPriorityQueue doesn't play nice with multiple items having the same priority
70 70
         // so if the incoming priority is already occupied, then let's increment it by one,
71 71
         // and then pass everything back into this method and try again with the new priority
72
-        if (isset($this->priorities[ $priority ])) {
72
+        if (isset($this->priorities[$priority])) {
73 73
             $priority++;
74 74
             $this->add_template_part($name, $label, $template, $priority);
75 75
             return;
76 76
         }
77 77
         // kk now we can mark this priority as being occupied
78
-        $this->priorities[ $priority ] = true;
78
+        $this->priorities[$priority] = true;
79 79
         // create the template part and add to the queue
80 80
         $this->template_parts->insert(
81 81
             new EE_Template_Part($name, $label, $template, $priority),
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             $this->template_parts->next();
111 111
         }
112 112
         // now simply add our three strings of content together
113
-        return $this->before_event_content . $this->event_content . $this->after_event_content;
113
+        return $this->before_event_content.$this->event_content.$this->after_event_content;
114 114
     }
115 115
 
116 116
 
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
         // loop through template parts and add template content
170 170
         while ($this->template_parts->valid()) {
171 171
             $event_archive_display_order .= EEH_HTML::li(
172
-                EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2') .
173
-                EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2') .
172
+                EEH_HTML::span('', '', 'dashicons dashicons-arrow-up-alt2').
173
+                EEH_HTML::span('', '', 'dashicons dashicons-arrow-down-alt2').
174 174
                 $this->template_parts->current()->label(),
175
-                $list_item_css_id_prefix . $this->template_parts->current()->name(),
175
+                $list_item_css_id_prefix.$this->template_parts->current()->name(),
176 176
                 $list_item_css_class
177 177
             );
178 178
             $this->template_parts->next();
Please login to merge, or discard this patch.
core/libraries/template_parts/EE_Template_Part.class.php 1 patch
Indentation   +108 added lines, -108 removed lines patch added patch discarded remove patch
@@ -16,112 +16,112 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
 
19
-    /**
20
-     * @type string $name
21
-     */
22
-    protected $name;
23
-
24
-    /**
25
-     * @type string $label
26
-     */
27
-    protected $label;
28
-
29
-    /**
30
-     * @type string $template
31
-     */
32
-    protected $template;
33
-
34
-    /**
35
-     * @type int $priority
36
-     */
37
-    protected $priority;
38
-
39
-
40
-    /**
41
-     *    class constructor
42
-     *
43
-     * @param string $name
44
-     * @param string $label
45
-     * @param string $template
46
-     * @param int    $priority
47
-     */
48
-    public function __construct($name, $label, $template, $priority = 100)
49
-    {
50
-        $this->set_name($name);
51
-        $this->set_label($label);
52
-        $this->set_template($template);
53
-        $this->set_priority($priority);
54
-    }
55
-
56
-
57
-    /**
58
-     * @return mixed
59
-     */
60
-    public function name()
61
-    {
62
-        return $this->name;
63
-    }
64
-
65
-
66
-    /**
67
-     * @param mixed $name
68
-     */
69
-    public function set_name($name)
70
-    {
71
-        $this->name = $name;
72
-    }
73
-
74
-
75
-    /**
76
-     * @return string
77
-     */
78
-    public function label()
79
-    {
80
-        return $this->label;
81
-    }
82
-
83
-
84
-    /**
85
-     * @param string $label
86
-     */
87
-    public function set_label($label)
88
-    {
89
-        $this->label = $label;
90
-    }
91
-
92
-
93
-    /**
94
-     * @return array
95
-     */
96
-    public function template()
97
-    {
98
-        return $this->template;
99
-    }
100
-
101
-
102
-    /**
103
-     * @param string $template
104
-     */
105
-    public function set_template($template)
106
-    {
107
-        $this->template = $template;
108
-    }
109
-
110
-
111
-    /**
112
-     * @return int
113
-     */
114
-    public function priority()
115
-    {
116
-        return $this->priority;
117
-    }
118
-
119
-
120
-    /**
121
-     * @param int $priority
122
-     */
123
-    public function set_priority($priority)
124
-    {
125
-        $this->priority = intval($priority);
126
-    }
19
+	/**
20
+	 * @type string $name
21
+	 */
22
+	protected $name;
23
+
24
+	/**
25
+	 * @type string $label
26
+	 */
27
+	protected $label;
28
+
29
+	/**
30
+	 * @type string $template
31
+	 */
32
+	protected $template;
33
+
34
+	/**
35
+	 * @type int $priority
36
+	 */
37
+	protected $priority;
38
+
39
+
40
+	/**
41
+	 *    class constructor
42
+	 *
43
+	 * @param string $name
44
+	 * @param string $label
45
+	 * @param string $template
46
+	 * @param int    $priority
47
+	 */
48
+	public function __construct($name, $label, $template, $priority = 100)
49
+	{
50
+		$this->set_name($name);
51
+		$this->set_label($label);
52
+		$this->set_template($template);
53
+		$this->set_priority($priority);
54
+	}
55
+
56
+
57
+	/**
58
+	 * @return mixed
59
+	 */
60
+	public function name()
61
+	{
62
+		return $this->name;
63
+	}
64
+
65
+
66
+	/**
67
+	 * @param mixed $name
68
+	 */
69
+	public function set_name($name)
70
+	{
71
+		$this->name = $name;
72
+	}
73
+
74
+
75
+	/**
76
+	 * @return string
77
+	 */
78
+	public function label()
79
+	{
80
+		return $this->label;
81
+	}
82
+
83
+
84
+	/**
85
+	 * @param string $label
86
+	 */
87
+	public function set_label($label)
88
+	{
89
+		$this->label = $label;
90
+	}
91
+
92
+
93
+	/**
94
+	 * @return array
95
+	 */
96
+	public function template()
97
+	{
98
+		return $this->template;
99
+	}
100
+
101
+
102
+	/**
103
+	 * @param string $template
104
+	 */
105
+	public function set_template($template)
106
+	{
107
+		$this->template = $template;
108
+	}
109
+
110
+
111
+	/**
112
+	 * @return int
113
+	 */
114
+	public function priority()
115
+	{
116
+		return $this->priority;
117
+	}
118
+
119
+
120
+	/**
121
+	 * @param int $priority
122
+	 */
123
+	public function set_priority($priority)
124
+	{
125
+		$this->priority = intval($priority);
126
+	}
127 127
 }
Please login to merge, or discard this patch.
core/libraries/template_parts/EE_Template_Part_PriorityQueue.class.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -17,43 +17,43 @@
 block discarded – undo
17 17
 {
18 18
 
19 19
 
20
-    /**
21
-     * add
22
-     *
23
-     * attaches aTemplate_Part to the Collection
24
-     * and sets any supplied data associated with the current iterator entry
25
-     *
26
-     * @access public
27
-     * @param EE_Template_Part $object
28
-     * @param int              $priority
29
-     * @return bool
30
-     */
31
-    public function insert($object, $priority = 100)
32
-    {
33
-        if ($object instanceof EE_Template_Part) {
34
-            parent::insert($object, $priority);
35
-            return true;
36
-        } else {
37
-            return false;
38
-        }
39
-    }
20
+	/**
21
+	 * add
22
+	 *
23
+	 * attaches aTemplate_Part to the Collection
24
+	 * and sets any supplied data associated with the current iterator entry
25
+	 *
26
+	 * @access public
27
+	 * @param EE_Template_Part $object
28
+	 * @param int              $priority
29
+	 * @return bool
30
+	 */
31
+	public function insert($object, $priority = 100)
32
+	{
33
+		if ($object instanceof EE_Template_Part) {
34
+			parent::insert($object, $priority);
35
+			return true;
36
+		} else {
37
+			return false;
38
+		}
39
+	}
40 40
 
41 41
 
42
-    /**
43
-     * compare
44
-     *
45
-     * sorts EE_Template_Part in ascending order based on set priority
46
-     *
47
-     * @access public
48
-     * @param int $priority1
49
-     * @param int $priority2
50
-     * @return bool
51
-     */
52
-    public function compare($priority1, $priority2)
53
-    {
54
-        if ($priority1 === $priority2) {
55
-            return 0;
56
-        }
57
-        return $priority1 > $priority2 ? -1 : 1;
58
-    }
42
+	/**
43
+	 * compare
44
+	 *
45
+	 * sorts EE_Template_Part in ascending order based on set priority
46
+	 *
47
+	 * @access public
48
+	 * @param int $priority1
49
+	 * @param int $priority2
50
+	 * @return bool
51
+	 */
52
+	public function compare($priority1, $priority2)
53
+	{
54
+		if ($priority1 === $priority2) {
55
+			return 0;
56
+		}
57
+		return $priority1 > $priority2 ? -1 : 1;
58
+	}
59 59
 }
Please login to merge, or discard this patch.
core/business/EE_Processor_Base.class.php 2 patches
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -14,71 +14,71 @@
 block discarded – undo
14 14
 class EE_Processor_Base
15 15
 {
16 16
 
17
-    /**
18
-     * Used to indicate whether current request is for an IPN or not.
19
-     *
20
-     * @var bool
21
-     */
22
-    protected static $IPN = false;
17
+	/**
18
+	 * Used to indicate whether current request is for an IPN or not.
19
+	 *
20
+	 * @var bool
21
+	 */
22
+	protected static $IPN = false;
23 23
 
24
-    /**
25
-     * Used to indicate whether SPCO is being revisited by registrant or not.
26
-     *
27
-     * @var bool
28
-     */
29
-    protected $_revisit = false;
24
+	/**
25
+	 * Used to indicate whether SPCO is being revisited by registrant or not.
26
+	 *
27
+	 * @var bool
28
+	 */
29
+	protected $_revisit = false;
30 30
 
31 31
 
32
-    /**
33
-     * @param boolean $IPN
34
-     */
35
-    public static function set_IPN($IPN)
36
-    {
37
-        self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN);
38
-    }
32
+	/**
33
+	 * @param boolean $IPN
34
+	 */
35
+	public static function set_IPN($IPN)
36
+	{
37
+		self::$IPN = filter_var($IPN, FILTER_VALIDATE_BOOLEAN);
38
+	}
39 39
 
40 40
 
41
-    /**
42
-     * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not.
43
-     *
44
-     * @param bool $revisit
45
-     * @return void
46
-     */
47
-    public function set_revisit($revisit = false)
48
-    {
49
-        $this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN);
50
-    }
41
+	/**
42
+	 * Allows external class (usually checkout) to set whether SPCO is being revisited by registrant or not.
43
+	 *
44
+	 * @param bool $revisit
45
+	 * @return void
46
+	 */
47
+	public function set_revisit($revisit = false)
48
+	{
49
+		$this->_revisit = filter_var($revisit, FILTER_VALIDATE_BOOLEAN);
50
+	}
51 51
 
52 52
 
53
-    /**
54
-     * debug
55
-     *
56
-     * @param string          $class
57
-     * @param string          $func
58
-     * @param string          $line
59
-     * @param \EE_Transaction $transaction
60
-     * @param array           $info
61
-     * @param bool            $display_request
62
-     */
63
-    protected function log(
64
-        $class = '',
65
-        $func = '',
66
-        $line = '',
67
-        EE_Transaction $transaction,
68
-        $info = array(),
69
-        $display_request = false
70
-    ) {
71
-        if (WP_DEBUG && false) {
72
-            if ($transaction instanceof EE_Transaction) {
73
-                // don't serialize objects
74
-                $info = EEH_Debug_Tools::strip_objects($info);
75
-                if ($transaction->ID()) {
76
-                    $info['TXN_status'] = $transaction->status_ID();
77
-                    $info['TXN_reg_steps'] = $transaction->reg_steps();
78
-                    $index = 'EE_Transaction: ' . $transaction->ID();
79
-                    EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index);
80
-                }
81
-            }
82
-        }
83
-    }
53
+	/**
54
+	 * debug
55
+	 *
56
+	 * @param string          $class
57
+	 * @param string          $func
58
+	 * @param string          $line
59
+	 * @param \EE_Transaction $transaction
60
+	 * @param array           $info
61
+	 * @param bool            $display_request
62
+	 */
63
+	protected function log(
64
+		$class = '',
65
+		$func = '',
66
+		$line = '',
67
+		EE_Transaction $transaction,
68
+		$info = array(),
69
+		$display_request = false
70
+	) {
71
+		if (WP_DEBUG && false) {
72
+			if ($transaction instanceof EE_Transaction) {
73
+				// don't serialize objects
74
+				$info = EEH_Debug_Tools::strip_objects($info);
75
+				if ($transaction->ID()) {
76
+					$info['TXN_status'] = $transaction->status_ID();
77
+					$info['TXN_reg_steps'] = $transaction->reg_steps();
78
+					$index = 'EE_Transaction: ' . $transaction->ID();
79
+					EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index);
80
+				}
81
+			}
82
+		}
83
+	}
84 84
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 if ($transaction->ID()) {
76 76
                     $info['TXN_status'] = $transaction->status_ID();
77 77
                     $info['TXN_reg_steps'] = $transaction->reg_steps();
78
-                    $index = 'EE_Transaction: ' . $transaction->ID();
78
+                    $index = 'EE_Transaction: '.$transaction->ID();
79 79
                     EEH_Debug_Tools::log($class, $func, $line, $info, $display_request, $index);
80 80
                 }
81 81
             }
Please login to merge, or discard this patch.
core/admin/EE_Help_Tour_final_stop.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                        'That\'s it for the tour!  At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons.  There are help tours available on all Event Espresso Admin pages.  If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!',
58 58
                        'event_espresso'
59 59
                    ),
60
-                   '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">',
60
+                   '<a href="'.EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')).'">',
61 61
                    '</a>'
62 62
                )
63 63
                . '</p>';
Please login to merge, or discard this patch.
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -15,51 +15,51 @@
 block discarded – undo
15 15
 class EE_Help_Tour_final_stop extends EE_Help_Tour
16 16
 {
17 17
 
18
-    protected function _set_tour_properties()
19
-    {
20
-        $this->_label = esc_html__('Final Stop Tour', 'event_espresso');
21
-        $this->_slug = 'final-stop-tour';
22
-    }
18
+	protected function _set_tour_properties()
19
+	{
20
+		$this->_label = esc_html__('Final Stop Tour', 'event_espresso');
21
+		$this->_slug = 'final-stop-tour';
22
+	}
23 23
 
24 24
 
25
-    protected function _set_tour_stops()
26
-    {
27
-        $this->_stops = array(
28
-            10 => array(
29
-                'id'          => 'contextual-help-link',
30
-                'content'     => $this->_end(),
31
-                'button_text' => esc_html__('Quit', 'event_espresso'),
32
-                'options'     => array(
33
-                    'tipLocation'    => 'left',
34
-                    'tipAdjustmentY' => -20,
35
-                    'tipAdjustmentX' => 10,
36
-                ),
37
-            ),
38
-        );
39
-    }
25
+	protected function _set_tour_stops()
26
+	{
27
+		$this->_stops = array(
28
+			10 => array(
29
+				'id'          => 'contextual-help-link',
30
+				'content'     => $this->_end(),
31
+				'button_text' => esc_html__('Quit', 'event_espresso'),
32
+				'options'     => array(
33
+					'tipLocation'    => 'left',
34
+					'tipAdjustmentY' => -20,
35
+					'tipAdjustmentX' => 10,
36
+				),
37
+			),
38
+		);
39
+	}
40 40
 
41 41
 
42
-    /**
43
-     * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for
44
-     * the first time.
45
-     *
46
-     * @return string
47
-     */
48
-    protected function _end()
49
-    {
50
-        $query_args = array(
51
-            'action' => 'admin_option_settings',
52
-            'page'   => 'espresso_general_settings',
53
-        );
54
-        return '<p>'
55
-               . sprintf(
56
-                   esc_html__(
57
-                       'That\'s it for the tour!  At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons.  There are help tours available on all Event Espresso Admin pages.  If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!',
58
-                       'event_espresso'
59
-                   ),
60
-                   '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">',
61
-                   '</a>'
62
-               )
63
-               . '</p>';
64
-    }
42
+	/**
43
+	 * This is the default last stop for all tours that is displayed at the end of a tour OR when a tour is exited for
44
+	 * the first time.
45
+	 *
46
+	 * @return string
47
+	 */
48
+	protected function _end()
49
+	{
50
+		$query_args = array(
51
+			'action' => 'admin_option_settings',
52
+			'page'   => 'espresso_general_settings',
53
+		);
54
+		return '<p>'
55
+			   . sprintf(
56
+				   esc_html__(
57
+					   'That\'s it for the tour!  At any time you can restart a tour by clicking on this help dropdown and then clicking one of the Tour buttons.  There are help tours available on all Event Espresso Admin pages.  If you want to turn off help tours for all pages, %sgo here%s. All the best with your events!',
58
+					   'event_espresso'
59
+				   ),
60
+				   '<a href="' . EE_Admin_Page::add_query_args_and_nonce($query_args, admin_url('admin.php')) . '">',
61
+				   '</a>'
62
+			   )
63
+			   . '</p>';
64
+	}
65 65
 }
Please login to merge, or discard this patch.
admin_pages/support/Support_Admin_Page_Init.core.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
     {
21 21
         // define some help/support page related constants
22 22
         define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
-        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
-        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
-        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
-        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
23
+        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page='.EE_SUPPORT_PG_SLUG));
24
+        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES.'support/templates/');
25
+        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES.'support/');
26
+        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL.'support/assets/');
27 27
         parent::__construct();
28 28
     }
29 29
 
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -16,36 +16,36 @@
 block discarded – undo
16 16
 {
17 17
 
18 18
 
19
-    public function __construct()
20
-    {
21
-        // define some help/support page related constants
22
-        define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
-        define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
-        define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
-        define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
-        define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
27
-        parent::__construct();
28
-    }
19
+	public function __construct()
20
+	{
21
+		// define some help/support page related constants
22
+		define('EE_SUPPORT_PG_SLUG', 'espresso_support');
23
+		define('EE_SUPPORT_ADMIN_URL', admin_url('admin.php?page=' . EE_SUPPORT_PG_SLUG));
24
+		define('EE_SUPPORT_ADMIN_TEMPLATE_PATH', EE_ADMIN_PAGES . 'support/templates/');
25
+		define('EE_SUPPORT_ADMIN', EE_ADMIN_PAGES . 'support/');
26
+		define('EE_SUPPORT_ASSETS_URL', EE_ADMIN_PAGES_URL . 'support/assets/');
27
+		parent::__construct();
28
+	}
29 29
 
30
-    protected function _set_init_properties()
31
-    {
32
-        $this->label = esc_html__('Help & Support', 'event_espresso');
33
-    }
30
+	protected function _set_init_properties()
31
+	{
32
+		$this->label = esc_html__('Help & Support', 'event_espresso');
33
+	}
34 34
 
35
-    protected function _set_menu_map()
36
-    {
37
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
38
-            array(
39
-                'menu_group'              => 'extras',
40
-                'menu_order'              => 30,
41
-                'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
42
-                'parent_slug'             => 'espresso_events',
43
-                'menu_slug'               => EE_SUPPORT_PG_SLUG,
44
-                'menu_label'              => esc_html__('Help & Support', 'event_espresso'),
45
-                'capability'              => 'ee_read_ee',
46
-                'maintenance_mode_parent' => 'espresso_maintenance_settings',
47
-                'admin_init_page'         => $this,
48
-            )
49
-        );
50
-    }
35
+	protected function _set_menu_map()
36
+	{
37
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
38
+			array(
39
+				'menu_group'              => 'extras',
40
+				'menu_order'              => 30,
41
+				'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_AND_NETWORK_ADMIN,
42
+				'parent_slug'             => 'espresso_events',
43
+				'menu_slug'               => EE_SUPPORT_PG_SLUG,
44
+				'menu_label'              => esc_html__('Help & Support', 'event_espresso'),
45
+				'capability'              => 'ee_read_ee',
46
+				'maintenance_mode_parent' => 'espresso_maintenance_settings',
47
+				'admin_init_page'         => $this,
48
+			)
49
+		);
50
+	}
51 51
 }
Please login to merge, or discard this patch.
admin_pages/about/About_Admin_Page.core.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
         $this->_template_args['admin_page_subtitle'] = esc_html__(
170 170
             'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171 171
             'event_espresso'
172
-        ) . $settings_message;
173
-        $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
172
+        ).$settings_message;
173
+        $template = EE_ABOUT_TEMPLATE_PATH.'ee4-overview.template.php';
174 174
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175 175
             $template,
176 176
             $this->_template_args,
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
     protected function _get_started_steps()
184 184
     {
185
-        $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
185
+        $steps = '<h2>'.esc_html__('Getting Started', 'event_espresso').'</h2>';
186 186
         $step_one = '<p>'
187 187
                     . sprintf(
188 188
                         esc_html__(
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                         '</strong>',
194 194
                         '<a href="admin.php?page=espresso_general_settings">',
195 195
                         '</a>'
196
-                    ) . '</strong></p>';
196
+                    ).'</strong></p>';
197 197
         $step_two = '<p>'
198 198
                     . sprintf(
199 199
                         esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
                         '</strong>',
202 202
                         '<a href="admin.php?page=espresso_payment_settings">',
203 203
                         '</a>'
204
-                    ) . '</strong></p>';
204
+                    ).'</strong></p>';
205 205
         $step_three = '<p>'
206 206
                       . sprintf(
207 207
                           esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                           '</strong>',
210 210
                           '<a href="admin.php?page=espresso_events&action=create_new">',
211 211
                           '</a>'
212
-                      ) . '</strong></p>';
212
+                      ).'</strong></p>';
213 213
 
214 214
         // done?
215 215
         $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
         }
239 239
 
240 240
         // now let's put it together
241
-        $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
-        $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
241
+        $steps .= sprintf('%s'.$step_one.'%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
+        $steps .= sprintf('%s'.$step_two.'%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243 243
         $steps .= sprintf(
244
-            '%s' . $step_three . '%s',
244
+            '%s'.$step_three.'%s',
245 245
             $done_step_three ? '<strike>' : '',
246 246
             $done_step_three ? '</strike>' : ''
247 247
         );
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
             'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261 261
             'event_espresso'
262 262
         );
263
-        $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
263
+        $template = EE_ABOUT_TEMPLATE_PATH.'credits.template.php';
264 264
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265 265
             $template,
266 266
             $this->_template_args,
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             '<strong>',
287 287
             '</strong>'
288 288
         );
289
-        $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
289
+        $template = EE_ABOUT_TEMPLATE_PATH.'decafvpro.template.php';
290 290
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291 291
             $template,
292 292
             $this->_template_args,
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
             'At Event Espresso, customer satisfaction is our ultimate goal.',
303 303
             'event_espresso'
304 304
         );
305
-        $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
305
+        $template = EE_ABOUT_TEMPLATE_PATH.'reviews.template.php';
306 306
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307 307
             $template,
308 308
             $this->_template_args,
Please login to merge, or discard this patch.
Indentation   +274 added lines, -274 removed lines patch added patch discarded remove patch
@@ -17,128 +17,128 @@  discard block
 block discarded – undo
17 17
 {
18 18
 
19 19
 
20
-    protected function _init_page_props()
21
-    {
22
-        $this->page_slug = EE_ABOUT_PG_SLUG;
23
-        $this->page_label = esc_html__('About Event Espresso', 'event_espresso');
24
-        $this->_admin_base_url = EE_ABOUT_ADMIN_URL;
25
-        $this->_admin_base_path = EE_ABOUT_ADMIN;
26
-    }
27
-
28
-
29
-    protected function _ajax_hooks()
30
-    {
31
-        // todo: all hooks for ajax goes here.
32
-    }
33
-
34
-
35
-    protected function _define_page_props()
36
-    {
37
-        $this->_labels = array();
38
-        $this->_admin_page_title = $this->page_label;
39
-    }
40
-
41
-
42
-    protected function _set_page_routes()
43
-    {
44
-        $this->_page_routes = array(
45
-            'default' => array(
46
-                'func'       => '_overview',
47
-                'capability' => 'manage_options',
48
-            ),
49
-            // 'overview' => '_overview',
50
-            // 'func' => '_overview',
51
-            // 'capability' => 'ee_read_ee'
52
-            // ),
53
-            'credits' => array(
54
-                'func'       => '_credits',
55
-                'capability' => 'manage_options',
56
-            ),
57
-
58
-            'decafvpro' => array(
59
-                'func'       => '_decafvpro',
60
-                'capability' => 'manage_options',
61
-            ),
62
-            'reviews'   => array(
63
-                'func'       => '_reviews',
64
-                'capability' => 'manage_options',
65
-            ),
66
-        );
67
-    }
68
-
69
-
70
-    protected function _set_page_config()
71
-    {
72
-        $this->_page_config = array(
73
-            /*'default' => array(
20
+	protected function _init_page_props()
21
+	{
22
+		$this->page_slug = EE_ABOUT_PG_SLUG;
23
+		$this->page_label = esc_html__('About Event Espresso', 'event_espresso');
24
+		$this->_admin_base_url = EE_ABOUT_ADMIN_URL;
25
+		$this->_admin_base_path = EE_ABOUT_ADMIN;
26
+	}
27
+
28
+
29
+	protected function _ajax_hooks()
30
+	{
31
+		// todo: all hooks for ajax goes here.
32
+	}
33
+
34
+
35
+	protected function _define_page_props()
36
+	{
37
+		$this->_labels = array();
38
+		$this->_admin_page_title = $this->page_label;
39
+	}
40
+
41
+
42
+	protected function _set_page_routes()
43
+	{
44
+		$this->_page_routes = array(
45
+			'default' => array(
46
+				'func'       => '_overview',
47
+				'capability' => 'manage_options',
48
+			),
49
+			// 'overview' => '_overview',
50
+			// 'func' => '_overview',
51
+			// 'capability' => 'ee_read_ee'
52
+			// ),
53
+			'credits' => array(
54
+				'func'       => '_credits',
55
+				'capability' => 'manage_options',
56
+			),
57
+
58
+			'decafvpro' => array(
59
+				'func'       => '_decafvpro',
60
+				'capability' => 'manage_options',
61
+			),
62
+			'reviews'   => array(
63
+				'func'       => '_reviews',
64
+				'capability' => 'manage_options',
65
+			),
66
+		);
67
+	}
68
+
69
+
70
+	protected function _set_page_config()
71
+	{
72
+		$this->_page_config = array(
73
+			/*'default' => array(
74 74
                 'nav' => array(
75 75
                     'label' => esc_html__('What\'s New', 'event_espresso'),
76 76
                     'order' => 10),
77 77
                 'require_nonce' => FALSE
78 78
                 ),*/
79
-            // 'overview' => array(
80
-            'default' => array(
81
-                'nav'           => array(
82
-                    'label' => esc_html__('About', 'event_espresso'),
83
-                    'order' => 20,
84
-                ),
85
-                'require_nonce' => false,
86
-            ),
87
-            'credits' => array(
88
-                'nav'           => array(
89
-                    'label' => esc_html__('Credits', 'event_espresso'),
90
-                    'order' => 30,
91
-                ),
92
-                'require_nonce' => false,
93
-            ),
94
-
95
-            'decafvpro' => array(
96
-                'nav'           => array(
97
-                    'label' => esc_html__('Decaf vs Regular', 'event_espresso'),
98
-                    'order' => 40,
99
-                ),
100
-                'require_nonce' => false,
101
-            ),
102
-            'reviews'   => array(
103
-                'nav'           => array(
104
-                    'label' => esc_html__('Reviews', 'event_espresso'),
105
-                    'order' => 50,
106
-                ),
107
-                'require_nonce' => false,
108
-            ),
109
-        );
110
-    }
111
-
112
-
113
-    // none of the below group are currently used for Support pages
114
-    protected function _add_screen_options()
115
-    {
116
-    }
117
-
118
-    protected function _add_feature_pointers()
119
-    {
120
-    }
121
-
122
-    public function admin_init()
123
-    {
124
-    }
125
-
126
-    public function admin_notices()
127
-    {
128
-    }
129
-
130
-    public function admin_footer_scripts()
131
-    {
132
-    }
133
-
134
-    public function load_scripts_styles()
135
-    {
136
-    }
137
-
138
-
139
-    protected function _whats_new()
140
-    {
141
-        /*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE;
79
+			// 'overview' => array(
80
+			'default' => array(
81
+				'nav'           => array(
82
+					'label' => esc_html__('About', 'event_espresso'),
83
+					'order' => 20,
84
+				),
85
+				'require_nonce' => false,
86
+			),
87
+			'credits' => array(
88
+				'nav'           => array(
89
+					'label' => esc_html__('Credits', 'event_espresso'),
90
+					'order' => 30,
91
+				),
92
+				'require_nonce' => false,
93
+			),
94
+
95
+			'decafvpro' => array(
96
+				'nav'           => array(
97
+					'label' => esc_html__('Decaf vs Regular', 'event_espresso'),
98
+					'order' => 40,
99
+				),
100
+				'require_nonce' => false,
101
+			),
102
+			'reviews'   => array(
103
+				'nav'           => array(
104
+					'label' => esc_html__('Reviews', 'event_espresso'),
105
+					'order' => 50,
106
+				),
107
+				'require_nonce' => false,
108
+			),
109
+		);
110
+	}
111
+
112
+
113
+	// none of the below group are currently used for Support pages
114
+	protected function _add_screen_options()
115
+	{
116
+	}
117
+
118
+	protected function _add_feature_pointers()
119
+	{
120
+	}
121
+
122
+	public function admin_init()
123
+	{
124
+	}
125
+
126
+	public function admin_notices()
127
+	{
128
+	}
129
+
130
+	public function admin_footer_scripts()
131
+	{
132
+	}
133
+
134
+	public function load_scripts_styles()
135
+	{
136
+	}
137
+
138
+
139
+	protected function _whats_new()
140
+	{
141
+		/*$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance ? $this->_get_started_steps() : FALSE;
142 142
         $steps = $steps !== FALSE ? $steps : '';
143 143
         $this->_admin_page_title = sprintf( esc_html__('Welcome to Event Espresso %s', 'event_espresso'), EVENT_ESPRESSO_VERSION );
144 144
         $settings_message = $steps;
@@ -146,168 +146,168 @@  discard block
 block discarded – undo
146 146
         $template = EE_ABOUT_TEMPLATE_PATH . 'whats_new.template.php';
147 147
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
148 148
         $this->display_about_admin_page();*/
149
-    }
149
+	}
150 150
 
151 151
 
152
-    protected function _overview()
153
-    {
154
-        /*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso');
152
+	protected function _overview()
153
+	{
154
+		/*$this->_template_args['admin_page_title'] = esc_html__('About Event Espresso', 'event_espresso');
155 155
         $this->_template_args['admin_page_subtitle'] = esc_html__('Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.', 'event_espresso');
156 156
         $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
157 157
         $this->_template_args['about_admin_page_content'] = EEH_Template::display_template( $template, $this->_template_args, TRUE );
158 158
         $this->display_about_admin_page();*/
159 159
 
160
-        // Copied from _whats_new()
161
-        $steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance
162
-            ? $this->_get_started_steps() : false;
163
-        $steps = $steps !== false ? $steps : '';
164
-        $this->_admin_page_title = sprintf(
165
-            esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
166
-            EVENT_ESPRESSO_VERSION
167
-        );
168
-        $settings_message = $steps;
169
-        $this->_template_args['admin_page_subtitle'] = esc_html__(
170
-            'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171
-            'event_espresso'
172
-        ) . $settings_message;
173
-        $template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
174
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175
-            $template,
176
-            $this->_template_args,
177
-            true
178
-        );
179
-        $this->display_about_admin_page();
180
-    }
181
-
182
-
183
-    protected function _get_started_steps()
184
-    {
185
-        $steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
186
-        $step_one = '<p>'
187
-                    . sprintf(
188
-                        esc_html__(
189
-                            '%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.',
190
-                            'event_espresso'
191
-                        ),
192
-                        '<strong>',
193
-                        '</strong>',
194
-                        '<a href="admin.php?page=espresso_general_settings">',
195
-                        '</a>'
196
-                    ) . '</strong></p>';
197
-        $step_two = '<p>'
198
-                    . sprintf(
199
-                        esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
200
-                        '<strong>',
201
-                        '</strong>',
202
-                        '<a href="admin.php?page=espresso_payment_settings">',
203
-                        '</a>'
204
-                    ) . '</strong></p>';
205
-        $step_three = '<p>'
206
-                      . sprintf(
207
-                          esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
208
-                          '<strong>',
209
-                          '</strong>',
210
-                          '<a href="admin.php?page=espresso_events&action=create_new">',
211
-                          '</a>'
212
-                      ) . '</strong></p>';
213
-
214
-        // done?
215
-        $done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
216
-        $active_invoice_pm = EEM_Payment_Method::instance()->get_one_active(
217
-            EEM_Payment_Method::scope_cart,
218
-            array(array('PMD_type' => 'Invoice'))
219
-        );
220
-        $active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
221
-        // done step two if a non-invoice paymetn method is active; or there is more than one PM active, or
222
-        // if only the invoice is active but it's clearly been updated
223
-        $done_step_two = $active_pms_count > 1 ||
224
-                         ($active_pms_count === 1 && ! $active_invoice_pm) ||
225
-                         ($active_invoice_pm instanceof EE_Payment_Method && (
226
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') ||
227
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') ||
228
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') ||
229
-                                 $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') ||
230
-                                 $active_invoice_pm->get_extra_meta('page_extra_info', true, '')
231
-                             )
232
-                         );
233
-        $done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false;
234
-
235
-        // if ALL steps are done, let's just return FALSE so we don't display anything
236
-        if ($done_step_one && $done_step_two && $done_step_three) {
237
-            return false;
238
-        }
239
-
240
-        // now let's put it together
241
-        $steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
-        $steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243
-        $steps .= sprintf(
244
-            '%s' . $step_three . '%s',
245
-            $done_step_three ? '<strike>' : '',
246
-            $done_step_three ? '</strike>' : ''
247
-        );
248
-
249
-        return $steps;
250
-    }
251
-
252
-
253
-    protected function _credits()
254
-    {
255
-        $this->_template_args['admin_page_title'] = sprintf(
256
-            esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
257
-            EVENT_ESPRESSO_VERSION
258
-        );
259
-        $this->_template_args['admin_page_subtitle'] = esc_html__(
260
-            'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261
-            'event_espresso'
262
-        );
263
-        $template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
264
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265
-            $template,
266
-            $this->_template_args,
267
-            true
268
-        );
269
-        $this->display_about_admin_page();
270
-    }
271
-
272
-
273
-    protected function _decafvpro()
274
-    {
275
-        $this->_template_args['admin_page_title'] = sprintf(
276
-            esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
277
-            EVENT_ESPRESSO_VERSION
278
-        );
279
-        $this->_template_args['admin_page_subtitle'] = sprintf(
280
-            esc_html__(
281
-                'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s',
282
-                'event_espresso'
283
-            ),
284
-            '<em>',
285
-            '</em>',
286
-            '<strong>',
287
-            '</strong>'
288
-        );
289
-        $template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
290
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291
-            $template,
292
-            $this->_template_args,
293
-            true
294
-        );
295
-        $this->display_about_admin_page();
296
-    }
297
-
298
-    protected function _reviews()
299
-    {
300
-        $this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso');
301
-        $this->_template_args['admin_page_subtitle'] = esc_html__(
302
-            'At Event Espresso, customer satisfaction is our ultimate goal.',
303
-            'event_espresso'
304
-        );
305
-        $template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
306
-        $this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307
-            $template,
308
-            $this->_template_args,
309
-            true
310
-        );
311
-        $this->display_about_admin_page();
312
-    }
160
+		// Copied from _whats_new()
161
+		$steps = EE_Maintenance_Mode::instance()->level() != EE_Maintenance_Mode::level_2_complete_maintenance
162
+			? $this->_get_started_steps() : false;
163
+		$steps = $steps !== false ? $steps : '';
164
+		$this->_admin_page_title = sprintf(
165
+			esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
166
+			EVENT_ESPRESSO_VERSION
167
+		);
168
+		$settings_message = $steps;
169
+		$this->_template_args['admin_page_subtitle'] = esc_html__(
170
+			'Thank you for choosing Event Espresso, the most powerful, and free, Event Management plugin for WordPress.',
171
+			'event_espresso'
172
+		) . $settings_message;
173
+		$template = EE_ABOUT_TEMPLATE_PATH . 'ee4-overview.template.php';
174
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
175
+			$template,
176
+			$this->_template_args,
177
+			true
178
+		);
179
+		$this->display_about_admin_page();
180
+	}
181
+
182
+
183
+	protected function _get_started_steps()
184
+	{
185
+		$steps = '<h2>' . esc_html__('Getting Started', 'event_espresso') . '</h2>';
186
+		$step_one = '<p>'
187
+					. sprintf(
188
+						esc_html__(
189
+							'%sStep 1%s: Visit your %sOrganization Settings%s and add/update your details.',
190
+							'event_espresso'
191
+						),
192
+						'<strong>',
193
+						'</strong>',
194
+						'<a href="admin.php?page=espresso_general_settings">',
195
+						'</a>'
196
+					) . '</strong></p>';
197
+		$step_two = '<p>'
198
+					. sprintf(
199
+						esc_html__('%sStep 2%s: Setup your %sPayment Methods%s.', 'event_espresso'),
200
+						'<strong>',
201
+						'</strong>',
202
+						'<a href="admin.php?page=espresso_payment_settings">',
203
+						'</a>'
204
+					) . '</strong></p>';
205
+		$step_three = '<p>'
206
+					  . sprintf(
207
+						  esc_html__('%sStep 3%s: Create your %sFirst Event%s.', 'event_espresso'),
208
+						  '<strong>',
209
+						  '</strong>',
210
+						  '<a href="admin.php?page=espresso_events&action=create_new">',
211
+						  '</a>'
212
+					  ) . '</strong></p>';
213
+
214
+		// done?
215
+		$done_step_one = EE_Registry::instance()->CFG->organization->address_1 == '123 Onna Road' ? false : true;
216
+		$active_invoice_pm = EEM_Payment_Method::instance()->get_one_active(
217
+			EEM_Payment_Method::scope_cart,
218
+			array(array('PMD_type' => 'Invoice'))
219
+		);
220
+		$active_pms_count = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
221
+		// done step two if a non-invoice paymetn method is active; or there is more than one PM active, or
222
+		// if only the invoice is active but it's clearly been updated
223
+		$done_step_two = $active_pms_count > 1 ||
224
+						 ($active_pms_count === 1 && ! $active_invoice_pm) ||
225
+						 ($active_invoice_pm instanceof EE_Payment_Method && (
226
+								 $active_invoice_pm->get_extra_meta('pdf_payee_name', true, '') ||
227
+								 $active_invoice_pm->get_extra_meta('pdf_payee_email', true, '') ||
228
+								 $active_invoice_pm->get_extra_meta('pdf_payee_tax_number', true, '') ||
229
+								 $active_invoice_pm->get_extra_meta('pdf_payee_address', true, '') ||
230
+								 $active_invoice_pm->get_extra_meta('page_extra_info', true, '')
231
+							 )
232
+						 );
233
+		$done_step_three = EE_Registry::instance()->load_model('Event')->count() > 0 ? true : false;
234
+
235
+		// if ALL steps are done, let's just return FALSE so we don't display anything
236
+		if ($done_step_one && $done_step_two && $done_step_three) {
237
+			return false;
238
+		}
239
+
240
+		// now let's put it together
241
+		$steps .= sprintf('%s' . $step_one . '%s', $done_step_one ? '<strike>' : '', $done_step_one ? '</strike>' : '');
242
+		$steps .= sprintf('%s' . $step_two . '%s', $done_step_two ? '<strike>' : '', $done_step_two ? '</strike>' : '');
243
+		$steps .= sprintf(
244
+			'%s' . $step_three . '%s',
245
+			$done_step_three ? '<strike>' : '',
246
+			$done_step_three ? '</strike>' : ''
247
+		);
248
+
249
+		return $steps;
250
+	}
251
+
252
+
253
+	protected function _credits()
254
+	{
255
+		$this->_template_args['admin_page_title'] = sprintf(
256
+			esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
257
+			EVENT_ESPRESSO_VERSION
258
+		);
259
+		$this->_template_args['admin_page_subtitle'] = esc_html__(
260
+			'Thank you for choosing Event Espresso Decaf, the most powerful, and free, Event Management plugin for WordPress.',
261
+			'event_espresso'
262
+		);
263
+		$template = EE_ABOUT_TEMPLATE_PATH . 'credits.template.php';
264
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
265
+			$template,
266
+			$this->_template_args,
267
+			true
268
+		);
269
+		$this->display_about_admin_page();
270
+	}
271
+
272
+
273
+	protected function _decafvpro()
274
+	{
275
+		$this->_template_args['admin_page_title'] = sprintf(
276
+			esc_html__('Welcome to Event Espresso %s', 'event_espresso'),
277
+			EVENT_ESPRESSO_VERSION
278
+		);
279
+		$this->_template_args['admin_page_subtitle'] = sprintf(
280
+			esc_html__(
281
+				'Event Espresso lets you focus on doing %swhat you love%s — %sorganizing your events%s',
282
+				'event_espresso'
283
+			),
284
+			'<em>',
285
+			'</em>',
286
+			'<strong>',
287
+			'</strong>'
288
+		);
289
+		$template = EE_ABOUT_TEMPLATE_PATH . 'decafvpro.template.php';
290
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
291
+			$template,
292
+			$this->_template_args,
293
+			true
294
+		);
295
+		$this->display_about_admin_page();
296
+	}
297
+
298
+	protected function _reviews()
299
+	{
300
+		$this->_template_args['admin_page_title'] = esc_html__('Rave Reviews About Event Espresso 4', 'event_espresso');
301
+		$this->_template_args['admin_page_subtitle'] = esc_html__(
302
+			'At Event Espresso, customer satisfaction is our ultimate goal.',
303
+			'event_espresso'
304
+		);
305
+		$template = EE_ABOUT_TEMPLATE_PATH . 'reviews.template.php';
306
+		$this->_template_args['about_admin_page_content'] = EEH_Template::display_template(
307
+			$template,
308
+			$this->_template_args,
309
+			true
310
+		);
311
+		$this->display_about_admin_page();
312
+	}
313 313
 }
Please login to merge, or discard this patch.
admin_pages/messages/qtips/EE_Message_List_Table_Tips.lib.php 2 patches
Indentation   +96 added lines, -96 removed lines patch added patch discarded remove patch
@@ -15,105 +15,105 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    protected function _set_tips_array()
19
-    {
20
-        $this->_qtipsa = array(
21
-            0 => array(
22
-                'content_id' => 'message_status-' . EEM_Message::status_sent,
23
-                'target'     => '.msg-status-' . EEM_Message::status_sent,
24
-                'content'    => $this->_message_status_legend(EEM_Message::status_sent),
25
-                'options'    => array(
26
-                    'position' => array(
27
-                        'target' => 'mouse',
28
-                    ),
29
-                ),
30
-            ),
31
-            1 => array(
32
-                'content_id' => 'message_status-' . EEM_Message::status_idle,
33
-                'target'     => '.msg-status-' . EEM_Message::status_idle,
34
-                'content'    => $this->_message_status_legend(EEM_Message::status_idle),
35
-                'options'    => array(
36
-                    'position' => array(
37
-                        'target' => 'mouse',
38
-                    ),
39
-                ),
40
-            ),
41
-            2 => array(
42
-                'content_id' => 'message_status-' . EEM_Message::status_failed,
43
-                'target'     => '.msg-status-' . EEM_Message::status_failed,
44
-                'content'    => $this->_message_status_legend(EEM_Message::status_failed),
45
-                'options'    => array(
46
-                    'position' => array(
47
-                        'target' => 'mouse',
48
-                    ),
49
-                ),
50
-            ),
51
-            3 => array(
52
-                'content_id' => 'message_status-' . EEM_Message::status_resend,
53
-                'target'     => '.msg-status-' . EEM_Message::status_resend,
54
-                'content'    => $this->_message_status_legend(EEM_Message::status_resend),
55
-                'options'    => array(
56
-                    'position' => array(
57
-                        'target' => 'mouse',
58
-                    ),
59
-                ),
60
-            ),
61
-            4 => array(
62
-                'content_id' => 'message_status-' . EEM_Message::status_incomplete,
63
-                'target'     => '.msg-status-' . EEM_Message::status_incomplete,
64
-                'content'    => $this->_message_status_legend(EEM_Message::status_incomplete),
65
-                'options'    => array(
66
-                    'position' => array(
67
-                        'target' => 'mouse',
68
-                    ),
69
-                ),
70
-            ),
71
-            5 => array(
72
-                'content_id' => 'message_status-' . EEM_Message::status_retry,
73
-                'target'     => '.msg-status-' . EEM_Message::status_retry,
74
-                'content'    => $this->_message_status_legend(EEM_Message::status_retry),
75
-                'options'    => array(
76
-                    'position' => array(
77
-                        'target' => 'mouse',
78
-                    ),
79
-                ),
80
-            ),
81
-            6 => array(
82
-                'content_id' => 'message_status-' . EEM_Message::status_debug_only,
83
-                'target'     => '.msg-status-' . EEM_Message::status_debug_only,
84
-                'content'    => $this->_message_status_legend(EEM_Message::status_debug_only),
85
-                'options'    => array(
86
-                    'position' => array(
87
-                        'target' => 'mouse',
88
-                    ),
89
-                ),
90
-            ),
91
-        );
92
-    }
18
+	protected function _set_tips_array()
19
+	{
20
+		$this->_qtipsa = array(
21
+			0 => array(
22
+				'content_id' => 'message_status-' . EEM_Message::status_sent,
23
+				'target'     => '.msg-status-' . EEM_Message::status_sent,
24
+				'content'    => $this->_message_status_legend(EEM_Message::status_sent),
25
+				'options'    => array(
26
+					'position' => array(
27
+						'target' => 'mouse',
28
+					),
29
+				),
30
+			),
31
+			1 => array(
32
+				'content_id' => 'message_status-' . EEM_Message::status_idle,
33
+				'target'     => '.msg-status-' . EEM_Message::status_idle,
34
+				'content'    => $this->_message_status_legend(EEM_Message::status_idle),
35
+				'options'    => array(
36
+					'position' => array(
37
+						'target' => 'mouse',
38
+					),
39
+				),
40
+			),
41
+			2 => array(
42
+				'content_id' => 'message_status-' . EEM_Message::status_failed,
43
+				'target'     => '.msg-status-' . EEM_Message::status_failed,
44
+				'content'    => $this->_message_status_legend(EEM_Message::status_failed),
45
+				'options'    => array(
46
+					'position' => array(
47
+						'target' => 'mouse',
48
+					),
49
+				),
50
+			),
51
+			3 => array(
52
+				'content_id' => 'message_status-' . EEM_Message::status_resend,
53
+				'target'     => '.msg-status-' . EEM_Message::status_resend,
54
+				'content'    => $this->_message_status_legend(EEM_Message::status_resend),
55
+				'options'    => array(
56
+					'position' => array(
57
+						'target' => 'mouse',
58
+					),
59
+				),
60
+			),
61
+			4 => array(
62
+				'content_id' => 'message_status-' . EEM_Message::status_incomplete,
63
+				'target'     => '.msg-status-' . EEM_Message::status_incomplete,
64
+				'content'    => $this->_message_status_legend(EEM_Message::status_incomplete),
65
+				'options'    => array(
66
+					'position' => array(
67
+						'target' => 'mouse',
68
+					),
69
+				),
70
+			),
71
+			5 => array(
72
+				'content_id' => 'message_status-' . EEM_Message::status_retry,
73
+				'target'     => '.msg-status-' . EEM_Message::status_retry,
74
+				'content'    => $this->_message_status_legend(EEM_Message::status_retry),
75
+				'options'    => array(
76
+					'position' => array(
77
+						'target' => 'mouse',
78
+					),
79
+				),
80
+			),
81
+			6 => array(
82
+				'content_id' => 'message_status-' . EEM_Message::status_debug_only,
83
+				'target'     => '.msg-status-' . EEM_Message::status_debug_only,
84
+				'content'    => $this->_message_status_legend(EEM_Message::status_debug_only),
85
+				'options'    => array(
86
+					'position' => array(
87
+						'target' => 'mouse',
88
+					),
89
+				),
90
+			),
91
+		);
92
+	}
93 93
 
94 94
 
95
-    /**
96
-     * output the relevant ee-status-legend with the designated status highlighted.
97
-     *
98
-     * @param  EEM_Message constant $status What status is set (by class)
99
-     * @return string         The status legend with the related status highlighted
100
-     */
101
-    private function _message_status_legend($status)
102
-    {
95
+	/**
96
+	 * output the relevant ee-status-legend with the designated status highlighted.
97
+	 *
98
+	 * @param  EEM_Message constant $status What status is set (by class)
99
+	 * @return string         The status legend with the related status highlighted
100
+	 */
101
+	private function _message_status_legend($status)
102
+	{
103 103
 
104
-        $status_array = array(
105
-            'sent_status'       => EEM_Message::status_sent,
106
-            'idle_status'       => EEM_Message::status_idle,
107
-            'failed_status'     => EEM_Message::status_failed,
108
-            'resend_status'     => EEM_Message::status_resend,
109
-            'incomplete_status' => EEM_Message::status_incomplete,
110
-            'retry_status'      => EEM_Message::status_retry,
111
-        );
104
+		$status_array = array(
105
+			'sent_status'       => EEM_Message::status_sent,
106
+			'idle_status'       => EEM_Message::status_idle,
107
+			'failed_status'     => EEM_Message::status_failed,
108
+			'resend_status'     => EEM_Message::status_resend,
109
+			'incomplete_status' => EEM_Message::status_incomplete,
110
+			'retry_status'      => EEM_Message::status_retry,
111
+		);
112 112
 
113
-        if (defined('WP_DEBUG') && WP_DEBUG) {
114
-            $status_array['debug_only_status'] = EEM_Message::status_debug_only;
115
-        }
113
+		if (defined('WP_DEBUG') && WP_DEBUG) {
114
+			$status_array['debug_only_status'] = EEM_Message::status_debug_only;
115
+		}
116 116
 
117
-        return EEH_Template::status_legend($status_array, $status);
118
-    }
117
+		return EEH_Template::status_legend($status_array, $status);
118
+	}
119 119
 }
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->_qtipsa = array(
21 21
             0 => array(
22
-                'content_id' => 'message_status-' . EEM_Message::status_sent,
23
-                'target'     => '.msg-status-' . EEM_Message::status_sent,
22
+                'content_id' => 'message_status-'.EEM_Message::status_sent,
23
+                'target'     => '.msg-status-'.EEM_Message::status_sent,
24 24
                 'content'    => $this->_message_status_legend(EEM_Message::status_sent),
25 25
                 'options'    => array(
26 26
                     'position' => array(
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
                 ),
30 30
             ),
31 31
             1 => array(
32
-                'content_id' => 'message_status-' . EEM_Message::status_idle,
33
-                'target'     => '.msg-status-' . EEM_Message::status_idle,
32
+                'content_id' => 'message_status-'.EEM_Message::status_idle,
33
+                'target'     => '.msg-status-'.EEM_Message::status_idle,
34 34
                 'content'    => $this->_message_status_legend(EEM_Message::status_idle),
35 35
                 'options'    => array(
36 36
                     'position' => array(
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
                 ),
40 40
             ),
41 41
             2 => array(
42
-                'content_id' => 'message_status-' . EEM_Message::status_failed,
43
-                'target'     => '.msg-status-' . EEM_Message::status_failed,
42
+                'content_id' => 'message_status-'.EEM_Message::status_failed,
43
+                'target'     => '.msg-status-'.EEM_Message::status_failed,
44 44
                 'content'    => $this->_message_status_legend(EEM_Message::status_failed),
45 45
                 'options'    => array(
46 46
                     'position' => array(
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
                 ),
50 50
             ),
51 51
             3 => array(
52
-                'content_id' => 'message_status-' . EEM_Message::status_resend,
53
-                'target'     => '.msg-status-' . EEM_Message::status_resend,
52
+                'content_id' => 'message_status-'.EEM_Message::status_resend,
53
+                'target'     => '.msg-status-'.EEM_Message::status_resend,
54 54
                 'content'    => $this->_message_status_legend(EEM_Message::status_resend),
55 55
                 'options'    => array(
56 56
                     'position' => array(
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
                 ),
60 60
             ),
61 61
             4 => array(
62
-                'content_id' => 'message_status-' . EEM_Message::status_incomplete,
63
-                'target'     => '.msg-status-' . EEM_Message::status_incomplete,
62
+                'content_id' => 'message_status-'.EEM_Message::status_incomplete,
63
+                'target'     => '.msg-status-'.EEM_Message::status_incomplete,
64 64
                 'content'    => $this->_message_status_legend(EEM_Message::status_incomplete),
65 65
                 'options'    => array(
66 66
                     'position' => array(
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
                 ),
70 70
             ),
71 71
             5 => array(
72
-                'content_id' => 'message_status-' . EEM_Message::status_retry,
73
-                'target'     => '.msg-status-' . EEM_Message::status_retry,
72
+                'content_id' => 'message_status-'.EEM_Message::status_retry,
73
+                'target'     => '.msg-status-'.EEM_Message::status_retry,
74 74
                 'content'    => $this->_message_status_legend(EEM_Message::status_retry),
75 75
                 'options'    => array(
76 76
                     'position' => array(
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
                 ),
80 80
             ),
81 81
             6 => array(
82
-                'content_id' => 'message_status-' . EEM_Message::status_debug_only,
83
-                'target'     => '.msg-status-' . EEM_Message::status_debug_only,
82
+                'content_id' => 'message_status-'.EEM_Message::status_debug_only,
83
+                'target'     => '.msg-status-'.EEM_Message::status_debug_only,
84 84
                 'content'    => $this->_message_status_legend(EEM_Message::status_debug_only),
85 85
                 'options'    => array(
86 86
                     'position' => array(
Please login to merge, or discard this patch.
maintenance/templates/ee_upgrade_addons_before_migrating.template.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 <h1><?php esc_html_e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso"); ?></h1>
5 5
 <p>
6 6
     <?php printf(
7
-        esc_html__(
8
-            "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9
-            "event_espresso"
10
-        ),
11
-        "<a href='" . admin_url('/plugins.php') . "'>",
12
-        "</a>"
13
-    ); ?></p>
7
+		esc_html__(
8
+			"Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9
+			"event_espresso"
10
+		),
11
+		"<a href='" . admin_url('/plugins.php') . "'>",
12
+		"</a>"
13
+	); ?></p>
14 14
 <p>
15 15
     <?php esc_html_e(
16
-        "You can also deactivate the addons, but all of their data will be lost when your database is migrated",
17
-        "event_espresso"
18
-    ); ?></p>
19 16
\ No newline at end of file
17
+		"You can also deactivate the addons, but all of their data will be lost when your database is migrated",
18
+		"event_espresso"
19
+	); ?></p>
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
             "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9 9
             "event_espresso"
10 10
         ),
11
-        "<a href='" . admin_url('/plugins.php') . "'>",
11
+        "<a href='".admin_url('/plugins.php')."'>",
12 12
         "</a>"
13 13
     ); ?></p>
14 14
 <p>
Please login to merge, or discard this patch.