Code Duplication    Length = 12-12 lines in 2 locations

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

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