Code Duplication    Length = 14-15 lines in 2 locations

src/Admin/SettingsPage.php 2 locations

@@ 418-432 (lines=15) @@
415
	 *
416
	 * @since 1.6.0
417
	 */
418
	private function output_register_pc_class_field_instructions() {
419
420
		?>
421
		<p class="description"><?php
422
			esc_html_e( 'Enable to register PC class in the global namespace.', 'wp-php-console' );
423
			echo '<br>';
424
			printf(
425
				/* translators: Placeholders: %1$s, %2$s and %3$s are PHP code snippets examples */
426
				__( 'Allows to write %1$s or %2$s instructions in PHP to inspect %3$s in the JavaScript console.', 'wp-php-console' ),
427
				'<code>PC::debug(&#36;var, &#36;tag)</code>',
428
				'<code>PC::magic_tag(&#36;var)</code>',
429
				'<code>&#36;var</code>'
430
			); ?></p>
431
		<?php
432
	}
433
434
435
	/**
@@ 453-466 (lines=14) @@
450
	 *
451
	 * @since 1.6.0
452
	 */
453
	private function output_show_short_paths_field_instructions() {
454
455
		?>
456
		<p class="description"><?php
457
			esc_html_e( 'Enable to shorten the length of PHP Console error sources and traces paths in browser JavaScript console for better readability.', 'wp-php-console' );
458
			echo '<br>';
459
			printf(
460
				/* translators: Placeholders: %1$s - long server path, %2$s - shortened server path */
461
				__( 'Paths like %1$s will be displayed as %2$s', 'wp-php-console' ),
462
				'<code>/server/path/to/document/root/WP/wp-admin/admin.php:31</code>',
463
				'<code>/WP/wp-admin/admin.php:31</code>'
464
			); ?></p>
465
		<?php
466
	}
467
468
469
	/**