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

Jetpack_Sync_Settings::__callStatic()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
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