Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 560-568 (lines=9) @@
557
558
			wp_send_json_success();
559
		}
560
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
561
			$module_slug = $_REQUEST['jitmModule'];
562
563
			// User went to WordPress.com, track this
564
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
565
			$this->do_stats( 'server_side' );
566
567
			wp_send_json_success();
568
		}
569
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
570
			$track = $_REQUEST['jitmModule'];
571
@@ 569-577 (lines=9) @@
566
567
			wp_send_json_success();
568
		}
569
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
570
			$track = $_REQUEST['jitmModule'];
571
572
			// User is viewing JITM, track it.
573
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
574
			$this->do_stats( 'server_side' );
575
576
			wp_send_json_success();
577
		}
578
	}
579
580
	/**