Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

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