Code Duplication    Length = 5-5 lines in 2 locations

includes/export/XmlDumpWriter.php 2 locations

@@ 220-224 (lines=5) @@
217
		if ( isset( $row->rev_minor_edit ) && $row->rev_minor_edit ) {
218
			$out .= "      <minor/>\n";
219
		}
220
		if ( isset( $row->rev_deleted ) && ( $row->rev_deleted & Revision::DELETED_COMMENT ) ) {
221
			$out .= "      " . Xml::element( 'comment', [ 'deleted' => 'deleted' ] ) . "\n";
222
		} elseif ( $row->rev_comment != '' ) {
223
			$out .= "      " . Xml::elementClean( 'comment', [], strval( $row->rev_comment ) ) . "\n";
224
		}
225
226
		if ( isset( $row->rev_content_model ) && !is_null( $row->rev_content_model ) ) {
227
			$content_model = strval( $row->rev_content_model );
@@ 300-304 (lines=5) @@
297
			$out .= $this->writeContributor( $row->log_user, $row->user_name, "    " );
298
		}
299
300
		if ( $row->log_deleted & LogPage::DELETED_COMMENT ) {
301
			$out .= "    " . Xml::element( 'comment', [ 'deleted' => 'deleted' ] ) . "\n";
302
		} elseif ( $row->log_comment != '' ) {
303
			$out .= "    " . Xml::elementClean( 'comment', null, strval( $row->log_comment ) ) . "\n";
304
		}
305
306
		$out .= "    " . Xml::element( 'type', null, strval( $row->log_type ) ) . "\n";
307
		$out .= "    " . Xml::element( 'action', null, strval( $row->log_action ) ) . "\n";