Code Duplication    Length = 12-12 lines in 2 locations

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

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