Completed
Branch BUG-10381-asset-loading (7390a7)
by
unknown
39:00 queued 27:53
created
libraries/form_sections/strategies/layout/EE_Two_Column_Layout.strategy.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-class EE_Two_Column_Layout extends EE_Form_Section_Layout_Base{
3
+class EE_Two_Column_Layout extends EE_Form_Section_Layout_Base {
4 4
 
5 5
 	/**
6 6
 	 * Should be used to start teh form section (Eg a table tag, or a div tag, etc.)
7 7
 	 * @param array $additional_args
8 8
 	 * @return string
9 9
 	 */
10
-	public function layout_form_begin( $additional_args = array() ) {
11
-		return EEH_HTML::table( '', $this->_form_section->html_id(), $this->_form_section->html_class(), $this->_form_section->html_style()  ) . EEH_HTML::tbody();
10
+	public function layout_form_begin($additional_args = array()) {
11
+		return EEH_HTML::table('', $this->_form_section->html_id(), $this->_form_section->html_class(), $this->_form_section->html_style()).EEH_HTML::tbody();
12 12
 	}
13 13
 
14 14
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 	 * @param array $additional_args
19 19
 	 * @return string
20 20
 	 */
21
-	public function layout_form_end( $additional_args = array() ) {
22
-		return EEH_HTML::tbodyx() . EEH_HTML::tablex( $this->_form_section->html_id() );
21
+	public function layout_form_end($additional_args = array()) {
22
+		return EEH_HTML::tbodyx().EEH_HTML::tablex($this->_form_section->html_id());
23 23
 	}
24 24
 
25 25
 
@@ -29,17 +29,17 @@  discard block
 block discarded – undo
29 29
 	 * @param EE_Form_Input_Base $input
30 30
 	 * @return string
31 31
 	 */
32
-	public function layout_input( $input ) {
32
+	public function layout_input($input) {
33 33
 		$html = '';
34
-		if ( $input instanceof EE_Hidden_Input ) {
34
+		if ($input instanceof EE_Hidden_Input) {
35 35
 			$html .= $input->get_html_for_input();
36 36
 		} else {
37 37
 			$html_for_input = $input->get_html_for_input();
38
-			$html_for_input .= $input->get_html_for_errors() != '' ? EEH_HTML::nl() . $input->get_html_for_errors() : '';
39
-			$html_for_input .= $input->get_html_for_help() != '' ? EEH_HTML::nl() . $input->get_html_for_help() : '';
38
+			$html_for_input .= $input->get_html_for_errors() != '' ? EEH_HTML::nl().$input->get_html_for_errors() : '';
39
+			$html_for_input .= $input->get_html_for_help() != '' ? EEH_HTML::nl().$input->get_html_for_help() : '';
40 40
 			$html .= EEH_HTML::tr(
41
-				EEH_HTML::th(  $input->get_html_for_label()  ) .
42
-				EEH_HTML::td( $html_for_input )
41
+				EEH_HTML::th($input->get_html_for_label()).
42
+				EEH_HTML::td($html_for_input)
43 43
 			);
44 44
 		}
45 45
 		return $html;
@@ -52,13 +52,13 @@  discard block
 block discarded – undo
52 52
 	 * @param EE_Form_Section_Proper $form_section
53 53
 	 * @return string
54 54
 	 */
55
-	public function layout_subsection( $form_section ){
55
+	public function layout_subsection($form_section) {
56 56
 		$html = '';
57
-		if ( $form_section instanceof EE_Form_Section_HTML ) {
57
+		if ($form_section instanceof EE_Form_Section_HTML) {
58 58
 			$html .= $form_section->get_html();
59 59
 		} else {
60 60
 			$html .= EEH_HTML::tr(
61
-				EEH_HTML::td( $form_section->get_html(), '', '', '', 'colspan="2"' )
61
+				EEH_HTML::td($form_section->get_html(), '', '', '', 'colspan="2"')
62 62
 			);
63 63
 		}
64 64
 		return $html;
Please login to merge, or discard this patch.
form_sections/strategies/layout/EE_Div_Per_Section_Layout.strategy.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -10,14 +10,14 @@  discard block
 block discarded – undo
10 10
  * @since 				4.6.0
11 11
  *
12 12
  */
13
-class EE_Div_Per_Section_Layout extends EE_Form_Section_Layout_Base{
13
+class EE_Div_Per_Section_Layout extends EE_Form_Section_Layout_Base {
14 14
 
15 15
 	/**
16 16
 	 * opening div tag for a form
17 17
 	 * @return string
18 18
 	 */
19 19
 	public function layout_form_begin() {
20
-		return EEH_HTML::div( '', $this->_form_section->html_id(), $this->_form_section->html_class(), $this->_form_section->html_style() );
20
+		return EEH_HTML::div('', $this->_form_section->html_id(), $this->_form_section->html_class(), $this->_form_section->html_style());
21 21
 	}
22 22
 
23 23
 
@@ -26,38 +26,38 @@  discard block
 block discarded – undo
26 26
 	 * @param EE_Form_Input_Base $input
27 27
 	 * @return string
28 28
 	 */
29
-	public function layout_input( $input ) {
29
+	public function layout_input($input) {
30 30
 		$html = '';
31
-		if ( $input instanceof EE_Hidden_Input  ) {
32
-			$html .= EEH_HTML::nl() . $input->get_html_for_input();
33
-		} else if ( $input instanceof EE_Submit_Input  ) {
34
-			$html .= EEH_HTML::div( $input->get_html_for_input(), $input->html_id() . '-submit-dv', $input->html_class() . '-submit-dv' );
35
-		} else if ( $input instanceof EE_Select_Input  ) {
31
+		if ($input instanceof EE_Hidden_Input) {
32
+			$html .= EEH_HTML::nl().$input->get_html_for_input();
33
+		} else if ($input instanceof EE_Submit_Input) {
34
+			$html .= EEH_HTML::div($input->get_html_for_input(), $input->html_id().'-submit-dv', $input->html_class().'-submit-dv');
35
+		} else if ($input instanceof EE_Select_Input) {
36 36
 			$html .= EEH_HTML::div(
37
-				EEH_HTML::nl(1) . $input->get_html_for_label() .
38
-				EEH_HTML::nl() . $input->get_html_for_errors() .
39
-				EEH_HTML::nl() . $input->get_html_for_input() .
40
-				EEH_HTML::nl() . $input->get_html_for_help(),
41
-				$input->html_id() . '-input-dv',
42
-				$input->html_class() . '-input-dv'
37
+				EEH_HTML::nl(1).$input->get_html_for_label().
38
+				EEH_HTML::nl().$input->get_html_for_errors().
39
+				EEH_HTML::nl().$input->get_html_for_input().
40
+				EEH_HTML::nl().$input->get_html_for_help(),
41
+				$input->html_id().'-input-dv',
42
+				$input->html_class().'-input-dv'
43 43
 			);
44
-		} else if ( $input instanceof EE_Form_Input_With_Options_Base  ) {
44
+		} else if ($input instanceof EE_Form_Input_With_Options_Base) {
45 45
 			$html .= EEH_HTML::div(
46
-				EEH_HTML::nl() . $this->_display_label_for_option_type_question( $input ) .
47
-				EEH_HTML::nl() . $input->get_html_for_errors() .
48
-				EEH_HTML::nl() . $input->get_html_for_input() .
49
-				EEH_HTML::nl() . $input->get_html_for_help(),
50
-				$input->html_id() . '-input-dv',
51
-				$input->html_class() . '-input-dv'
46
+				EEH_HTML::nl().$this->_display_label_for_option_type_question($input).
47
+				EEH_HTML::nl().$input->get_html_for_errors().
48
+				EEH_HTML::nl().$input->get_html_for_input().
49
+				EEH_HTML::nl().$input->get_html_for_help(),
50
+				$input->html_id().'-input-dv',
51
+				$input->html_class().'-input-dv'
52 52
 			);
53 53
 		} else {
54 54
 			$html .= EEH_HTML::div(
55
-				EEH_HTML::nl(1) . $input->get_html_for_label() .
56
-				EEH_HTML::nl() . $input->get_html_for_errors() .
57
-				EEH_HTML::nl() . $input->get_html_for_input() .
58
-				EEH_HTML::nl() . $input->get_html_for_help(),
59
-				$input->html_id() . '-input-dv',
60
-				$input->html_class() . '-input-dv'
55
+				EEH_HTML::nl(1).$input->get_html_for_label().
56
+				EEH_HTML::nl().$input->get_html_for_errors().
57
+				EEH_HTML::nl().$input->get_html_for_input().
58
+				EEH_HTML::nl().$input->get_html_for_help(),
59
+				$input->html_id().'-input-dv',
60
+				$input->html_class().'-input-dv'
61 61
 			);
62 62
 		}
63 63
 		return $html;
@@ -74,14 +74,14 @@  discard block
 block discarded – undo
74 74
 	 * @param EE_Form_Input_With_Options_Base $input
75 75
 	 * @return string
76 76
 	 */
77
-	protected function _display_label_for_option_type_question( EE_Form_Input_With_Options_Base $input ){
78
-		if ( $input->display_html_label_text() != '' ) {
79
-			$class = $input->required() ? 'ee-required-label ' . $input->html_label_class() : $input->html_label_class();
80
-			$label_text = $input->required() ? $input->html_label_text() . '<span class="ee-asterisk">*</span>' : $input->html_label_text();
81
-			$html = '<div id="' . $input->html_label_id() . '"';
82
-			$html .= ' class="' . $class . '"';
83
-			$html .= ' style="' . $input->html_label_style() . '">';
84
-			$html .= $label_text . '</div>';
77
+	protected function _display_label_for_option_type_question(EE_Form_Input_With_Options_Base $input) {
78
+		if ($input->display_html_label_text() != '') {
79
+			$class = $input->required() ? 'ee-required-label '.$input->html_label_class() : $input->html_label_class();
80
+			$label_text = $input->required() ? $input->html_label_text().'<span class="ee-asterisk">*</span>' : $input->html_label_text();
81
+			$html = '<div id="'.$input->html_label_id().'"';
82
+			$html .= ' class="'.$class.'"';
83
+			$html .= ' style="'.$input->html_label_style().'">';
84
+			$html .= $label_text.'</div>';
85 85
 			return $html;
86 86
 		} else {
87 87
 			return '';
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
 	 * @param EE_Form_Section_Proper $form_section
96 96
 	 * @return string
97 97
 	 */
98
-	public function layout_subsection( $form_section ){
98
+	public function layout_subsection($form_section) {
99 99
 //		d( $form_section );
100
-		return EEH_HTML::nl(1) . $form_section->get_html() . EEH_HTML::nl(-1);
100
+		return EEH_HTML::nl(1).$form_section->get_html().EEH_HTML::nl(-1);
101 101
 	}
102 102
 
103 103
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 * closing div tag for a form
106 106
 	 * @return string
107 107
 	 */
108
-	public function layout_form_end(){
109
-		return EEH_HTML::divx( $this->_form_section->html_id(), $this->_form_section->html_class() );
108
+	public function layout_form_end() {
109
+		return EEH_HTML::divx($this->_form_section->html_id(), $this->_form_section->html_class());
110 110
 	}
111 111
 }
112 112
\ No newline at end of file
Please login to merge, or discard this patch.
core/middleware/EE_Detect_Login.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
3
-	exit( 'No direct script access allowed' );
2
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
3
+	exit('No direct script access allowed');
4 4
 }
5 5
 
6 6
 
@@ -26,20 +26,20 @@  discard block
 block discarded – undo
26 26
 	 * @param    EE_Response $response
27 27
 	 * @return    EE_Response
28 28
 	 */
29
-	public function handle_request( EE_Request $request, EE_Response $response ) {
29
+	public function handle_request(EE_Request $request, EE_Response $response) {
30 30
 		$this->_request = $request;
31 31
 		$this->_response = $response;
32 32
 		global $pagenow;
33 33
 		if (
34 34
 			in_array(
35 35
 				$pagenow,
36
-				array( 'wp-login.php', 'wp-register.php' )
36
+				array('wp-login.php', 'wp-register.php')
37 37
 			)
38
-			&& ! $request->get( 'ee_load_on_login' )
38
+			&& ! $request->get('ee_load_on_login')
39 39
 		) {
40 40
 			$this->_response->terminate_request();
41 41
 		}
42
-		$this->_response = $this->process_request_stack( $this->_request, $this->_response );
42
+		$this->_response = $this->process_request_stack($this->_request, $this->_response);
43 43
 		return $this->_response;
44 44
 	}
45 45
 
Please login to merge, or discard this patch.
core/EE_Object_Collection.core.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -84,6 +84,7 @@
 block discarded – undo
84 84
 	 *
85 85
 	 * @access public
86 86
 	 * @param mixed
87
+	 * @param string $info
87 88
 	 * @return null | object
88 89
 	 */
89 90
 	public function get_by_info( $info ) {
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Class EE_Object_Collection
@@ -37,14 +37,14 @@  discard block
 block discarded – undo
37 37
 	 * @param mixed $info
38 38
 	 * @return bool
39 39
 	 */
40
-	public function add( $object, $info = null ) {
40
+	public function add($object, $info = null) {
41 41
 		$class = $this->interface;
42
-		if ( ! $object instanceof $class ) {
42
+		if ( ! $object instanceof $class) {
43 43
 			return false;
44 44
 		}
45
-		$this->attach( $object );
46
-		$this->set_info( $object, $info );
47
-		return $this->contains( $object );
45
+		$this->attach($object);
46
+		$this->set_info($object, $info);
47
+		return $this->contains($object);
48 48
 	}
49 49
 
50 50
 
@@ -60,12 +60,12 @@  discard block
 block discarded – undo
60 60
 	 * @param mixed $info
61 61
 	 * @return bool
62 62
 	 */
63
-	public function set_info( $object, $info = null ) {
64
-		$info = ! empty( $info ) ? $info : spl_object_hash( $object );
63
+	public function set_info($object, $info = null) {
64
+		$info = ! empty($info) ? $info : spl_object_hash($object);
65 65
 		$this->rewind();
66
-		while ( $this->valid() ) {
67
-			if ( $object == $this->current() ) {
68
-				$this->setInfo( $info );
66
+		while ($this->valid()) {
67
+			if ($object == $this->current()) {
68
+				$this->setInfo($info);
69 69
 				$this->rewind();
70 70
 				return true;
71 71
 			}
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
 	 * @param mixed
87 87
 	 * @return null | object
88 88
 	 */
89
-	public function get_by_info( $info ) {
89
+	public function get_by_info($info) {
90 90
 		$this->rewind();
91
-		while ( $this->valid() ) {
92
-			if ( $info === $this->getInfo() ) {
91
+		while ($this->valid()) {
92
+			if ($info === $this->getInfo()) {
93 93
 				$object = $this->current();
94 94
 				$this->rewind();
95 95
 				return $object;
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 	 * @param object $object
111 111
 	 * @return bool
112 112
 	 */
113
-	public function has( $object ) {
114
-		return $this->contains( $object );
113
+	public function has($object) {
114
+		return $this->contains($object);
115 115
 	}
116 116
 
117 117
 
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
 	 * @param $object
126 126
 	 * @return bool
127 127
 	 */
128
-	public function remove( $object ) {
129
-		$this->detach( $object );
128
+	public function remove($object) {
129
+		$this->detach($object);
130 130
 		return true;
131 131
 	}
132 132
 
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 	 * @param $object
142 142
 	 * @return void
143 143
 	 */
144
-	public function set_current( $object ) {
144
+	public function set_current($object) {
145 145
 		$this->rewind();
146
-		while ( $this->valid() ) {
147
-			if ( $this->current() === $object ) {
146
+		while ($this->valid()) {
147
+			if ($this->current() === $object) {
148 148
 				break;
149 149
 			}
150 150
 			$this->next();
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
 	 * @param $info
163 163
 	 * @return void
164 164
 	 */
165
-	public function set_current_by_info( $info ) {
165
+	public function set_current_by_info($info) {
166 166
 		$this->rewind();
167
-		while ( $this->valid() ) {
168
-			if ( $info === $this->getInfo() ) {
167
+		while ($this->valid()) {
168
+			if ($info === $this->getInfo()) {
169 169
 				break;
170 170
 			}
171 171
 			$this->next();
Please login to merge, or discard this patch.
core/Psr4Autoloader.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * Loads the class file for a given class name.
133 133
 	 *
134 134
 	 * @param string $class The fully-qualified class name.
135
-	 * @return mixed The mapped file name on success, or boolean false on
135
+	 * @return string|false The mapped file name on success, or boolean false on
136 136
 	 * failure.
137 137
 	 */
138 138
 	public function loadClass( $class ) {
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 *
166 166
 	 * @param string $prefix The namespace prefix.
167 167
 	 * @param string $relative_class The relative class name.
168
-	 * @return mixed Boolean false if no mapped file can be loaded, or the
168
+	 * @return string|false Boolean false if no mapped file can be loaded, or the
169 169
 	 * name of the mapped file that was loaded.
170 170
 	 */
171 171
 	protected function loadMappedFile( $prefix, $relative_class ) {
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 	 * @param string $prefix
78 78
 	 * @return array
79 79
 	 */
80
-	public function prefixes( $prefix = '' ) {
81
-		if ( ! empty( $prefix ) ) {
80
+	public function prefixes($prefix = '') {
81
+		if ( ! empty($prefix)) {
82 82
 			// are there any base directories for this namespace prefix?
83
-			return isset( $this->prefixes[ $prefix ] ) ? $this->prefixes[ $prefix ] : array();
83
+			return isset($this->prefixes[$prefix]) ? $this->prefixes[$prefix] : array();
84 84
 		}
85 85
 		return $this->prefixes;
86 86
 	}
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 * @return void
94 94
 	 */
95 95
 	public function register() {
96
-		spl_autoload_register( array( $this, 'loadClass' ) );
96
+		spl_autoload_register(array($this, 'loadClass'));
97 97
 	}
98 98
 
99 99
 
@@ -109,20 +109,20 @@  discard block
 block discarded – undo
109 109
 	 * than last.
110 110
 	 * @return void
111 111
 	 */
112
-	public function addNamespace( $prefix, $base_dir, $prepend = false ) {
112
+	public function addNamespace($prefix, $base_dir, $prepend = false) {
113 113
 		// normalize namespace prefix
114
-		$prefix = trim( $prefix, Psr4Autoloader::NS ) . Psr4Autoloader::NS;
114
+		$prefix = trim($prefix, Psr4Autoloader::NS).Psr4Autoloader::NS;
115 115
 		// normalize the base directory with a trailing separator
116
-		$base_dir = \EEH_File::standardise_and_end_with_directory_separator( $base_dir );
116
+		$base_dir = \EEH_File::standardise_and_end_with_directory_separator($base_dir);
117 117
 		// initialize the namespace prefix array
118
-		if ( isset( $this->prefixes[ $prefix ] ) === false ) {
119
-			$this->prefixes[ $prefix ] = array();
118
+		if (isset($this->prefixes[$prefix]) === false) {
119
+			$this->prefixes[$prefix] = array();
120 120
 		}
121 121
 		// retain the base directory for the namespace prefix
122
-		if ( $prepend ) {
123
-			array_unshift( $this->prefixes[ $prefix ], $base_dir );
122
+		if ($prepend) {
123
+			array_unshift($this->prefixes[$prefix], $base_dir);
124 124
 		} else {
125
-			$this->prefixes[ $prefix ][] = $base_dir;
125
+			$this->prefixes[$prefix][] = $base_dir;
126 126
 		}
127 127
 	}
128 128
 
@@ -135,24 +135,24 @@  discard block
 block discarded – undo
135 135
 	 * @return mixed The mapped file name on success, or boolean false on
136 136
 	 * failure.
137 137
 	 */
138
-	public function loadClass( $class ) {
138
+	public function loadClass($class) {
139 139
 		// the current namespace prefix
140 140
 		$prefix = $class;
141 141
 		// work backwards through the namespace names of the fully-qualified
142 142
 		// class name to find a mapped file name
143
-		while ( false !== $pos = strrpos( $prefix, Psr4Autoloader::NS ) ) {
143
+		while (false !== $pos = strrpos($prefix, Psr4Autoloader::NS)) {
144 144
 			// retain the trailing namespace separator in the prefix
145
-			$prefix = substr( $class, 0, $pos + 1 );
145
+			$prefix = substr($class, 0, $pos + 1);
146 146
 			// the rest is the relative class name
147
-			$relative_class = substr( $class, $pos + 1 );
147
+			$relative_class = substr($class, $pos + 1);
148 148
 			// try to load a mapped file for the prefix and relative class
149
-			$mapped_file = $this->loadMappedFile( $prefix, $relative_class );
150
-			if ( $mapped_file ) {
149
+			$mapped_file = $this->loadMappedFile($prefix, $relative_class);
150
+			if ($mapped_file) {
151 151
 				return $mapped_file;
152 152
 			}
153 153
 			// remove the trailing namespace separator for the next iteration
154 154
 			// of strrpos()
155
-			$prefix = rtrim( $prefix, Psr4Autoloader::NS );
155
+			$prefix = rtrim($prefix, Psr4Autoloader::NS);
156 156
 		}
157 157
 		// never found a mapped file
158 158
 		return false;
@@ -168,17 +168,17 @@  discard block
 block discarded – undo
168 168
 	 * @return mixed Boolean false if no mapped file can be loaded, or the
169 169
 	 * name of the mapped file that was loaded.
170 170
 	 */
171
-	protected function loadMappedFile( $prefix, $relative_class ) {
171
+	protected function loadMappedFile($prefix, $relative_class) {
172 172
 		// look through base directories for this namespace prefix
173
-		foreach ( $this->prefixes( $prefix ) as $base_dir ) {
173
+		foreach ($this->prefixes($prefix) as $base_dir) {
174 174
 			// replace the namespace prefix with the base directory,
175 175
 			// replace namespace separators with directory separators
176 176
 			// in the relative class name, append with .php
177 177
 			$file = $base_dir
178
-				. str_replace( Psr4Autoloader::NS, DS, $relative_class )
178
+				. str_replace(Psr4Autoloader::NS, DS, $relative_class)
179 179
 				. '.php';
180 180
 			// if the mapped file exists, require it
181
-			if ( $this->requireFile( $file ) ) {
181
+			if ($this->requireFile($file)) {
182 182
 				// yes, we're done
183 183
 				return $file;
184 184
 			}
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
 	 * @param string $file The file to require.
196 196
 	 * @return bool True if the file exists, false if not.
197 197
 	 */
198
-	protected function requireFile( $file ) {
199
-		if ( file_exists( $file ) ) {
198
+	protected function requireFile($file) {
199
+		if (file_exists($file)) {
200 200
 			require $file;
201 201
 			return true;
202 202
 		}
Please login to merge, or discard this patch.
core/services/locators/LocatorInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\core\services\locators;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 
8 8
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	 * @param array|string $location
23 23
 	 * @return \FilesystemIterator
24 24
 	 */
25
-	public function locate( $location );
25
+	public function locate($location);
26 26
 
27 27
 }
28 28
 // End of file LocatorInterface.php
Please login to merge, or discard this patch.
libraries/form_sections/strategies/EE_Form_Input_Strategy_Base.strategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,14 +3,14 @@  discard block
 block discarded – undo
3 3
  * base class for all strategies which operate on form inputs. Generally, they
4 4
  * all need to know about the form input they are operating on.
5 5
  */
6
-abstract class EE_Form_Input_Strategy_Base{
6
+abstract class EE_Form_Input_Strategy_Base {
7 7
 	/**
8 8
 	 * Form Input to display
9 9
 	 * @var EE_Form_Input_Base
10 10
 	 */
11 11
 	protected $_input;
12 12
 	
13
-	function __construct(){
13
+	function __construct() {
14 14
 		
15 15
 	}
16 16
 
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * The form input on which this strategy is to perform
19 19
 	 * @param EE_Form_Input_Base $form_input
20 20
 	 */
21
-	function _construct_finalize(EE_Form_Input_Base $form_input){
21
+	function _construct_finalize(EE_Form_Input_Base $form_input) {
22 22
 		$this->_input = $form_input;
23 23
 	}
24 24
 	
Please login to merge, or discard this patch.
strategies/display/EE_Compound_Input_Display_Strategy.strategy.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
3
-	exit( 'No direct script access allowed' );
2
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
3
+	exit('No direct script access allowed');
4 4
 }
5 5
 
6 6
 
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 	 * @param bool   $add_pound_sign
28 28
 	 * @return string
29 29
 	 */
30
-	public function get_sub_input_id( $option_value, $add_pound_sign = false ) {
31
-		return $this->_append_chars( $this->_input->html_id( $add_pound_sign ), '-' ) . sanitize_key( $option_value );
30
+	public function get_sub_input_id($option_value, $add_pound_sign = false) {
31
+		return $this->_append_chars($this->_input->html_id($add_pound_sign), '-').sanitize_key($option_value);
32 32
 	}
33 33
 
34 34
 
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 	 * @return array
41 41
 	 * @throws \EE_Error
42 42
 	 */
43
-	public function get_html_input_ids( $add_pound_sign = false ) {
43
+	public function get_html_input_ids($add_pound_sign = false) {
44 44
 		$html_input_ids = array();
45
-		foreach( $this->get_input()->options() as $value => $display ) {
46
-			$html_input_ids[] = $this->get_sub_input_id( $value, $add_pound_sign );
45
+		foreach ($this->get_input()->options() as $value => $display) {
46
+			$html_input_ids[] = $this->get_sub_input_id($value, $add_pound_sign);
47 47
 		}
48 48
 		return $html_input_ids;
49 49
 	}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @throws \EE_Error
59 59
 	 */
60 60
 	public function get_input() {
61
-		if ( ! $this->_input instanceof EE_Form_Input_With_Options_Base ){
61
+		if ( ! $this->_input instanceof EE_Form_Input_With_Options_Base) {
62 62
 			throw new EE_Error(
63 63
 				sprintf(
64 64
 					__(
Please login to merge, or discard this patch.
core/libraries/messages/EE_Message_To_Generate_From_Queue.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 	 * @param EE_Messages_Queue $queue
26 26
 	 * @param string            $custom_subject  Used if a custom subject is desired for the generated aggregate EE_Message object
27 27
 	 */
28
-	public function __construct( $messenger_name, $message_type_name, EE_Messages_Queue $queue, $custom_subject = '' ) {
28
+	public function __construct($messenger_name, $message_type_name, EE_Messages_Queue $queue, $custom_subject = '') {
29 29
 		$this->queue = $queue;
30
-		parent::__construct( $messenger_name, $message_type_name, array(), '', false, EEM_Message::status_idle );
31
-		if ( $this->valid() ) {
32
-			$this->_message->set_content( $this->_get_content() );
33
-			$this->_message->set_subject( $this->_get_subject( $custom_subject ) );
30
+		parent::__construct($messenger_name, $message_type_name, array(), '', false, EEM_Message::status_idle);
31
+		if ($this->valid()) {
32
+			$this->_message->set_content($this->_get_content());
33
+			$this->_message->set_subject($this->_get_subject($custom_subject));
34 34
 		}
35 35
 	}
36 36
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	protected function _get_content() {
45 45
 		$content = '';
46 46
 		$this->queue->get_message_repository()->rewind();
47
-		while ( $this->queue->get_message_repository()->valid() ) {
47
+		while ($this->queue->get_message_repository()->valid()) {
48 48
 			$content .= $this->queue->get_message_repository()->current()->content();
49 49
 			$this->queue->get_message_repository()->next();
50 50
 		}
@@ -58,15 +58,15 @@  discard block
 block discarded – undo
58 58
 	 *
59 59
 	 * @return string
60 60
 	 */
61
-	protected function _get_subject( $custom_subject = '' ) {
62
-		if ( ! empty( $custom_subject ) ) {
61
+	protected function _get_subject($custom_subject = '') {
62
+		if ( ! empty($custom_subject)) {
63 63
 			return $custom_subject;
64 64
 		}
65 65
 		$this->queue->get_message_repository()->rewind();
66 66
 		$count_of_items = $this->queue->get_message_repository()->count();
67 67
 
68 68
 		//if $count of items in queue == 1, then let's just return the subject for that item.
69
-		if ( $count_of_items === 1 ) {
69
+		if ($count_of_items === 1) {
70 70
 			return $this->queue->get_message_repository()->current()->subject();
71 71
 		}
72 72
 
Please login to merge, or discard this patch.