Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 1523-1534 (lines=12) @@
1520
	 * Renders the openning tag for the datagrid control which will render table caption if present.
1521
	 * @param THtmlWriter $writer the writer used for the rendering purpose
1522
	 */
1523
	public function renderBeginTag($writer)
1524
	{
1525
		parent::renderBeginTag($writer);
1526
		if (($caption = $this->getCaption()) !== '') {
1527
			if (($align = $this->getCaptionAlign()) !== TTableCaptionAlign::NotSet) {
1528
				$writer->addAttribute('align', strtolower($align));
1529
			}
1530
			$writer->renderBeginTag('caption');
1531
			$writer->write($caption);
1532
			$writer->renderEndTag();
1533
		}
1534
	}
1535
1536
	/**
1537
	 * Renders the datagrid.

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

@@ 274-285 (lines=12) @@
271
	 * Renders the openning tag for the table control which will render table caption if present.
272
	 * @param THtmlWriter $writer the writer used for the rendering purpose
273
	 */
274
	public function renderBeginTag($writer)
275
	{
276
		parent::renderBeginTag($writer);
277
		if (($caption = $this->getCaption()) !== '') {
278
			if (($align = $this->getCaptionAlign()) !== TTableCaptionAlign::NotSet) {
279
				$writer->addAttribute('align', strtolower($align));
280
			}
281
			$writer->renderBeginTag('caption');
282
			$writer->write($caption);
283
			$writer->renderEndTag();
284
		}
285
	}
286
287
	/**
288
	 * Renders body contents of the table.