Code Duplication    Length = 8-8 lines in 2 locations

framework/Web/UI/TPage.php 2 locations

@@ 689-696 (lines=8) @@
686
		$this->raiseEvent('OnPreRenderComplete', $this, $param);
687
		$cs = $this->getClientScript();
688
		$theme = $this->getTheme();
689
		if ($theme instanceof ITheme) {
690
			foreach ($theme->getStyleSheetFiles() as $url) {
691
				$cs->registerStyleSheetFile($url, $url, $this->getCssMediaType($url));
692
			}
693
			foreach ($theme->getJavaScriptFiles() as $url) {
694
				$cs->registerHeadScriptFile($url, $url);
695
			}
696
		}
697
		$styleSheet = $this->getStyleSheetTheme();
698
		if ($styleSheet instanceof ITheme) {
699
			foreach ($styleSheet->getStyleSheetFiles() as $url) {
@@ 698-705 (lines=8) @@
695
			}
696
		}
697
		$styleSheet = $this->getStyleSheetTheme();
698
		if ($styleSheet instanceof ITheme) {
699
			foreach ($styleSheet->getStyleSheetFiles() as $url) {
700
				$cs->registerStyleSheetFile($url, $url, $this->getCssMediaType($url));
701
			}
702
			foreach ($styleSheet->getJavaScriptFiles() as $url) {
703
				$cs->registerHeadScriptFile($url, $url);
704
			}
705
		}
706
707
		if ($cs->getRequiresHead() && $this->getHead() === null) {
708
			throw new TConfigurationException('page_head_required');