Code Duplication    Length = 7-7 lines in 3 locations

classes/fields/paragraph.php 1 location

@@ 247-253 (lines=7) @@
244
	/**
245
	 * {@inheritdoc}
246
	 */
247
	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
248
249
		$value = $this->strip_html( $value, $options );
250
251
		$value = wp_trim_words( $value );
252
253
		return $value;
254
	}
255
}
256

classes/fields/html.php 1 location

@@ 162-168 (lines=7) @@
159
	/**
160
	 * {@inheritdoc}
161
	 */
162
	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
163
164
		$value = $this->strip_html( $value, $options );
165
166
		$value = wp_trim_words( $value );
167
168
		return $value;
169
	}
170
}
171

classes/fields/wysiwyg.php 1 location

@@ 271-277 (lines=7) @@
268
	/**
269
	 * {@inheritdoc}
270
	 */
271
	public function ui( $id, $value, $name = null, $options = null, $fields = null, $pod = null ) {
272
273
		$value = $this->strip_html( $value, $options );
274
275
		$value = wp_trim_words( $value );
276
277
		return $value;
278
	}
279
280
	/**