Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

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