Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5483-5494 (lines=12) @@
5480
	 * @param array $properties
5481
	 * @return array amended properties.
5482
	 */
5483
	public static function filter_register_request_body( $properties ) {
5484
		$tracking        = new Tracking();
5485
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5486
5487
		return array_merge(
5488
			$properties,
5489
			array(
5490
				'_ui' => $tracks_identity['_ui'],
5491
				'_ut' => $tracks_identity['_ut'],
5492
			)
5493
		);
5494
	}
5495
5496
	/**
5497
	 * Filters the token request body to include tracking properties.
@@ 5502-5513 (lines=12) @@
5499
	 * @param array $properties
5500
	 * @return array amended properties.
5501
	 */
5502
	public static function filter_token_request_body( $properties ) {
5503
		$tracking        = new Tracking();
5504
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5505
5506
		return array_merge(
5507
			$properties,
5508
			array(
5509
				'_ui' => $tracks_identity['_ui'],
5510
				'_ut' => $tracks_identity['_ut'],
5511
			)
5512
		);
5513
	}
5514
5515
	/**
5516
	 * If the db version is showing something other that what we've got now, bump it to current.