Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5403-5414 (lines=12) @@
5400
	 * @param array $properties
5401
	 * @return array amended properties.
5402
	 */
5403
	public static function filter_register_request_body( $properties ) {
5404
		$tracking        = new Tracking();
5405
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5406
5407
		return array_merge(
5408
			$properties,
5409
			array(
5410
				'_ui' => $tracks_identity['_ui'],
5411
				'_ut' => $tracks_identity['_ut'],
5412
			)
5413
		);
5414
	}
5415
5416
	/**
5417
	 * Filters the token request body to include tracking properties.
@@ 5422-5433 (lines=12) @@
5419
	 * @param array $properties
5420
	 * @return array amended properties.
5421
	 */
5422
	public static function filter_token_request_body( $properties ) {
5423
		$tracking        = new Tracking();
5424
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5425
5426
		return array_merge(
5427
			$properties,
5428
			array(
5429
				'_ui' => $tracks_identity['_ui'],
5430
				'_ut' => $tracks_identity['_ut'],
5431
			)
5432
		);
5433
	}
5434
5435
	/**
5436
	 * If the db version is showing something other that what we've got now, bump it to current.