Code Duplication    Length = 13-13 lines in 2 locations

Ajax/semantic/html/collections/HtmlTable.php 1 location

@@ 181-193 (lines=13) @@
178
		return $this->colAlign($colIndex, "colLeft");
179
	}
180
181
	private function colAlign($colIndex, $function) {
182
		if (\is_array($colIndex)) {
183
			foreach ( $colIndex as $cIndex ) {
184
				$this->colAlign($cIndex, $function);
185
			}
186
		} else {
187
			if ($this->hasPart("thead")) {
188
				$this->getHeader()->$function($colIndex);
189
			}
190
			$this->getBody()->$function($colIndex);
191
		}
192
		return $this;
193
	}
194
195
	public function setCelled() {
196
		return $this->addToProperty("class", "celled");

Ajax/semantic/html/collections/table/HtmlTable.php 1 location

@@ 191-203 (lines=13) @@
188
		return $this->colAlign($colIndex, "colLeft");
189
	}
190
191
	private function colAlign($colIndex, $function) {
192
		if (\is_array($colIndex)) {
193
			foreach ( $colIndex as $cIndex ) {
194
				$this->colAlign($cIndex, $function);
195
			}
196
		} else {
197
			if ($this->hasPart("thead")) {
198
				$this->getHeader()->$function($colIndex);
199
			}
200
			$this->getBody()->$function($colIndex);
201
		}
202
		return $this;
203
	}
204
205
	public function conditionalCellFormat($callback, $format) {
206
		$this->getBody()->conditionalCellFormat($callback, $format);