Code Duplication    Length = 10-10 lines in 2 locations

classes/fields/text.php 2 locations

@@ 113-122 (lines=10) @@
110
	/**
111
	 * {@inheritdoc}
112
	 */
113
	public function display( $value = null, $name = null, $options = null, $pod = null, $id = null ) {
114
115
		$value = $this->strip_html( $value, $options );
116
117
		if ( 1 === (int) pods_v( static::$type . '_allow_shortcode', $options ) ) {
118
			$value = do_shortcode( $value );
119
		}
120
121
		return $value;
122
	}
123
124
	/**
125
	 * {@inheritdoc}
@@ 194-203 (lines=10) @@
191
	/**
192
	 * {@inheritdoc}
193
	 */
194
	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
195
196
		$value = $this->strip_html( $value, $options );
197
198
		if ( 0 === (int) pods_v( static::$type . '_allow_html', $options, 0, true ) ) {
199
			$value = wp_trim_words( $value );
200
		}
201
202
		return $value;
203
	}
204
}
205