Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/template.php 1 location

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

lib/private/legacy/util.php 1 location

@@ 669-675 (lines=7) @@
666
	 * @param array $attributes array of attributes for the element
667
	 * @param string $text the text content for the element
668
	 */
669
	public static function addHeader($tag, $attributes, $text=null) {
670
		self::$headers[] = [
671
			'tag' => $tag,
672
			'attributes' => $attributes,
673
			'text' => $text
674
		];
675
	}
676
677
	/**
678
	 * formats a timestamp in the "right" way