Completed
Push — add/legacy-files ( 4cc789...bef25d )
by
unknown
157:43 queued 148:20
created

JetpackTracking::record_user_event()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
use Automattic\Jetpack\Tracking;
4
5
class JetpackTracking {
6
7
	static function enqueue_tracks_scripts() {
8
		_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Tracking' );
9
10
		$tracking = new Tracking();
11
		return $tracking->enqueue_tracks_scripts();
12
	}
13
14
	static function record_user_event( $event_type, $data = array(), $user = null ) {
15
		_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Tracking' );
16
17
		$tracking = new Tracking();
18
		return $tracking->record_user_event( $event_type, $data, $user );
19
	}
20
21
}
22