Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5277-5288 (lines=12) @@
5274
	 * @param Array $properties
5275
	 * @return Array amended properties.
5276
	 */
5277
	public static function filter_register_request_body( $properties ) {
5278
		$tracking        = new Tracking();
5279
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5280
5281
		return array_merge(
5282
			$properties,
5283
			array(
5284
				'_ui' => $tracks_identity['_ui'],
5285
				'_ut' => $tracks_identity['_ut'],
5286
			)
5287
		);
5288
	}
5289
5290
	/**
5291
	 * Filters the token request body to include tracking properties.
@@ 5296-5307 (lines=12) @@
5293
	 * @param Array $properties
5294
	 * @return Array amended properties.
5295
	 */
5296
	public static function filter_token_request_body( $properties ) {
5297
		$tracking        = new Tracking();
5298
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5299
5300
		return array_merge(
5301
			$properties,
5302
			array(
5303
				'_ui' => $tracks_identity['_ui'],
5304
				'_ut' => $tracks_identity['_ut'],
5305
			)
5306
		);
5307
	}
5308
5309
	/**
5310
	 * If the db version is showing something other that what we've got now, bump it to current.