Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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