Code Duplication    Length = 10-10 lines in 2 locations

projects/plugins/beta/src/class-admin.php 2 locations

@@ 191-200 (lines=10) @@
188
	 *
189
	 * @since 2.5.0
190
	 */
191
	public static function to_test_general_rules_content() {
192
		$test_rules = JPBETA__PLUGIN_DIR . '/docs/testing/testing-tips.md';
193
		if ( ! file_exists( $test_rules ) ) {
194
			return;
195
		}
196
		WP_Filesystem();
197
		global $wp_filesystem;
198
		$content = $wp_filesystem->get_contents( $test_rules );
199
		return self::render_markdown( $content );
200
	}
201
202
	/** Return testing instructions for release candidate branch */
203
	public static function to_test_file_content() {
@@ 203-212 (lines=10) @@
200
	}
201
202
	/** Return testing instructions for release candidate branch */
203
	public static function to_test_file_content() {
204
		$test_file = WP_PLUGIN_DIR . '/' . Utils::get_plugin_slug() . '/to-test.md';
205
		if ( ! file_exists( $test_file ) ) {
206
			return;
207
		}
208
		WP_Filesystem();
209
		global $wp_filesystem;
210
		$content = $wp_filesystem->get_contents( $test_file );
211
		return self::render_markdown( $content );
212
	}
213
214
	/**
215
	 * Get PR information for what we want to test