Code Duplication    Length = 9-9 lines in 2 locations

src/wordlift/vocabulary/api/class-reconcile-progress-endpoint.php 1 location

@@ 24-32 (lines=9) @@
21
	}
22
23
24
	public function get_terms_compat( $taxonomy, $args_with_taxonomy_key ) {
25
		global $wp_version;
26
27
		if ( version_compare( $wp_version, '4.5', '<' ) ) {
28
			return get_terms( $taxonomy, $args_with_taxonomy_key );
29
		} else {
30
			return get_terms( $args_with_taxonomy_key );
31
		}
32
	}
33
34
35
	public function progress() {

src/wordlift/vocabulary/data/term-count/class-default-term-count.php 1 location

@@ 43-51 (lines=9) @@
40
41
	}
42
43
	private function get_terms_compat( $taxonomy, $args_with_taxonomy_key ) {
44
		global $wp_version;
45
46
		if ( version_compare( $wp_version, '4.5', '<' ) ) {
47
			return get_terms( $taxonomy, $args_with_taxonomy_key );
48
		} else {
49
			return get_terms( $args_with_taxonomy_key );
50
		}
51
	}
52
53
}
54