Code Duplication    Length = 12-12 lines in 2 locations

projects/packages/connection/src/class-utils.php 1 location

@@ 88-99 (lines=12) @@
85
	 * @param array $properties Already prepared tracking properties.
86
	 * @return array amended properties.
87
	 */
88
	public static function filter_register_request_body( $properties ) {
89
		$tracking        = new Tracking();
90
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
91
92
		return array_merge(
93
			$properties,
94
			array(
95
				'_ui' => $tracks_identity['_ui'],
96
				'_ut' => $tracks_identity['_ut'],
97
			)
98
		);
99
	}
100
101
}
102

projects/plugins/jetpack/class.jetpack.php 1 location

@@ 5563-5574 (lines=12) @@
5560
	 * @param array $properties
5561
	 * @return array amended properties.
5562
	 */
5563
	public static function filter_token_request_body( $properties ) {
5564
		$tracking        = new Tracking();
5565
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5566
5567
		return array_merge(
5568
			$properties,
5569
			array(
5570
				'_ui' => $tracks_identity['_ui'],
5571
				'_ut' => $tracks_identity['_ut'],
5572
			)
5573
		);
5574
	}
5575
5576
	/**
5577
	 * If the db version is showing something other that what we've got now, bump it to current.