Code Duplication    Length = 7-7 lines in 3 locations

Ajax/semantic/html/content/HtmlGridRow.php 1 location

@@ 47-53 (lines=7) @@
44
	 * @param int $width
45
	 * @return \Ajax\semantic\html\content\HtmlGridRow
46
	 */
47
	public function setWidth($width){
48
		if(\is_int($width)){
49
			$width=Wide::getConstants()["W".$width];
50
		}
51
		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
52
		return $this->addToPropertyCtrl("class", "column",array("column"));
53
	}
54
55
	/**
56
	 * return the col at $index

Ajax/semantic/html/content/HtmlGridCol.php 1 location

@@ 32-38 (lines=7) @@
29
	 * @param int $width
30
	 * @return \Ajax\semantic\html\content\HtmlGridCol
31
	 */
32
	public function setWidth($width) {
33
		if (\is_int($width)) {
34
			$width=Wide::getConstants()["W" . $width];
35
		}
36
		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
37
		return $this->addToPropertyCtrl("class", "wide", array ("wide" ));
38
	}
39
40
	public function setValue($value) {
41
		$this->content=$value;

Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location

@@ 202-208 (lines=7) @@
199
	 * @param int $width
200
	 * @return \Ajax\semantic\html\collections\menus\HtmlMenu
201
	 */
202
	public function setWidth($width) {
203
		if (\is_int($width)) {
204
			$width=Wide::getConstants()["W" . $width];
205
		}
206
		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
207
		return $this->addToPropertyCtrl("class", "item", array ("item" ));
208
	}
209
210
	public function addImage($identifier, $src="", $alt="") {
211
		return $this->addItem(new HtmlImg($identifier, $src, $alt));