Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5428-5439 (lines=12) @@
5425
	 * @param array $properties
5426
	 * @return array amended properties.
5427
	 */
5428
	public static function filter_register_request_body( $properties ) {
5429
		$tracking        = new Tracking();
5430
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5431
5432
		return array_merge(
5433
			$properties,
5434
			array(
5435
				'_ui' => $tracks_identity['_ui'],
5436
				'_ut' => $tracks_identity['_ut'],
5437
			)
5438
		);
5439
	}
5440
5441
	/**
5442
	 * Filters the token request body to include tracking properties.
@@ 5447-5458 (lines=12) @@
5444
	 * @param array $properties
5445
	 * @return array amended properties.
5446
	 */
5447
	public static function filter_token_request_body( $properties ) {
5448
		$tracking        = new Tracking();
5449
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5450
5451
		return array_merge(
5452
			$properties,
5453
			array(
5454
				'_ui' => $tracks_identity['_ui'],
5455
				'_ut' => $tracks_identity['_ut'],
5456
			)
5457
		);
5458
	}
5459
5460
	/**
5461
	 * If the db version is showing something other that what we've got now, bump it to current.