Code Duplication    Length = 7-7 lines in 2 locations

lib/private/legacy/util.php 1 location

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

lib/private/legacy/template.php 1 location

@@ 187-193 (lines=7) @@
184
	 * @param string $text the text content for the element. If $text is null then the
185
	 * element will be written as empty element. So use "" to get a closing tag.
186
	 */
187
	public function addHeader($tag, $attributes, $text=null) {
188
		$this->headers[]= array(
189
			'tag' => $tag,
190
			'attributes' => $attributes,
191
			'text' => $text
192
		);
193
	}
194
195
	/**
196
	 * Process the template