Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/util.php 1 location

@@ 580-586 (lines=7) @@
577
	 * @param array $attributes array of attributes for the element
578
	 * @param string $text the text content for the element
579
	 */
580
	public static function addHeader($tag, $attributes, $text=null) {
581
		self::$headers[] = [
582
			'tag' => $tag,
583
			'attributes' => $attributes,
584
			'text' => $text
585
		];
586
	}
587
588
	/**
589
	 * formats a timestamp in the "right" way

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