@@ -80,10 +80,10 @@ discard block |
||
80 | 80 | $js_var['index_key'] = $key; |
81 | 81 | $callback = $this->get_callback( $args ); |
82 | 82 | if ( is_callable( $callback ) ) { |
83 | - $field['scripts'][ $key ] = call_user_func_array( $callback, array( $js_var, $args ) ); |
|
83 | + $field['scripts'][$key] = call_user_func_array( $callback, array( $js_var, $args ) ); |
|
84 | 84 | continue; |
85 | 85 | } |
86 | - $field['scripts'][ $key ] = $this->script_var( $js_var, $args ); |
|
86 | + $field['scripts'][$key] = $this->script_var( $js_var, $args ); |
|
87 | 87 | } |
88 | 88 | $combo_extra_script = ''; |
89 | 89 | $combo_css_script = ''; |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | 'font-weight' => 'fontWeight', |
230 | 230 | 'font-style' => 'fontStyle', |
231 | 231 | ); |
232 | - $choice_condition = ( isset( $args['choice'] ) && '' !== $args['choice'] && isset( $css_build_array[ $args['choice'] ] ) ); |
|
232 | + $choice_condition = ( isset( $args['choice'] ) && '' !== $args['choice'] && isset( $css_build_array[$args['choice']] ) ); |
|
233 | 233 | $script .= ( ! $choice_condition ) ? $webfont_loader : ''; |
234 | 234 | foreach ( $css_build_array as $property => $var ) { |
235 | 235 | if ( $choice_condition && $property !== $args['choice'] ) { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | 'units' => '', |
301 | 301 | 'js_callback' => array( '', '' ), |
302 | 302 | 'value_pattern' => '', |
303 | - )); |
|
303 | + ) ); |
|
304 | 304 | |
305 | 305 | // Element should be a string. |
306 | 306 | if ( is_array( $args['element'] ) ) { |