Code Duplication    Length = 12-12 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 2 locations

@@ 5548-5559 (lines=12) @@
5545
	 * @param array $properties
5546
	 * @return array amended properties.
5547
	 */
5548
	public static function filter_register_request_body( $properties ) {
5549
		$tracking        = new Tracking();
5550
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5551
5552
		return array_merge(
5553
			$properties,
5554
			array(
5555
				'_ui' => $tracks_identity['_ui'],
5556
				'_ut' => $tracks_identity['_ut'],
5557
			)
5558
		);
5559
	}
5560
5561
	/**
5562
	 * Filters the token request body to include tracking properties.
@@ 5567-5578 (lines=12) @@
5564
	 * @param array $properties
5565
	 * @return array amended properties.
5566
	 */
5567
	public static function filter_token_request_body( $properties ) {
5568
		$tracking        = new Tracking();
5569
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5570
5571
		return array_merge(
5572
			$properties,
5573
			array(
5574
				'_ui' => $tracks_identity['_ui'],
5575
				'_ut' => $tracks_identity['_ut'],
5576
			)
5577
		);
5578
	}
5579
5580
	/**
5581
	 * If the db version is showing something other that what we've got now, bump it to current.