Completed
Push — update/deprecate-tracks-client... ( 015169 )
by
unknown
09:09
created

client.php ➔ jetpack_tracks_record_event()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @deprecated 7.5.0 use Automattic\Jetpack\Tracking->tracks_record_event_raw instead
5
 */
6
function jetpack_tracks_record_event_raw( $event ) {
7
	$tracking = new Automattic\Jetpack\Tracking( 'jetpack', Jetpack::connection() );
8
	return $tracking->jetpack_tracks_record_event_raw( $event );
0 ignored issues
show
Bug introduced by
The method jetpack_tracks_record_event_raw() does not exist on Automattic\Jetpack\Tracking. Did you maybe mean tracks_record_event()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
9
}
10
11
/**
12
 * @deprecated 7.5.0 use Automattic\Jetpack\Tracking->tracks_get_identity instead
13
 */
14
function jetpack_tracks_get_identity( $user_id ) {
15
	$tracking = new Automattic\Jetpack\Tracking( 'jetpack', Jetpack::connection() );
16
	return $tracking->jetpack_tracks_get_identity( $user_id );
0 ignored issues
show
Bug introduced by
The method jetpack_tracks_get_identity() does not exist on Automattic\Jetpack\Tracking. Did you maybe mean tracks_get_identity()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
17
}
18
19
/**
20
 * @deprecated 7.5.0 use Automattic\Jetpack\Tracking->tracks_record_event instead
21
 */
22
function jetpack_tracks_record_event( $user, $event_name, $properties = array(), $event_timestamp_millis = false ) {
23
	$tracking = new Automattic\Jetpack\Tracking( 'jetpack', Jetpack::connection() );
24
	return $tracking->jetpack_tracks_record_event( $user, $event_name, $properties, $event_timestamp_millis );
0 ignored issues
show
Bug introduced by
The method jetpack_tracks_record_event() does not exist on Automattic\Jetpack\Tracking. Did you maybe mean tracks_record_event()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
25
}
26