Code Duplication    Length = 8-8 lines in 2 locations

framework/Web/UI/WebControls/TDataGrid.php 2 locations

@@ 1418-1425 (lines=8) @@
1415
			}
1416
			$itemType = $item->getItemType();
1417
			switch ($itemType) {
1418
				case TListItemType::Header:
1419
					if ($headerStyle) {
1420
						$item->getStyle()->mergeWith($headerStyle);
1421
					}
1422
					if (!$this->getShowHeader()) {
1423
						$item->setVisible(false);
1424
					}
1425
					break;
1426
				case TListItemType::Footer:
1427
					if ($footerStyle) {
1428
						$item->getStyle()->mergeWith($footerStyle);
@@ 1426-1433 (lines=8) @@
1423
						$item->setVisible(false);
1424
					}
1425
					break;
1426
				case TListItemType::Footer:
1427
					if ($footerStyle) {
1428
						$item->getStyle()->mergeWith($footerStyle);
1429
					}
1430
					if (!$this->getShowFooter()) {
1431
						$item->setVisible(false);
1432
					}
1433
					break;
1434
				case TListItemType::Separator:
1435
					if ($separatorStyle) {
1436
						$item->getStyle()->mergeWith($separatorStyle);