Code Duplication    Length = 7-7 lines in 2 locations

lib/private/template.php 1 location

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

lib/private/util.php 1 location

@@ 564-570 (lines=7) @@
561
	 * @param array $attributes array of attributes for the element
562
	 * @param string $text the text content for the element
563
	 */
564
	public static function addHeader($tag, $attributes, $text=null) {
565
		self::$headers[] = array(
566
			'tag' => $tag,
567
			'attributes' => $attributes,
568
			'text' => $text
569
		);
570
	}
571
572
	/**
573
	 * formats a timestamp in the "right" way