Code Duplication    Length = 4-4 lines in 2 locations

modules/comment-likes.php 1 location

@@ 46-49 (lines=4) @@
43
		if ( ! Jetpack::is_module_active( 'likes' ) ) {
44
			$active = Jetpack::get_active_modules();
45
46
			if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) {
47
				// we don't have a sharing page yet
48
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
49
			}
50
51
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
52
				// we have a sharing page but not the global options area

modules/likes.php 1 location

@@ 62-65 (lines=4) @@
59
60
			$active = Jetpack::get_active_modules();
61
62
			if ( ! in_array( 'sharedaddy', $active ) && ! in_array( 'publicize', $active ) ) {
63
				// we don't have a sharing page yet
64
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
65
			}
66
67
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
68
				// we have a sharing page but not the global options area