Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

@@ 643-649 (lines=7) @@
640
	 * @param array $attributes array of attributes for the element
641
	 * @param string $text the text content for the element
642
	 */
643
	public static function addHeader($tag, $attributes, $text=null) {
644
		self::$headers[] = [
645
			'tag' => $tag,
646
			'attributes' => $attributes,
647
			'text' => $text
648
		];
649
	}
650
651
	/**
652
	 * formats a timestamp in the "right" way