Completed
Pull Request — develop (#1319)
by Aristeides
03:53 queued 01:19
created
core/class-kirki-init.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 			foreach ( Kirki::$panels as $panel_args ) {
188 188
 				// Extra checks for nested panels.
189 189
 				if ( isset( $panel_args['panel'] ) ) {
190
-					if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) {
190
+					if ( isset( Kirki::$panels[$panel_args['panel']] ) ) {
191 191
 						// Set the type to nested.
192 192
 						$panel_args['type'] = 'kirki-nested';
193 193
 					}
@@ -209,11 +209,11 @@  discard block
 block discarded – undo
209 209
 			foreach ( Kirki::$sections as $section_args ) {
210 210
 				// Extra checks for nested sections.
211 211
 				if ( isset( $section_args['section'] ) ) {
212
-					if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) {
212
+					if ( isset( Kirki::$sections[$section_args['section']] ) ) {
213 213
 						// Set the type to nested.
214 214
 						$section_args['type'] = 'kirki-nested';
215 215
 						// We need to check if the parent section is nested inside a panel.
216
-						$parent_section = Kirki::$sections[ $section_args['section'] ];
216
+						$parent_section = Kirki::$sections[$section_args['section']];
217 217
 						if ( isset( $parent_section['panel'] ) ) {
218 218
 							$section_args['panel'] = $parent_section['panel'];
219 219
 						}
@@ -281,9 +281,9 @@  discard block
 block discarded – undo
281 281
 						// and run it through the callback function.
282 282
 						// If no callback is defined (false) then just get the value.
283 283
 						if ( $variable_callback ) {
284
-							$variables[ $variable_name ] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) );
284
+							$variables[$variable_name] = call_user_func( $field_variable['callback'], Kirki::get_option( $field['settings'] ) );
285 285
 						} else {
286
-							$variables[ $variable_name ] = Kirki::get_option( $field['settings'] );
286
+							$variables[$variable_name] = Kirki::get_option( $field['settings'] );
287 287
 						}
288 288
 					}
289 289
 				}
Please login to merge, or discard this patch.
modules/custom-sections/sections/class-kirki-sections-nested-section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 			'type',
43 43
 			'description_hidden',
44 44
 			'section',
45
-		));
45
+		) );
46 46
 
47 47
 		$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
48 48
 		$array['content']        = $this->get_content();
Please login to merge, or discard this patch.
modules/custom-sections/panels/class-kirki-panels-nested-panel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 			'priority',
48 48
 			'type',
49 49
 			'panel',
50
-		));
50
+		) );
51 51
 
52 52
 		$array['title']          = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
53 53
 		$array['content']        = $this->get_content();
Please login to merge, or discard this patch.