Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5497-5508 (lines=12) @@
5494
	 * @param array $properties
5495
	 * @return array amended properties.
5496
	 */
5497
	public static function filter_register_request_body( $properties ) {
5498
		$tracking        = new Tracking();
5499
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5500
5501
		return array_merge(
5502
			$properties,
5503
			array(
5504
				'_ui' => $tracks_identity['_ui'],
5505
				'_ut' => $tracks_identity['_ut'],
5506
			)
5507
		);
5508
	}
5509
5510
	/**
5511
	 * Filters the token request body to include tracking properties.
@@ 5516-5527 (lines=12) @@
5513
	 * @param array $properties
5514
	 * @return array amended properties.
5515
	 */
5516
	public static function filter_token_request_body( $properties ) {
5517
		$tracking        = new Tracking();
5518
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5519
5520
		return array_merge(
5521
			$properties,
5522
			array(
5523
				'_ui' => $tracks_identity['_ui'],
5524
				'_ut' => $tracks_identity['_ut'],
5525
			)
5526
		);
5527
	}
5528
5529
	/**
5530
	 * If the db version is showing something other that what we've got now, bump it to current.