Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

@@ 580-586 (lines=7) @@
577
	 * @param array $attributes array of attributes for the element
578
	 * @param string $text the text content for the element
579
	 */
580
	public static function addHeader($tag, $attributes, $text=null) {
581
		self::$headers[] = array(
582
			'tag' => $tag,
583
			'attributes' => $attributes,
584
			'text' => $text
585
		);
586
	}
587
588
	/**
589
	 * formats a timestamp in the "right" way