Code Duplication    Length = 7-7 lines in 2 locations

lib/private/util.php 1 location

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

lib/private/template.php 1 location

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