Completed
Push — develop ( 68d4ed...a0f7c0 )
by Aristeides
02:34
created
core/class-kirki-init.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 			foreach ( Kirki::$panels as $panel_args ) {
192 192
 				// Extra checks for nested panels.
193 193
 				if ( isset( $panel_args['panel'] ) ) {
194
-					if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) {
194
+					if ( isset( Kirki::$panels[$panel_args['panel']] ) ) {
195 195
 						// Set the type to nested.
196 196
 						$panel_args['type'] = 'kirki-nested';
197 197
 					}
@@ -213,11 +213,11 @@  discard block
 block discarded – undo
213 213
 			foreach ( Kirki::$sections as $section_args ) {
214 214
 				// Extra checks for nested sections.
215 215
 				if ( isset( $section_args['section'] ) ) {
216
-					if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) {
216
+					if ( isset( Kirki::$sections[$section_args['section']] ) ) {
217 217
 						// Set the type to nested.
218 218
 						$section_args['type'] = 'kirki-nested';
219 219
 						// We need to check if the parent section is nested inside a panel.
220
-						$parent_section = Kirki::$sections[ $section_args['section'] ];
220
+						$parent_section = Kirki::$sections[$section_args['section']];
221 221
 						if ( isset( $parent_section['panel'] ) ) {
222 222
 							$section_args['panel'] = $parent_section['panel'];
223 223
 						}
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
 						// and run it through the callback function.
286 286
 						// If no callback is defined (false) then just get the value.
287 287
 						if ( $variable_callback ) {
288
-							$variables[ $variable_name ] = call_user_func( array( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ) );
288
+							$variables[$variable_name] = call_user_func( array( $field_variable['callback'], Kirki::get_option( $field['settings'] ) ) );
289 289
 						} else {
290
-							$variables[ $variable_name ] = Kirki::get_option( $field['settings'] );
290
+							$variables[$variable_name] = Kirki::get_option( $field['settings'] );
291 291
 						}
292 292
 					}
293 293
 				}
Please login to merge, or discard this patch.
core/class-kirki-modules.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 			if ( class_exists( $module_class ) ) {
88 88
 				// Use this syntax instead of $module_class::get_instance()
89 89
 				// for PHP 5.2 compatibility.
90
-				self::$active_modules[ $key ] = call_user_func( array( $module_class, 'get_instance' ) );
90
+				self::$active_modules[$key] = call_user_func( array( $module_class, 'get_instance' ) );
91 91
 			}
92 92
 		}
93 93
 	}
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 		$key = array_search( $module, self::$modules, true );
122 122
 		if ( false !== $key ) {
123
-			unset( self::$modules[ $key ] );
123
+			unset( self::$modules[$key] );
124 124
 		}
125 125
 	}
126 126
 
Please login to merge, or discard this patch.