@@ -169,11 +169,10 @@ public function __construct( $parent, array $args ) {
169169 $ args = $ this ->args ( $ args );
170170 $ args = $ this ->default_cleanup ( $ args );
171171
172- if ( ! in_array ( $ args ['font_display ' ], array ( 'auto ' , ' block ' , 'swap ' , 'fallback ' , 'optional ' ), true ) ) {
172+ if ( ! in_array ( $ args ['font_display ' ], array ( 'block ' , 'swap ' , 'fallback ' , 'optional ' ), true ) ) {
173173 $ args ['font_display ' ] = 'swap ' ;
174174 }
175-
176- if ( isset ($ args ['async_typography ' ]) && $ args ['async_typography ' ] ) {
175+ if ( isset ( $ args ['async_typography ' ] ) && $ args ['async_typography ' ] ) {
177176 $ args ['async_typography ' ] = false ;
178177 }
179178
@@ -250,7 +249,7 @@ private function filters( array $args ) {
250249 /**
251250 * Sanitize args that should not be empty.
252251 *
253- * @param array $args Global args.
252+ * @param array $args Global args.
254253 *
255254 * @return array
256255 */
@@ -297,7 +296,7 @@ private function no_errors_please( array $args ): array {
297296 /**
298297 * Shims for much older v3 configs.
299298 *
300- * @param array $args Global args.
299+ * @param array $args Global args.
301300 *
302301 * @return array
303302 */
@@ -337,16 +336,9 @@ private function change_demo_defaults( array $args ) {
337336 if ( is_array ( $ arr ) && ! empty ( $ arr ) ) {
338337 foreach ( $ arr as $ x => $ y ) {
339338 if ( strpos ( Redux_Core::strtolower ( $ y ), 'redux ' ) !== false ) {
340- $ msg = '<strong> ' . esc_html__ (
341- 'Redux Framework Notice ' ,
342- 'redux-framework '
343- ) . ' </strong> ' . esc_html__ (
344- 'There are references to the Redux Framework support site in your config \'s ' ,
345- 'redux-framework '
346- ) . '<code>admin_bar_links</code> ' . esc_html__ (
347- 'argument. This is sample data. Please change or remove this data before shipping your product. ' ,
348- 'redux-framework '
349- );
339+ $ msg = '<strong> ' . esc_html__ ( 'Redux Framework Notice ' , 'redux-framework ' ) . ' </strong> ' .
340+ esc_html__ ( 'There are references to the Redux Framework support site in your config \'s ' , 'redux-framework ' ) .
341+ '<code>admin_bar_links</code> ' . esc_html__ ( 'argument. This is sample data. Please change or remove this data before shipping your product. ' , 'redux-framework ' );
350342
351343 $ this ->omit_items = true ;
352344 break ;
@@ -361,16 +353,9 @@ private function change_demo_defaults( array $args ) {
361353 if ( is_array ( $ arr ) && ! empty ( $ arr ) ) {
362354 foreach ( $ arr as $ x => $ y ) {
363355 if ( strpos ( Redux_Core::strtolower ( $ y ), 'redux ' ) !== false ) {
364- $ msg = '<strong> ' . esc_html__ (
365- 'Redux Framework Notice: ' ,
366- 'redux-framework '
367- ) . '</strong> ' . esc_html__ (
368- 'There are references to the Redux Framework support site in your config \'s ' ,
369- 'redux-framework '
370- ) . ' <code>share_icons</code> ' . esc_html__ (
371- 'argument. This is sample data. Please change or remove this data before shipping your product. ' ,
372- 'redux-framework '
373- );
356+ $ msg = '<strong> ' . esc_html__ ( 'Redux Framework Notice: ' , 'redux-framework ' ) . '</strong> ' .
357+ esc_html__ ( 'There are references to the Redux Framework support site in your config \'s ' , 'redux-framework ' ) .
358+ ' <code>share_icons</code> ' . esc_html__ ( 'argument. This is sample data. Please change or remove this data before shipping your product. ' , 'redux-framework ' );
374359
375360 $ this ->omit_icons = true ;
376361 }
@@ -391,7 +376,7 @@ private function change_demo_defaults( array $args ) {
391376 private function default_cleanup ( array $ args ): array {
392377
393378 // Fix the global variable name.
394- if ( '' === $ args ['global_variable ' ] && false !== ( bool ) $ args ['global_variable ' ] ) {
379+ if ( '' === $ args ['global_variable ' ] && false !== $ args ['global_variable ' ] ) {
395380 $ args ['global_variable ' ] = str_replace ( '- ' , '_ ' , $ args ['opt_name ' ] );
396381 }
397382
0 commit comments