Code Duplication    Length = 7-7 lines in 2 locations

framework/Web/UI/WebControls/TDataGrid.php 1 location

@@ 1388-1394 (lines=7) @@
1385
		$itemStyle = $this->getViewState('ItemStyle', null);
1386
1387
		$alternatingItemStyle = $this->getViewState('AlternatingItemStyle', null);
1388
		if ($itemStyle !== null) {
1389
			if ($alternatingItemStyle === null) {
1390
				$alternatingItemStyle = $itemStyle;
1391
			} else {
1392
				$alternatingItemStyle->mergeWith($itemStyle);
1393
			}
1394
		}
1395
1396
		$selectedItemStyle = $this->getViewState('SelectedItemStyle', null);
1397

framework/Web/UI/WebControls/TDataList.php 1 location

@@ 1289-1295 (lines=7) @@
1286
		$itemStyle = $this->getViewState('ItemStyle', null);
1287
1288
		$alternatingItemStyle = $this->getViewState('AlternatingItemStyle', null);
1289
		if ($itemStyle !== null) {
1290
			if ($alternatingItemStyle === null) {
1291
				$alternatingItemStyle = $itemStyle;
1292
			} else {
1293
				$alternatingItemStyle->mergeWith($itemStyle);
1294
			}
1295
		}
1296
1297
		$selectedItemStyle = $this->getViewState('SelectedItemStyle', null);
1298