Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 639-647 (lines=9) @@
636
637
			wp_send_json_success();
638
		}
639
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
640
			$module_slug = $_REQUEST['jitmModule'];
641
642
			// User went to WordPress.com, track this
643
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
644
			$this->do_stats( 'server_side' );
645
646
			wp_send_json_success();
647
		}
648
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
649
			$track = $_REQUEST['jitmModule'];
650
@@ 648-656 (lines=9) @@
645
646
			wp_send_json_success();
647
		}
648
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
649
			$track = $_REQUEST['jitmModule'];
650
651
			// User is viewing JITM, track it.
652
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
653
			$this->do_stats( 'server_side' );
654
655
			wp_send_json_success();
656
		}
657
	}
658
659
	/**