Passed
Push — master ( 5bdcf4...9b9d7b )
by Leon
02:00
created
includes/class-meta-box.php 1 patch
Spacing   +8 added lines, -8 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
 			}
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 				if ( ! isset( $opt_arr[1] ) ) {
203 203
 					continue;
204 204
 				}
205
-				$field_options[ $opt_arr[0] ] = $opt_arr[1];
205
+				$field_options[$opt_arr[0]] = $opt_arr[1];
206 206
 			}
207 207
 			$this->field_args['options'] = $field_options;
208 208
 		}
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
 		 */
216 216
 		public function add_strpos_arg( $arg_value ) {
217 217
 
218
-			if ( strpos( $this->field['_cmb2_field_type_select'], $arg_value[0] ) !== false && isset( $this->field[ $arg_value[2] ] ) && $this->field[ $arg_value[2] ] !== '' ) {
218
+			if ( strpos( $this->field['_cmb2_field_type_select'], $arg_value[0] ) !== false && isset( $this->field[$arg_value[2]] ) && $this->field[$arg_value[2]] !== '' ) {
219 219
 
220 220
 				if ( is_array( $arg_value[1] ) ) {
221
-					$this->field_args[ $arg_value[1][0] ][ $arg_value[1][1] ] = $this->field[ $arg_value[2] ];
221
+					$this->field_args[$arg_value[1][0]][$arg_value[1][1]] = $this->field[$arg_value[2]];
222 222
 					return;
223 223
 				}
224
-				$this->field_args[ $arg_value[1] ] = $this->field[ $arg_value[2] ];
224
+				$this->field_args[$arg_value[1]] = $this->field[$arg_value[2]];
225 225
 			}
226 226
 		}
227 227
 
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
 
239 239
 				if ( is_array( $value[1] ) ) {
240 240
 
241
-					$this->field_args[ $value[0] ][ $value[1][0] ] = $this->field[ $value[1][1] ];
241
+					$this->field_args[$value[0]][$value[1][0]] = $this->field[$value[1][1]];
242 242
 					return;
243 243
 				}
244
-				$this->field_args[ $value[0] ] = $this->field[ $value[1] ];
244
+				$this->field_args[$value[0]] = $this->field[$value[1]];
245 245
 			}
246 246
 		}
247 247
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 		 */
257 257
 		public static function should_add_arg( $field, $field_type, $field_key ) {
258 258
 
259
-			return ( $field['_cmb2_field_type_select'] === $field_type && ( ! empty( $field[ $field_key ] ) && $field[ $field_key ] !== '' ) );
259
+			return ( $field['_cmb2_field_type_select'] === $field_type && ( ! empty( $field[$field_key] ) && $field[$field_key] !== '' ) );
260 260
 		}
261 261
 
262 262
 		/**
Please login to merge, or discard this patch.