Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

@@ 673-679 (lines=7) @@
670
	 * @param array $attributes array of attributes for the element
671
	 * @param string $text the text content for the element
672
	 */
673
	public static function addHeader($tag, $attributes, $text=null) {
674
		self::$headers[] = array(
675
			'tag' => $tag,
676
			'attributes' => $attributes,
677
			'text' => $text
678
		);
679
	}
680
681
	/**
682
	 * check if the current server configuration is suitable for ownCloud