Completed
Push — renovate/glob-7.x ( 697d78...f7fc07 )
by
unknown
18:21 queued 12:01
created

Jetpack_Sync_Modules   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_module() 0 5 1
1
<?php
2
/**
3
 * A compatibility shim for the sync modules class.
4
 *
5
 * @package jetpack-compat
6
 */
7
8
use Automattic\Jetpack\Sync\Modules;
9
10
/**
11
 * Class Jetpack_Sync_Modules
12
 *
13
 * @deprecated Use Automattic\Jetpack\Sync\Modules
14
 */
15
class Jetpack_Sync_Modules {
16
17
	/**
18
	 * Returns the sync module object.
19
	 *
20
	 * @param String $module_name the module name.
21
	 * @return Automattic\Jetpack\Sync\Modules\Module the module object.
22
	 */
23
	public static function get_module( $module_name ) {
24
		_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Modules' );
25
26
		return Modules::get_module( $module_name );
27
	}
28
}
29