Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5249-5260 (lines=12) @@
5246
	 * @param Array $properties
5247
	 * @return Array amended properties.
5248
	 */
5249
	public static function filter_register_request_body( $properties ) {
5250
		$tracking        = new Tracking();
5251
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5252
5253
		return array_merge(
5254
			$properties,
5255
			array(
5256
				'_ui' => $tracks_identity['_ui'],
5257
				'_ut' => $tracks_identity['_ut'],
5258
			)
5259
		);
5260
	}
5261
5262
	/**
5263
	 * Filters the token request body to include tracking properties.
@@ 5268-5279 (lines=12) @@
5265
	 * @param Array $properties
5266
	 * @return Array amended properties.
5267
	 */
5268
	public static function filter_token_request_body( $properties ) {
5269
		$tracking        = new Tracking();
5270
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5271
5272
		return array_merge(
5273
			$properties,
5274
			array(
5275
				'_ui' => $tracks_identity['_ui'],
5276
				'_ut' => $tracks_identity['_ut'],
5277
			)
5278
		);
5279
	}
5280
5281
	/**
5282
	 * If the db version is showing something other that what we've got now, bump it to current.