Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/util.php 1 location

@@ 691-697 (lines=7) @@
688
	 * @param array $attributes array of attributes for the element
689
	 * @param string $text the text content for the element
690
	 */
691
	public static function addHeader($tag, $attributes, $text=null) {
692
		self::$headers[] = array(
693
			'tag' => $tag,
694
			'attributes' => $attributes,
695
			'text' => $text
696
		);
697
	}
698
699
	/**
700
	 * check if the current server configuration is suitable for ownCloud

lib/private/legacy/template.php 1 location

@@ 191-197 (lines=7) @@
188
	 * @param string $text the text content for the element. If $text is null then the
189
	 * element will be written as empty element. So use "" to get a closing tag.
190
	 */
191
	public function addHeader($tag, $attributes, $text=null) {
192
		$this->headers[]= array(
193
			'tag' => $tag,
194
			'attributes' => $attributes,
195
			'text' => $text
196
		);
197
	}
198
199
	/**
200
	 * Process the template