Completed
Push — master ( 781bd5...e04e71 )
by Jean-Christophe
03:39
created
Ajax/semantic/html/modules/HtmlSearch.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,12 @@
 block discarded – undo
22 22
 
23 23
 	private function createField($placeholder=NULL, $icon=NULL) {
24 24
 		$field=new HtmlInput($this->identifier);
25
-		if (isset($placeholder) === true)
26
-			$field->setPlaceholder($placeholder);
27
-		if (isset($icon) === true)
28
-			$field->addIcon($icon, Direction::RIGHT);
25
+		if (isset($placeholder) === true) {
26
+					$field->setPlaceholder($placeholder);
27
+		}
28
+		if (isset($icon) === true) {
29
+					$field->addIcon($icon, Direction::RIGHT);
30
+		}
29 31
 		$field->getField()->setClass("prompt");
30 32
 		$this->content["field"]=$field;
31 33
 		return $field;
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@  discard block
 block discarded – undo
8 8
 use Ajax\semantic\html\base\constants\Direction;
9 9
 
10 10
 class HtmlSearch extends HtmlSemDoubleElement {
11
-	private $_elements=array ();
12
-	private $_params=array ();
13
-	private $_searchFields=array ("title" );
11
+	private $_elements=array();
12
+	private $_params=array();
13
+	private $_searchFields=array("title");
14 14
 	private $_local=false;
15 15
 
16 16
 	public function __construct($identifier, $placeholder=NULL, $icon=NULL) {
17
-		parent::__construct("search-" . $identifier, "div", "ui search", array ());
17
+		parent::__construct("search-".$identifier, "div", "ui search", array());
18 18
 		$this->createField($placeholder, $icon);
19 19
 		$this->createResult();
20 20
 		$this->_params["type"]="standard";
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
 
23 23
 	private function createField($placeholder=NULL, $icon=NULL) {
24 24
 		$field=new HtmlInput($this->identifier);
25
-		if (isset($placeholder) === true)
25
+		if (isset($placeholder)===true)
26 26
 			$field->setPlaceholder($placeholder);
27
-		if (isset($icon) === true)
27
+		if (isset($icon)===true)
28 28
 			$field->addIcon($icon, Direction::RIGHT);
29 29
 		$field->getField()->setClass("prompt");
30 30
 		$this->content["field"]=$field;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	}
33 33
 
34 34
 	private function createResult() {
35
-		$this->content["result"]=new HtmlSemDoubleElement("results-" . $this->identifier, "div", "results");
35
+		$this->content["result"]=new HtmlSemDoubleElement("results-".$this->identifier, "div", "results");
36 36
 		return $this->content["result"];
37 37
 	}
38 38
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	}
50 50
 
51 51
 	public function setUrl($url) {
52
-		$this->_params["apiSettings"]="%{url: %quote%" . $url . "%quote%}%";
52
+		$this->_params["apiSettings"]="%{url: %quote%".$url."%quote%}%";
53 53
 		return $this;
54 54
 	}
55 55
 
@@ -72,16 +72,16 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	public function run(JsUtils $js) {
75
-		$this->_params["onSelect"]='%function(result,response){$(%quote%#' . $this->identifier . '%quote%).trigger(%quote%onSelect%quote%, {%quote%result%quote%: result, %quote%response%quote%:response} );}%';
75
+		$this->_params["onSelect"]='%function(result,response){$(%quote%#'.$this->identifier.'%quote%).trigger(%quote%onSelect%quote%, {%quote%result%quote%: result, %quote%response%quote%:response} );}%';
76 76
 		$searchFields=\json_encode($this->_searchFields);
77 77
 		$searchFields=str_ireplace("\"", "%quote%", $searchFields);
78
-		$this->_params["searchFields"]="%" . $searchFields . "%";
79
-		if ($this->_local === true) {
78
+		$this->_params["searchFields"]="%".$searchFields."%";
79
+		if ($this->_local===true) {
80 80
 			$this->_params["source"]="%content%";
81
-			$this->addEvent("beforeExecute", "var content=" . $this->resultsToJson() . ";");
81
+			$this->addEvent("beforeExecute", "var content=".$this->resultsToJson().";");
82 82
 		}
83
-		if (isset($this->_bsComponent) === false) {
84
-			$this->_bsComponent=$js->semantic()->search("#" . $this->identifier, $this->_params);
83
+		if (isset($this->_bsComponent)===false) {
84
+			$this->_bsComponent=$js->semantic()->search("#".$this->identifier, $this->_params);
85 85
 		}
86 86
 		$this->addEventsOnRun($js);
87 87
 		return $this->_bsComponent;
Please login to merge, or discard this patch.
Ajax/semantic/components/search/SearchResults.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 	private $elements;
9 9
 
10 10
 	public function __construct($objects=NULL) {
11
-		$this->elements=array ();
11
+		$this->elements=array();
12 12
 		if (isset($objects)) {
13 13
 			if (\is_array($objects)) {
14 14
 				$this->addResults($objects);
15
-			} else {
15
+			}else {
16 16
 				$this->addResult($objects);
17 17
 			}
18 18
 		}
@@ -23,42 +23,42 @@  discard block
 block discarded – undo
23 23
 			$this->elements[]=$object;
24 24
 			return $this;
25 25
 		}
26
-		if (\is_array($object) === false) {
27
-			$object=[ "title" => $object ];
26
+		if (\is_array($object)===false) {
27
+			$object=["title" => $object];
28 28
 		}
29 29
 		$this->elements[]=new SearchResult($object);
30 30
 		return $this;
31 31
 	}
32 32
 
33 33
 	public function addResults($objects) {
34
-		if (\is_array($objects) === false) {
34
+		if (\is_array($objects)===false) {
35 35
 			return $this->addResult($objects);
36 36
 		}
37
-		if (JArray::dimension($objects) === 1) {
38
-			foreach ( $objects as $object ) {
39
-				$this->addResult([ "title" => $object ]);
37
+		if (JArray::dimension($objects)===1) {
38
+			foreach ($objects as $object) {
39
+				$this->addResult(["title" => $object]);
40 40
 			}
41
-		} else
41
+		}else
42 42
 			$this->elements=\array_merge($this->elements, $objects);
43 43
 		return $this;
44 44
 	}
45 45
 
46 46
 	public function _search($query, $field="title") {
47
-		$result=array ();
48
-		foreach ( $this->elements as $element ) {
47
+		$result=array();
48
+		foreach ($this->elements as $element) {
49 49
 			if ($element instanceof SearchResult) {
50
-				if ($element->search($query, $field) !== false)
50
+				if ($element->search($query, $field)!==false)
51 51
 					$result[]=$element->asArray();
52
-			} else {
52
+			}else {
53 53
 				if (\array_key_exists($field, $element)) {
54 54
 					$value=$element[$field];
55
-					if (\stripos($value, $query) !== false) {
55
+					if (\stripos($value, $query)!==false) {
56 56
 						$result[]=$element;
57 57
 					}
58 58
 				}
59 59
 			}
60 60
 		}
61
-		if (\sizeof($result) > 0) {
61
+		if (\sizeof($result)>0) {
62 62
 			return $result;
63 63
 		}
64 64
 		return false;
@@ -66,13 +66,13 @@  discard block
 block discarded – undo
66 66
 
67 67
 	public function search($query, $field="title") {
68 68
 		$result=$this->_search($query, $field);
69
-		if ($result === false)
69
+		if ($result===false)
70 70
 			$result=NULL;
71 71
 		return new SearchResults($result);
72 72
 	}
73 73
 
74 74
 	public function __toString() {
75
-		$result="\"results\": " . \json_encode($this->elements);
75
+		$result="\"results\": ".\json_encode($this->elements);
76 76
 		return $result;
77 77
 	}
78 78
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	public function getResponse() {
84
-		return "{" . $this . "}";
84
+		return "{".$this."}";
85 85
 	}
86 86
 
87 87
 	/**
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,8 +38,9 @@  discard block
 block discarded – undo
38 38
 			foreach ( $objects as $object ) {
39 39
 				$this->addResult([ "title" => $object ]);
40 40
 			}
41
-		} else
42
-			$this->elements=\array_merge($this->elements, $objects);
41
+		} else {
42
+					$this->elements=\array_merge($this->elements, $objects);
43
+		}
43 44
 		return $this;
44 45
 	}
45 46
 
@@ -47,8 +48,9 @@  discard block
 block discarded – undo
47 48
 		$result=array ();
48 49
 		foreach ( $this->elements as $element ) {
49 50
 			if ($element instanceof SearchResult) {
50
-				if ($element->search($query, $field) !== false)
51
-					$result[]=$element->asArray();
51
+				if ($element->search($query, $field) !== false) {
52
+									$result[]=$element->asArray();
53
+				}
52 54
 			} else {
53 55
 				if (\array_key_exists($field, $element)) {
54 56
 					$value=$element[$field];
@@ -66,8 +68,9 @@  discard block
 block discarded – undo
66 68
 
67 69
 	public function search($query, $field="title") {
68 70
 		$result=$this->_search($query, $field);
69
-		if ($result === false)
70
-			$result=NULL;
71
+		if ($result === false) {
72
+					$result=NULL;
73
+		}
71 74
 		return new SearchResults($result);
72 75
 	}
73 76
 
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticComponentsTrait.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
 		return $this->addComponent(new Accordion($this->js), $attachTo, $params);
59 59
 	}
60 60
 
61
+	/**
62
+	 * @param string $attachTo
63
+	 */
61 64
 	public function sticky($attachTo=NULL, $params=NULL) {
62 65
 		return $this->addComponent(new Sticky($this->js), $attachTo, $params);
63 66
 	}
@@ -66,18 +69,30 @@  discard block
 block discarded – undo
66 69
 		return $this->addComponent(new Checkbox($this->js), $attachTo, $params);
67 70
 	}
68 71
 
72
+	/**
73
+	 * @param string $attachTo
74
+	 */
69 75
 	public function rating($attachTo=NULL, $params=NULL) {
70 76
 		return $this->addComponent(new Rating($this->js), $attachTo, $params);
71 77
 	}
72 78
 
79
+	/**
80
+	 * @param string $attachTo
81
+	 */
73 82
 	public function progress($attachTo=NULL, $params=NULL) {
74 83
 		return $this->addComponent(new Progress($this->js), $attachTo, $params);
75 84
 	}
76 85
 
86
+	/**
87
+	 * @param string $attachTo
88
+	 */
77 89
 	public function search($attachTo=NULL, $params=NULL) {
78 90
 		return $this->addComponent(new Search($this->js), $attachTo, $params);
79 91
 	}
80 92
 
93
+	/**
94
+	 * @param string $attachTo
95
+	 */
81 96
 	public function dimmer($attachTo=NULL, $params=NULL) {
82 97
 		return $this->addComponent(new Dimmer($this->js), $attachTo, $params);
83 98
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlElementsTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
100 100
 	public function htmlIconGroups($identifier, $size="", $icons=array()) {
101 101
 		$group=new HtmlIconGroups($identifier, $size);
102 102
 		if (JArray::isAssociative($icons)) {
103
-			foreach ( $icons as $icon => $size ) {
103
+			foreach ($icons as $icon => $size) {
104 104
 				$group->add($icon, $size);
105 105
 			}
106
-		} else {
107
-			foreach ( $icons as $icon ) {
106
+		}else {
107
+			foreach ($icons as $icon) {
108 108
 				$group->add($icon);
109 109
 			}
110 110
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlDimmer.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class HtmlDimmer extends HtmlSemDoubleElement {
11 11
 	private $_container;
12
-	private $_params=array ();
12
+	private $_params=array();
13 13
 	private $_inverted;
14 14
 
15 15
 	public function __construct($identifier, $content=NULL) {
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 	}
20 20
 
21 21
 	public function setContent($content) {
22
-		$this->content=new HtmlSemDoubleElement("content-" . $this->identifier, "div", "content", new HtmlSemDoubleElement("", "div", "center", $content));
22
+		$this->content=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content", new HtmlSemDoubleElement("", "div", "center", $content));
23 23
 		return $this;
24 24
 	}
25 25
 
26 26
 	public function asIcon($icon, $title, $subHeader=NULL) {
27
-		$header=new HtmlHeader("header-" . $this->identifier);
27
+		$header=new HtmlHeader("header-".$this->identifier);
28 28
 		$header->asIcon($icon, $title, $subHeader);
29
-		if ($this->_inverted === false)
29
+		if ($this->_inverted===false)
30 30
 			$header->setInverted();
31 31
 		return $this->setContent($header);
32 32
 	}
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
 	public function run(JsUtils $js) {
45 45
 		if ($this->_container instanceof HtmlSingleElement)
46
-			$this->_bsComponent=$js->semantic()->dimmer("#" . $this->_container->getIdentifier(), $this->_params);
46
+			$this->_bsComponent=$js->semantic()->dimmer("#".$this->_container->getIdentifier(), $this->_params);
47 47
 		return parent::run($js);
48 48
 	}
49 49
 
50 50
 	public function jsShow() {
51
-		if (isset($this->_container) === true)
52
-			return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");';
51
+		if (isset($this->_container)===true)
52
+			return '$("#.'.$this->_container->getIdentifier().').dimmer("show");';
53 53
 	}
54 54
 
55 55
 	public function setBlurring() {
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@  discard block
 block discarded – undo
26 26
 	public function asIcon($icon, $title, $subHeader=NULL) {
27 27
 		$header=new HtmlHeader("header-" . $this->identifier);
28 28
 		$header->asIcon($icon, $title, $subHeader);
29
-		if ($this->_inverted === false)
30
-			$header->setInverted();
29
+		if ($this->_inverted === false) {
30
+					$header->setInverted();
31
+		}
31 32
 		return $this->setContent($header);
32 33
 	}
33 34
 
@@ -42,14 +43,16 @@  discard block
 block discarded – undo
42 43
 	}
43 44
 
44 45
 	public function run(JsUtils $js) {
45
-		if ($this->_container instanceof HtmlSingleElement)
46
-			$this->_bsComponent=$js->semantic()->dimmer("#" . $this->_container->getIdentifier(), $this->_params);
46
+		if ($this->_container instanceof HtmlSingleElement) {
47
+					$this->_bsComponent=$js->semantic()->dimmer("#" . $this->_container->getIdentifier(), $this->_params);
48
+		}
47 49
 		return parent::run($js);
48 50
 	}
49 51
 
50 52
 	public function jsShow() {
51
-		if (isset($this->_container) === true)
52
-			return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");';
53
+		if (isset($this->_container) === true) {
54
+					return '$("#.' . $this->_container->getIdentifier() . ').dimmer("show");';
55
+		}
53 56
 	}
54 57
 
55 58
 	public function setBlurring() {
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemDoubleElement.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 	}
47 47
 
48 48
 	public function addDimmer($content=NULL) {
49
-		$dimmer=new HtmlDimmer("dimmer-" . $this->identifier, $content);
49
+		$dimmer=new HtmlDimmer("dimmer-".$this->identifier, $content);
50 50
 		$this->addContent($dimmer);
51 51
 		return $dimmer;
52 52
 	}
53 53
 
54 54
 	public function jsShowDimmer($show=true) {
55 55
 		$status="hide";
56
-		if ($show === true)
56
+		if ($show===true)
57 57
 			$status="show";
58
-		return '$("#.' . $this->identifier . ').dimmer("' . $status . '");';
58
+		return '$("#.'.$this->identifier.').dimmer("'.$status.'");';
59 59
 	}
60 60
 
61 61
 	public function compile(JsUtils $js=NULL, View $view=NULL) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	public function run(JsUtils $js) {
68
-		$this->_bsComponent=$js->semantic()->generic("#" . $this->identifier);
68
+		$this->_bsComponent=$js->semantic()->generic("#".$this->identifier);
69 69
 		parent::run($js);
70 70
 		$this->addEventsOnRun($js);
71 71
 		if (isset($this->_popup)) {
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,8 +29,9 @@  discard block
 block discarded – undo
29 29
 	}
30 30
 
31 31
 	public function setPopupAttributes($variation=NULL, $popupEvent=NULL) {
32
-		if (isset($this->_popup))
33
-			$this->_popup->setAttributes($variation, $popupEvent);
32
+		if (isset($this->_popup)) {
33
+					$this->_popup->setAttributes($variation, $popupEvent);
34
+		}
34 35
 	}
35 36
 
36 37
 	public function addPopup($title="", $content="", $variation=NULL, $params=array()) {
@@ -53,14 +54,16 @@  discard block
 block discarded – undo
53 54
 
54 55
 	public function jsShowDimmer($show=true) {
55 56
 		$status="hide";
56
-		if ($show === true)
57
-			$status="show";
57
+		if ($show === true) {
58
+					$status="show";
59
+		}
58 60
 		return '$("#.' . $this->identifier . ').dimmer("' . $status . '");';
59 61
 	}
60 62
 
61 63
 	public function compile(JsUtils $js=NULL, View $view=NULL) {
62
-		if (isset($this->_popup))
63
-			$this->_popup->compile();
64
+		if (isset($this->_popup)) {
65
+					$this->_popup->compile();
66
+		}
64 67
 		return parent::compile($js, $view);
65 68
 	}
66 69
 
Please login to merge, or discard this patch.
Ajax/semantic/html/content/card/HtmlCardHeaderContent.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@  discard block
 block discarded – undo
10 10
 class HtmlCardHeaderContent extends HtmlCardContent {
11 11
 
12 12
 	public function __construct($identifier, $header=NULL, $metas=array(), $description=NULL) {
13
-		parent::__construct($identifier, array ());
13
+		parent::__construct($identifier, array());
14 14
 		if (isset($header)) {
15 15
 			$this->setHeader($header);
16 16
 		}
17 17
 		if (\is_array($metas)) {
18
-			foreach ( $metas as $meta ) {
18
+			foreach ($metas as $meta) {
19 19
 				$this->addMeta($meta);
20 20
 			}
21
-		} else
21
+		}else
22 22
 			$this->addMeta($metas);
23 23
 		if (isset($description)) {
24 24
 			$this->setDescription($description);
@@ -26,11 +26,11 @@  discard block
 block discarded – undo
26 26
 	}
27 27
 
28 28
 	public function setDescription($value) {
29
-		$this->content["description"]=new HtmlSemDoubleElement("description-" . $this->identifier, "div", "description", $value);
29
+		$this->content["description"]=new HtmlSemDoubleElement("description-".$this->identifier, "div", "description", $value);
30 30
 	}
31 31
 
32 32
 	public function setHeader($value) {
33
-		$this->content["header"]=new HtmlSemDoubleElement("header-" . $this->identifier, "a", "header", $value);
33
+		$this->content["header"]=new HtmlSemDoubleElement("header-".$this->identifier, "a", "header", $value);
34 34
 	}
35 35
 
36 36
 	/**
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::compile()
41 41
 	 */
42 42
 	public function compile(JsUtils $js=NULL, View $view=NULL) {
43
-		$this->content=JArray::sortAssociative($this->content, [ "header","meta","description" ]);
43
+		$this->content=JArray::sortAssociative($this->content, ["header", "meta", "description"]);
44 44
 		return parent::compile($js, $view);
45 45
 	}
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,9 @@
 block discarded – undo
18 18
 			foreach ( $metas as $meta ) {
19 19
 				$this->addMeta($meta);
20 20
 			}
21
-		} else
22
-			$this->addMeta($metas);
21
+		} else {
22
+					$this->addMeta($metas);
23
+		}
23 24
 		if (isset($description)) {
24 25
 			$this->setDescription($description);
25 26
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/content/card/HtmlCardContent.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,22 +12,22 @@
 block discarded – undo
12 12
 	}
13 13
 
14 14
 	public function addMeta($value, $direction=Direction::LEFT) {
15
-		if (\array_key_exists("meta", $this->content) === false) {
16
-			$this->content["meta"]=array ();
15
+		if (\array_key_exists("meta", $this->content)===false) {
16
+			$this->content["meta"]=array();
17 17
 		}
18
-		$meta=new HtmlSemDoubleElement("meta-" . \sizeof($this->content["meta"]) . "" . $this->identifier, "div", "meta", $value);
18
+		$meta=new HtmlSemDoubleElement("meta-".\sizeof($this->content["meta"])."".$this->identifier, "div", "meta", $value);
19 19
 		$this->content["meta"][]=$meta;
20 20
 		$meta->setFloated($direction);
21 21
 		return $meta;
22 22
 	}
23 23
 
24 24
 	public function addContentIcon($icon, $caption=NULL, $direction=Direction::LEFT) {
25
-		if ($direction === Direction::RIGHT) {
25
+		if ($direction===Direction::RIGHT) {
26 26
 			$result=new HtmlSemDoubleElement("", "span", "", $caption);
27 27
 			$result->setFloated($direction);
28 28
 			$result->addIcon($icon);
29 29
 			$this->addContent($result);
30
-		} else {
30
+		}else {
31 31
 			$this->addIcon($icon);
32 32
 			$result=$this->addContent($caption);
33 33
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlIcon.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 * @return \Ajax\semantic\html\HtmlIcon
85 85
 	 */
86 86
 	public function setFlipped($sens="horizontally") {
87
-		return $this->addToMember($this->attributes, "flipped " . $sens);
87
+		return $this->addToMember($this->attributes, "flipped ".$sens);
88 88
 	}
89 89
 
90 90
 	/**
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 * @return \Ajax\semantic\html\HtmlIcon
94 94
 	 */
95 95
 	public function setRotated($sens="clockwise") {
96
-		return $this->addToMember($this->attributes, "rotated " . $sens);
96
+		return $this->addToMember($this->attributes, "rotated ".$sens);
97 97
 	}
98 98
 
99 99
 	/**
@@ -102,16 +102,16 @@  discard block
 block discarded – undo
102 102
 	 */
103 103
 	public function asLink($href=NULL) {
104 104
 		if (isset($href)) {
105
-			$this->wrap("<a href='" . $href . "'>", "</a>");
105
+			$this->wrap("<a href='".$href."'>", "</a>");
106 106
 		}
107 107
 		return $this->addToMember($this->attributes, "link");
108 108
 	}
109 109
 
110 110
 	public function setCircular($inverted=false) {
111 111
 		$invertedStr="";
112
-		if ($inverted !== false)
112
+		if ($inverted!==false)
113 113
 			$invertedStr=" inverted";
114
-		return $this->addToMember($this->attributes, "circular" . $invertedStr);
114
+		return $this->addToMember($this->attributes, "circular".$invertedStr);
115 115
 	}
116 116
 
117 117
 	/**
@@ -133,9 +133,9 @@  discard block
 block discarded – undo
133 133
 	 */
134 134
 	public function setBordered($inverted=false) {
135 135
 		$invertedStr="";
136
-		if ($inverted !== false)
136
+		if ($inverted!==false)
137 137
 			$invertedStr=" inverted";
138
-		return $this->addToMember($this->attributes, "bordered" . $invertedStr);
138
+		return $this->addToMember($this->attributes, "bordered".$invertedStr);
139 139
 	}
140 140
 
141 141
 	/**
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,8 +109,9 @@  discard block
 block discarded – undo
109 109
 
110 110
 	public function setCircular($inverted=false) {
111 111
 		$invertedStr="";
112
-		if ($inverted !== false)
113
-			$invertedStr=" inverted";
112
+		if ($inverted !== false) {
113
+					$invertedStr=" inverted";
114
+		}
114 115
 		return $this->addToMember($this->attributes, "circular" . $invertedStr);
115 116
 	}
116 117
 
@@ -133,8 +134,9 @@  discard block
 block discarded – undo
133 134
 	 */
134 135
 	public function setBordered($inverted=false) {
135 136
 		$invertedStr="";
136
-		if ($inverted !== false)
137
-			$invertedStr=" inverted";
137
+		if ($inverted !== false) {
138
+					$invertedStr=" inverted";
139
+		}
138 140
 		return $this->addToMember($this->attributes, "bordered" . $invertedStr);
139 141
 	}
140 142
 
Please login to merge, or discard this patch.