Code Duplication    Length = 7-7 lines in 2 locations

includes/CMB2_Field.php 2 locations

@@ 1016-1022 (lines=7) @@
1013
		if ( null === $this->strings ) {
1014
			$this->strings = (array) $this->args['text'];
1015
1016
			if ( is_callable( $this->args['text_cb'] ) ) {
1017
				$strings = call_user_func( $this->args['text_cb'], $this );
1018
1019
				if ( $strings && is_array( $strings ) ) {
1020
					$this->strings += $strings;
1021
				}
1022
			}
1023
		}
1024
1025
		// If we have that string value, send it back.
@@ 1054-1060 (lines=7) @@
1051
1052
		$this->field_options = (array) $this->args['options'];
1053
1054
		if ( is_callable( $this->args['options_cb'] ) ) {
1055
			$options = call_user_func( $this->args['options_cb'], $this );
1056
1057
			if ( $options && is_array( $options ) ) {
1058
				$this->field_options = $options + $this->field_options;
1059
			}
1060
		}
1061
1062
		if ( $key ) {
1063
			return array_key_exists( $key, $this->field_options ) ? $this->field_options[ $key ] : false;