Code Duplication    Length = 12-12 lines in 2 locations

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

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