Code Duplication    Length = 5-5 lines in 2 locations

packages/module-comment-likes/legacy/comment-likes.php 1 location

@@ 53-57 (lines=5) @@
50
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
51
			}
52
53
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
54
				// we have a sharing page but not the global options area
55
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 );
56
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 );
57
			}
58
59
			if( ! in_array( 'sharedaddy', $active ) ) {
60
				add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) );

packages/module-likes/legacy/likes.php 1 location

@@ 61-65 (lines=5) @@
58
				add_action( 'admin_menu', array( $this->settings, 'sharing_menu' ) );
59
			}
60
61
			if ( in_array( 'publicize', $active ) && ! in_array( 'sharedaddy', $active ) ) {
62
				// we have a sharing page but not the global options area
63
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'sharing_block' ), 20 );
64
				add_action( 'pre_admin_screen_sharing', array( $this->settings, 'updated_message' ), -10 );
65
			}
66
67
			if( ! in_array( 'sharedaddy', $active ) ) {
68
				add_action( 'admin_init', array( $this->settings, 'process_update_requests_if_sharedaddy_not_loaded' ) );