Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5427-5438 (lines=12) @@
5424
	 * @param array $properties
5425
	 * @return array amended properties.
5426
	 */
5427
	public static function filter_register_request_body( $properties ) {
5428
		$tracking        = new Tracking();
5429
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5430
5431
		return array_merge(
5432
			$properties,
5433
			array(
5434
				'_ui' => $tracks_identity['_ui'],
5435
				'_ut' => $tracks_identity['_ut'],
5436
			)
5437
		);
5438
	}
5439
5440
	/**
5441
	 * Filters the token request body to include tracking properties.
@@ 5446-5457 (lines=12) @@
5443
	 * @param array $properties
5444
	 * @return array amended properties.
5445
	 */
5446
	public static function filter_token_request_body( $properties ) {
5447
		$tracking        = new Tracking();
5448
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5449
5450
		return array_merge(
5451
			$properties,
5452
			array(
5453
				'_ui' => $tracks_identity['_ui'],
5454
				'_ut' => $tracks_identity['_ut'],
5455
			)
5456
		);
5457
	}
5458
5459
	/**
5460
	 * If the db version is showing something other that what we've got now, bump it to current.