@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->control_types = $this->default_control_types(); |
168 | 168 | foreach ( $this->control_types as $key => $classname ) { |
169 | 169 | if ( ! class_exists( $classname ) ) { |
170 | - unset( $this->control_types[ $key ] ); |
|
170 | + unset( $this->control_types[$key] ); |
|
171 | 171 | } |
172 | 172 | } |
173 | 173 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | foreach ( Kirki::$panels as $panel_args ) { |
196 | 196 | // Extra checks for nested panels. |
197 | 197 | if ( isset( $panel_args['panel'] ) ) { |
198 | - if ( isset( Kirki::$panels[ $panel_args['panel'] ] ) ) { |
|
198 | + if ( isset( Kirki::$panels[$panel_args['panel']] ) ) { |
|
199 | 199 | // Set the type to nested. |
200 | 200 | $panel_args['type'] = 'kirki-nested'; |
201 | 201 | } |
@@ -217,11 +217,11 @@ discard block |
||
217 | 217 | foreach ( Kirki::$sections as $section_args ) { |
218 | 218 | // Extra checks for nested sections. |
219 | 219 | if ( isset( $section_args['section'] ) ) { |
220 | - if ( isset( Kirki::$sections[ $section_args['section'] ] ) ) { |
|
220 | + if ( isset( Kirki::$sections[$section_args['section']] ) ) { |
|
221 | 221 | // Set the type to nested. |
222 | 222 | $section_args['type'] = 'kirki-nested'; |
223 | 223 | // We need to check if the parent section is nested inside a panel. |
224 | - $parent_section = Kirki::$sections[ $section_args['section'] ]; |
|
224 | + $parent_section = Kirki::$sections[$section_args['section']]; |
|
225 | 225 | if ( isset( $parent_section['panel'] ) ) { |
226 | 226 | $section_args['panel'] = $parent_section['panel']; |
227 | 227 | } |