Code Duplication    Length = 6-7 lines in 2 locations

Ajax/Jquery.php 1 location

@@ 79-85 (lines=7) @@
76
	 * @param boolean $cdata a CDATA section should be added
77
	 * @return string
78
	 */
79
	public function inline($script, $cdata=TRUE) {
80
		$str=$this->_open_script();
81
		$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n";
82
		$str.=$this->_close_script();
83
84
		return $str;
85
	}
86
87
	// --------------------------------------------------------------------
88

Ajax/JsUtils.php 1 location

@@ 698-703 (lines=6) @@
695
	 * @param boolean $cdata If a CDATA section should be added
696
	 * @return string
697
	 */
698
	public function inline($script, $cdata=TRUE) {
699
		$str=$this->_open_script();
700
		$str.=($cdata) ? "\n// <![CDATA[\n{$script}\n// ]]>\n" : "\n{$script}\n";
701
		$str.=$this->_close_script();
702
		return $str;
703
	}
704
	// --------------------------------------------------------------------
705
	/**
706
	 * Outputs an opening <script>