Code Duplication    Length = 10-19 lines in 2 locations

includes/404-widget.php 1 location

@@ 9-27 (lines=19) @@
6
 * @subpackage 404-widget
7
 */
8
9
if ( ! function_exists( 'lsx_widget_area_404_init' ) ) :
10
	/**
11
	 * Add Widget.
12
	 *
13
	 * @package    lsx
14
	 * @subpackage 404-widget
15
	 */
16
	function lsx_widget_area_404_init() {
17
		register_sidebar(
18
			array(
19
				'name'          => esc_html__( '404 page', 'lsx' ),
20
				'id'            => 'sidebar-404',
21
				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
22
				'after_widget'  => '</aside>',
23
				'before_title'  => '<h3 class="widget-title">',
24
				'after_title'   => '</h3>',
25
			)
26
		);
27
	}
28
29
endif;
30

includes/sensei/class-lsx-sensei-lesson.php 1 location

@@ 60-69 (lines=10) @@
57
	 * @return void
58
	 */
59
	public function lsx_widget_area_sensei_init() {
60
		if ( class_exists( 'Sensei_Course_Participants' ) || class_exists( 'Sensei_Course_Progress' ) ) {
61
			register_sidebar( array(
62
				'name'          => esc_html__( 'LSX Sensei Sidebar', 'lsx' ),
63
				'id'            => 'lsx-sensei-sidebar',
64
				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
65
				'after_widget'  => '</aside>',
66
				'before_title'  => '<h3 class="widget-title">',
67
				'after_title'   => '</h3>',
68
			) );
69
		}
70
	}
71
72
	/**