Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 1309-1313 (lines=5) @@
1306
		}
1307
1308
		// apply header style if any
1309
		if ($this->_header !== null && $this->_header instanceof IStyleable) {
1310
			if ($headerStyle = $this->getViewState('HeaderStyle', null)) {
1311
				$this->_header->getStyle()->mergeWith($headerStyle);
1312
			}
1313
		}
1314
1315
		// apply footer style if any
1316
		if ($this->_footer !== null && $this->_footer instanceof IStyleable) {
@@ 1316-1320 (lines=5) @@
1313
		}
1314
1315
		// apply footer style if any
1316
		if ($this->_footer !== null && $this->_footer instanceof IStyleable) {
1317
			if ($footerStyle = $this->getViewState('FooterStyle', null)) {
1318
				$this->_footer->getStyle()->mergeWith($footerStyle);
1319
			}
1320
		}
1321
1322
		$selectedIndex = $this->getSelectedItemIndex();
1323
		$editIndex = $this->getEditItemIndex();