Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5519-5530 (lines=12) @@
5516
	 * @param array $properties
5517
	 * @return array amended properties.
5518
	 */
5519
	public static function filter_register_request_body( $properties ) {
5520
		$tracking        = new Tracking();
5521
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5522
5523
		return array_merge(
5524
			$properties,
5525
			array(
5526
				'_ui' => $tracks_identity['_ui'],
5527
				'_ut' => $tracks_identity['_ut'],
5528
			)
5529
		);
5530
	}
5531
5532
	/**
5533
	 * Filters the token request body to include tracking properties.
@@ 5538-5549 (lines=12) @@
5535
	 * @param array $properties
5536
	 * @return array amended properties.
5537
	 */
5538
	public static function filter_token_request_body( $properties ) {
5539
		$tracking        = new Tracking();
5540
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5541
5542
		return array_merge(
5543
			$properties,
5544
			array(
5545
				'_ui' => $tracks_identity['_ui'],
5546
				'_ut' => $tracks_identity['_ut'],
5547
			)
5548
		);
5549
	}
5550
5551
	/**
5552
	 * If the db version is showing something other that what we've got now, bump it to current.