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

@@ 674-680 (lines=7) @@
671
	 * @param array $attributes array of attributes for the element
672
	 * @param string $text the text content for the element
673
	 */
674
	public static function addHeader($tag, $attributes, $text=null) {
675
		self::$headers[] = array(
676
			'tag' => $tag,
677
			'attributes' => $attributes,
678
			'text' => $text
679
		);
680
	}
681
682
	/**
683
	 * formats a timestamp in the "right" way