Code Duplication    Length = 8-8 lines in 2 locations

packages/sync/src/class-settings.php 2 locations

@@ 293-300 (lines=8) @@
290
	 *
291
	 * @return array Meta keys filter values
292
	 */
293
	public static function get_allowed_post_meta_structured() {
294
		return array(
295
			'meta_key' => array(
296
				'operator' => 'IN',
297
				'values'   => array_map( 'esc_sql', self::get_setting( 'post_meta_whitelist' ) ),
298
			),
299
		);
300
	}
301
302
	/**
303
	 * Returns escaped SQL for blacklisted comment meta.
@@ 323-330 (lines=8) @@
320
	 *
321
	 * @return array Meta keys filter values
322
	 */
323
	public static function get_allowed_comment_meta_structured() {
324
		return array(
325
			'meta_key' => array(
326
				'operator' => 'IN',
327
				'values'   => array_map( 'esc_sql', self::get_setting( 'comment_meta_whitelist' ) ),
328
			),
329
		);
330
	}
331
332
	/**
333
	 * Returns escaped SQL for comments, excluding any spam comments.