Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

@@ 209-215 (lines=7) @@
206
	 * @param string $text the text content for the element. If $text is null then the
207
	 * element will be written as empty element. So use "" to get a closing tag.
208
	 */
209
	public function addHeader($tag, $attributes, $text=null) {
210
		$this->headers[]= array(
211
			'tag' => $tag,
212
			'attributes' => $attributes,
213
			'text' => $text
214
		);
215
	}
216
217
	/**
218
	 * Process the template

lib/private/legacy/util.php 1 location

@@ 600-606 (lines=7) @@
597
	 * @param array $attributes array of attributes for the element
598
	 * @param string $text the text content for the element
599
	 */
600
	public static function addHeader($tag, $attributes, $text=null) {
601
		self::$headers[] = array(
602
			'tag' => $tag,
603
			'attributes' => $attributes,
604
			'text' => $text
605
		);
606
	}
607
608
	/**
609
	 * formats a timestamp in the "right" way