Code Duplication    Length = 8-8 lines in 2 locations

projects/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 structured SQL clause for blacklisted taxonomies.
@@ 340-347 (lines=8) @@
337
	 *
338
	 * @return array Meta keys filter values
339
	 */
340
	public static function get_allowed_comment_meta_structured() {
341
		return array(
342
			'meta_key' => array(
343
				'operator' => 'IN',
344
				'values'   => array_map( 'esc_sql', self::get_setting( 'comment_meta_whitelist' ) ),
345
			),
346
		);
347
	}
348
349
	/**
350
	 * Returns escaped SQL for comments, excluding any spam comments.