Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/post.php 2 locations

@@ 3163-3165 (lines=3) @@
3160
	if ( 'attachment' !== $post_type ) {
3161
		if ( 'publish' == $post_status ) {
3162
			$now = gmdate('Y-m-d H:i:59');
3163
			if ( mysql2date('U', $post_date_gmt, false) > mysql2date('U', $now, false) ) {
3164
				$post_status = 'future';
3165
			}
3166
		} elseif ( 'future' == $post_status ) {
3167
			$now = gmdate('Y-m-d H:i:59');
3168
			if ( mysql2date('U', $post_date_gmt, false) <= mysql2date('U', $now, false) ) {
@@ 3168-3170 (lines=3) @@
3165
			}
3166
		} elseif ( 'future' == $post_status ) {
3167
			$now = gmdate('Y-m-d H:i:59');
3168
			if ( mysql2date('U', $post_date_gmt, false) <= mysql2date('U', $now, false) ) {
3169
				$post_status = 'publish';
3170
			}
3171
		}
3172
	}
3173