Code Duplication    Length = 9-9 lines in 2 locations

includes/Xml.php 2 locations

@@ 826-834 (lines=9) @@
823
			$s .= Xml::closeElement( 'thead' );
824
		}
825
826
		foreach ( $rows as $id => $row ) {
827
			$attribs = [];
828
829
			if ( is_string( $id ) ) {
830
				$attribs['id'] = $id;
831
			}
832
833
			$s .= Xml::buildTableRow( $attribs, $row );
834
		}
835
836
		$s .= Xml::closeElement( 'table' );
837
@@ 850-858 (lines=9) @@
847
	public static function buildTableRow( $attribs, $cells ) {
848
		$s = Xml::openElement( 'tr', $attribs );
849
850
		foreach ( $cells as $id => $cell ) {
851
			$attribs = [];
852
853
			if ( is_string( $id ) ) {
854
				$attribs['id'] = $id;
855
			}
856
857
			$s .= Xml::element( 'td', $attribs, $cell );
858
		}
859
860
		$s .= Xml::closeElement( 'tr' );
861