Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5389-5400 (lines=12) @@
5386
	 * @param array $properties
5387
	 * @return array amended properties.
5388
	 */
5389
	public static function filter_register_request_body( $properties ) {
5390
		$tracking        = new Tracking();
5391
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5392
5393
		return array_merge(
5394
			$properties,
5395
			array(
5396
				'_ui' => $tracks_identity['_ui'],
5397
				'_ut' => $tracks_identity['_ut'],
5398
			)
5399
		);
5400
	}
5401
5402
	/**
5403
	 * Filters the token request body to include tracking properties.
@@ 5408-5419 (lines=12) @@
5405
	 * @param array $properties
5406
	 * @return array amended properties.
5407
	 */
5408
	public static function filter_token_request_body( $properties ) {
5409
		$tracking        = new Tracking();
5410
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5411
5412
		return array_merge(
5413
			$properties,
5414
			array(
5415
				'_ui' => $tracks_identity['_ui'],
5416
				'_ut' => $tracks_identity['_ut'],
5417
			)
5418
		);
5419
	}
5420
5421
	/**
5422
	 * If the db version is showing something other that what we've got now, bump it to current.