@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @since 3.0.0 |
28 | 28 | * @var string |
29 | 29 | */ |
30 | - protected $script =''; |
|
30 | + protected $script = ''; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Constructor. |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | 'units' => '', |
82 | 82 | 'js_callback' => array( '', '' ), |
83 | 83 | 'value_pattern' => '', |
84 | - )); |
|
84 | + ) ); |
|
85 | 85 | |
86 | 86 | // Element should be a string. |
87 | 87 | if ( is_array( $args['element'] ) ) { |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | $value .= '+' . $args['units'] . $args['suffix']; |
116 | 116 | } |
117 | 117 | $scripts_array = array(); |
118 | - $scripts_array[ sanitize_key( $args['element'] ) ][ sanitize_key( $args['property'] ) ]['script'] = $property_script . $script; |
|
119 | - $scripts_array[ sanitize_key( $args['element'] ) ][ sanitize_key( $args['property'] ) ]['css'] = $args['element'] . '{' . $args['property'] . ':\'+' . $value_key . '+\';}'; |
|
118 | + $scripts_array[sanitize_key( $args['element'] )][sanitize_key( $args['property'] )]['script'] = $property_script . $script; |
|
119 | + $scripts_array[sanitize_key( $args['element'] )][sanitize_key( $args['property'] )]['css'] = $args['element'] . '{' . $args['property'] . ':\'+' . $value_key . '+\';}'; |
|
120 | 120 | |
121 | 121 | return $scripts_array; |
122 | 122 | } |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | // Loop through the js_vars and generate the script. |
142 | 142 | foreach ( $args['js_vars'] as $key => $js_var ) { |
143 | 143 | $js_var['index_key'] = $key; |
144 | - $field['scripts'][ $key ] = $this->_script( $js_var ); |
|
144 | + $field['scripts'][$key] = $this->_script( $js_var ); |
|
145 | 145 | } |
146 | 146 | $combo_extra_script = ''; |
147 | 147 | $combo_css_script = ''; |