Completed
Push — master ( 114289...0d546a )
by Leon
13s
created
includes/class-meta-box.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 				$plugins = $wp_list_table->items;
108 108
 				foreach ( array_keys( $plugins ) as $key ) {
109 109
 					if ( in_array( $key, $to_hide, true ) ) {
110
-						unset( $wp_list_table->items[ $key ] );
110
+						unset( $wp_list_table->items[$key] );
111 111
 					}
112 112
 				}
113 113
 			}
@@ -200,10 +200,10 @@  discard block
 block discarded – undo
200 200
 			foreach ( $field_options as $option ) {
201 201
 				$opt_arr = explode( ',', $option );
202 202
 				if ( ! isset( $opt_arr[1] ) ) {
203
-					$options[ $option ] = $option;
203
+					$options[$option] = $option;
204 204
 					continue;
205 205
 				}
206
-				$options[ $opt_arr[0] ] = $opt_arr[1];
206
+				$options[$opt_arr[0]] = $opt_arr[1];
207 207
 			}
208 208
 			$this->field_args['options'] = $options;
209 209
 		}
@@ -216,13 +216,13 @@  discard block
 block discarded – undo
216 216
 		 */
217 217
 		public function add_strpos_arg( $arg_value ) {
218 218
 
219
-			if ( strpos( $this->field['_cmb2_field_type_select'], $arg_value[0] ) !== false && isset( $this->field[ $arg_value[2] ] ) && $this->field[ $arg_value[2] ] !== '' ) {
219
+			if ( strpos( $this->field['_cmb2_field_type_select'], $arg_value[0] ) !== false && isset( $this->field[$arg_value[2]] ) && $this->field[$arg_value[2]] !== '' ) {
220 220
 
221 221
 				if ( is_array( $arg_value[1] ) ) {
222
-					$this->field_args[ $arg_value[1][0] ][ $arg_value[1][1] ] = $this->field[ $arg_value[2] ];
222
+					$this->field_args[$arg_value[1][0]][$arg_value[1][1]] = $this->field[$arg_value[2]];
223 223
 					return;
224 224
 				}
225
-				$this->field_args[ $arg_value[1] ] = $this->field[ $arg_value[2] ];
225
+				$this->field_args[$arg_value[1]] = $this->field[$arg_value[2]];
226 226
 			}
227 227
 		}
228 228
 
@@ -239,10 +239,10 @@  discard block
 block discarded – undo
239 239
 
240 240
 				if ( is_array( $value[1] ) ) {
241 241
 
242
-					$this->field_args[ $value[0] ][ $value[1][0] ] = $this->field[ $value[1][1] ];
242
+					$this->field_args[$value[0]][$value[1][0]] = $this->field[$value[1][1]];
243 243
 					return;
244 244
 				}
245
-				$this->field_args[ $value[0] ] = $this->field[ $value[1] ];
245
+				$this->field_args[$value[0]] = $this->field[$value[1]];
246 246
 			}
247 247
 		}
248 248
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 		 */
258 258
 		public static function should_add_arg( $field, $field_type, $field_key ) {
259 259
 
260
-			return ( $field['_cmb2_field_type_select'] === $field_type && ( ! empty( $field[ $field_key ] ) && $field[ $field_key ] !== '' ) );
260
+			return ( $field['_cmb2_field_type_select'] === $field_type && ( ! empty( $field[$field_key] ) && $field[$field_key] !== '' ) );
261 261
 		}
262 262
 
263 263
 		/**
Please login to merge, or discard this patch.