Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 1302-1312 (lines=11) @@
1299
			}
1300
		}
1301
1302
		if ($startPageIndex > 1) {
1303
			if (($text = $style->getFirstPageText()) !== '') {
1304
				$button = $this->createPagerButton($pager, $buttonType, true, $text, self::CMD_PAGE, self::CMD_PAGE_FIRST);
1305
				$controls->add($button);
1306
				$controls->add("\n");
1307
			}
1308
			$prevPageIndex = $startPageIndex - 1;
1309
			$button = $this->createPagerButton($pager, $buttonType, true, $style->getPrevPageText(), self::CMD_PAGE, "$prevPageIndex");
1310
			$controls->add($button);
1311
			$controls->add("\n");
1312
		}
1313
1314
		for ($i = $startPageIndex;$i <= $endPageIndex;++$i) {
1315
			if ($i === $pageIndex) {
@@ 1327-1337 (lines=11) @@
1324
			}
1325
		}
1326
1327
		if ($pageCount > $endPageIndex) {
1328
			$controls->add("\n");
1329
			$nextPageIndex = $endPageIndex + 1;
1330
			$button = $this->createPagerButton($pager, $buttonType, true, $style->getNextPageText(), self::CMD_PAGE, "$nextPageIndex");
1331
			$controls->add($button);
1332
			if (($text = $style->getLastPageText()) !== '') {
1333
				$controls->add("\n");
1334
				$button = $this->createPagerButton($pager, $buttonType, true, $text, self::CMD_PAGE, self::CMD_PAGE_LAST);
1335
				$controls->add($button);
1336
			}
1337
		}
1338
	}
1339
1340
	/**