Completed
Pull Request — develop (#1334)
by Aristeides
02:59
created
modules/postmessage/class-kirki-modules-postmessage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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   = '';
Please login to merge, or discard this patch.