Code Duplication    Length = 11-11 lines in 2 locations

app/Report/ReportTcpdf.php 1 location

@@ 116-126 (lines=11) @@
113
	/**
114
	 * PDF Footer -PDF
115
	 */
116
	public function footer() {
117
		foreach ($this->footerElements as $element) {
118
			if (is_object($element)) {
119
				$element->render($this);
120
			} elseif (is_string($element) && $element == 'footnotetexts') {
121
				$this->footnotes();
122
			} elseif (is_string($element) && $element == 'addpage') {
123
				$this->newPage();
124
			}
125
		}
126
	}
127
128
	/**
129
	 * Add an element to the Header -PDF

app/Report/ReportHtml.php 1 location

@@ 184-194 (lines=11) @@
181
	/**
182
	 * Generate the page header
183
	 */
184
	public function runPageHeader() {
185
		foreach ($this->pageHeaderElements as $element) {
186
			if (is_object($element)) {
187
				$element->render($this);
188
			} elseif (is_string($element) && $element == 'footnotetexts') {
189
				$this->footnotes();
190
			} elseif (is_string($element) && $element == 'addpage') {
191
				$this->addPage();
192
			}
193
		}
194
	}
195
196
	/**
197
	 * Generate footnotes