Completed
Push — add/legacy-class.jetpack-sync-... ( baba98 )
by
unknown
103:03 queued 94:44
created

Jetpack_Sync_Settings   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __callStatic() 0 7 2
1
<?php
2
3
/**
4
 * Class Jetpack_Sync_Settings
5
 *
6
 * @deprecated Use Automattic\Jetpack\Sync\Settings
7
 */
8
class Jetpack_Sync_Settings extends Automattic\Jetpack\Sync\Settings {
9
10
	public function __callStatic( $method, $args ) {
11
		if ( method_exists( parent, $method ) ) {
12
			_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Settings' );
13
			call_user_func_array( [ parent, $method ], $args );
14
		}
15
		throw new Exception( "Method doesn't exist" );
16
	}
17
18
}
19