Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 1462-1467 (lines=6) @@
1459
			$items->add($this->createItemWithDataInternal($itemIndex, $itemType, $dataItem));
1460
			$itemIndex++;
1461
		}
1462
		if ($itemIndex > 0) {
1463
			$this->_footer = $this->createItemWithDataInternal(-1, TListItemType::Footer, null);
1464
		} else {
1465
			$this->createEmptyContent();
1466
			$this->dataBindChildren();
1467
		}
1468
		$this->setViewState('ItemCount', $itemIndex, 0);
1469
	}
1470

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

@@ 679-684 (lines=6) @@
676
			$items->add($this->createItemWithDataInternal($itemIndex, $itemType, $dataItem));
677
			$itemIndex++;
678
		}
679
		if ($itemIndex > 0) {
680
			$this->_footer = $this->createItemWithDataInternal(-1, TListItemType::Footer, null);
681
		} else {
682
			$this->createEmptyContent();
683
			$this->dataBindChildren();
684
		}
685
		$this->setViewState('ItemCount', $itemIndex, 0);
686
	}
687