Code Duplication    Length = 9-9 lines in 2 locations

includes/class-create-term.php 1 location

@@ 41-49 (lines=9) @@
38
		}
39
40
		// Create test terms
41
		for( $i = 0; $i < $num; $i++ ){
42
43
			$return = $this->create_test_object( $slug );
44
45
			if ( $echo === true ){
46
				echo \json_encode( $return );
47
			}
48
49
		}
50
51
	}
52

includes/class-create-post.php 1 location

@@ 66-74 (lines=9) @@
63
		}
64
65
		// Create test posts
66
		for( $i = 0; $i < $num; $i++ ){
67
68
			$return = $this->create_test_object( $slug, $supports, $metaboxes );
69
70
			if ( $echo === true ){
71
				echo \json_encode( $return );
72
			}
73
74
		}
75
76
	}
77