Code Duplication    Length = 4-5 lines in 2 locations

includes/class-meta-box.php 2 locations

@@ 221-224 (lines=4) @@
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] ] !== '' ) {
220
221
				if ( is_array( $arg_value[1] ) ) {
222
					$this->field_args[ $arg_value[1][0] ][ $arg_value[1][1] ] = $this->field[ $arg_value[2] ];
223
					return;
224
				}
225
				$this->field_args[ $arg_value[1] ] = $this->field[ $arg_value[2] ];
226
			}
227
		}
@@ 240-244 (lines=5) @@
237
238
			if ( $this->should_add_arg( $this->field, $arg, $value[1] ) ) {
239
240
				if ( is_array( $value[1] ) ) {
241
242
					$this->field_args[ $value[0] ][ $value[1][0] ] = $this->field[ $value[1][1] ];
243
					return;
244
				}
245
				$this->field_args[ $value[0] ] = $this->field[ $value[1] ];
246
			}
247
		}