Code Duplication    Length = 9-9 lines in 2 locations

types/post.php 1 location

@@ 76-84 (lines=9) @@
73
		}
74
75
		// Create test posts
76
		for( $i = 0; $i < $num; $i++ ){
77
78
			$return = $this->create_test_object( $slug, $supports, $metaboxes );
79
80
			if ( $echo === true ){
81
				echo \json_encode( $return );
82
			}
83
84
		}
85
86
	}
87

types/term.php 1 location

@@ 47-55 (lines=9) @@
44
		}
45
46
		// Create test terms
47
		for( $i = 0; $i < $num; $i++ ){
48
49
			$return = $this->create_test_object( $slug );
50
51
			if ( $echo === true ){
52
				echo \json_encode( $return );
53
			}
54
55
		}
56
57
	}
58