Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5263-5274 (lines=12) @@
5260
	 * @param Array $properties
5261
	 * @return Array amended properties.
5262
	 */
5263
	public static function filter_register_request_body( $properties ) {
5264
		$tracking        = new Tracking();
5265
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5266
5267
		return array_merge(
5268
			$properties,
5269
			array(
5270
				'_ui' => $tracks_identity['_ui'],
5271
				'_ut' => $tracks_identity['_ut'],
5272
			)
5273
		);
5274
	}
5275
5276
	/**
5277
	 * Filters the token request body to include tracking properties.
@@ 5282-5293 (lines=12) @@
5279
	 * @param Array $properties
5280
	 * @return Array amended properties.
5281
	 */
5282
	public static function filter_token_request_body( $properties ) {
5283
		$tracking        = new Tracking();
5284
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5285
5286
		return array_merge(
5287
			$properties,
5288
			array(
5289
				'_ui' => $tracks_identity['_ui'],
5290
				'_ut' => $tracks_identity['_ut'],
5291
			)
5292
		);
5293
	}
5294
5295
	/**
5296
	 * If the db version is showing something other that what we've got now, bump it to current.