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

@@ 658-664 (lines=7) @@
655
	 * @param array $attributes array of attributes for the element
656
	 * @param string $text the text content for the element
657
	 */
658
	public static function addHeader($tag, $attributes, $text=null) {
659
		self::$headers[] = array(
660
			'tag' => $tag,
661
			'attributes' => $attributes,
662
			'text' => $text
663
		);
664
	}
665
666
	/**
667
	 * formats a timestamp in the "right" way