Code Duplication    Length = 13-13 lines in 2 locations

projects/packages/sync/src/class-rest-endpoints.php 1 location

@@ 750-762 (lines=13) @@
747
	 *
748
	 * @return bool
749
	 */
750
	protected static function is_valid_sync_module( $module_name ) {
751
		return in_array(
752
			$module_name,
753
			array(
754
				'comments',
755
				'posts',
756
				'terms',
757
				'term_relationships',
758
				'users',
759
			),
760
			true
761
		);
762
	}
763
764
	/**
765
	 * Sanitize Item Ids.

projects/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-sync-endpoint.php 1 location

@@ 471-483 (lines=13) @@
468
		);
469
	}
470
471
	protected function is_valid_sync_module( $module_name ) {
472
		return in_array(
473
			$module_name,
474
			array(
475
				'comments',
476
				'posts',
477
				'terms',
478
				'term_relationships',
479
				'users',
480
			),
481
			true
482
		);
483
	}
484
}
485