Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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