Code Duplication    Length = 9-9 lines in 2 locations

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

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

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