Code Duplication    Length = 7-7 lines in 2 locations

includes/CMB2_Field.php 2 locations

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