Completed
Push — master ( b4ccca...781bd5 )
by Jean-Christophe
03:50
created
Ajax/semantic/html/base/constants/Direction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,5 +2,5 @@
 block discarded – undo
2 2
 namespace Ajax\semantic\html\base\constants;
3 3
 	use Ajax\common\BaseEnum;
4 4
 abstract class Direction extends BaseEnum {
5
-	const RIGHT="right", LEFT="left",DOWN="down",UP="up",NONE="";
5
+	const RIGHT="right", LEFT="left", DOWN="down", UP="up", NONE="";
6 6
 }
7 7
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlStepItem.php 2 patches
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -12,70 +12,70 @@
 block discarded – undo
12 12
 	public function __construct($identifier, $content) {
13 13
 		parent::__construct($identifier, "div", "step");
14 14
 		$this->content=array();
15
-		if(\is_array($content)){
16
-			if(JArray::isAssociative($content)===false){
17
-				$icon=JArray::getValue($content, "icon",0);
18
-				$title=JArray::getValue($content, "title",1);
19
-				$desc=JArray::getValue($content, "description",2);
20
-				$status=JArray::getValue($content, "status",3);
21
-			}else{
15
+		if (\is_array($content)) {
16
+			if (JArray::isAssociative($content)===false) {
17
+				$icon=JArray::getValue($content, "icon", 0);
18
+				$title=JArray::getValue($content, "title", 1);
19
+				$desc=JArray::getValue($content, "description", 2);
20
+				$status=JArray::getValue($content, "status", 3);
21
+			}else {
22 22
 				$icon=@$content["icon"];
23 23
 				$title=@$content["title"];
24 24
 				$desc=@$content["description"];
25 25
 				$status=@$content["status"];
26 26
 			}
27
-			if(isset($icon)===true){
27
+			if (isset($icon)===true) {
28 28
 				$this->setIcon($icon);
29 29
 			}
30
-			if(isset($status)===true){
30
+			if (isset($status)===true) {
31 31
 				$this->setStatus($status);
32 32
 			}
33
-			if(isset($title)===true){
34
-				$this->setTitle($title,$desc);
33
+			if (isset($title)===true) {
34
+				$this->setTitle($title, $desc);
35 35
 			}
36
-		}else{
36
+		}else {
37 37
 			$this->setContent($content);
38 38
 		}
39 39
 	}
40 40
 
41
-	public function setIcon($icon){
41
+	public function setIcon($icon) {
42 42
 		$this->content["icon"]=new HtmlIcon("icon-".$this->identifier, $icon);
43 43
 	}
44 44
 
45
-	private function createContent(){
46
-		$this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier,"div","content");
45
+	private function createContent() {
46
+		$this->content["content"]=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content");
47 47
 		return $this->content["content"];
48 48
 	}
49 49
 
50
-	public function setTitle($title,$description=NULL){
51
-		$title=new HtmlSemDoubleElement("","div","title",$title);
52
-		if(\array_key_exists("content", $this->content)===false){
50
+	public function setTitle($title, $description=NULL) {
51
+		$title=new HtmlSemDoubleElement("", "div", "title", $title);
52
+		if (\array_key_exists("content", $this->content)===false) {
53 53
 			$this->createContent();
54 54
 		}
55 55
 		$this->content["content"]->addContent($title);
56
-		if(isset($description)){
57
-			$description=new HtmlSemDoubleElement("","div","description",$description);
56
+		if (isset($description)) {
57
+			$description=new HtmlSemDoubleElement("", "div", "description", $description);
58 58
 			$this->content["content"]->addContent($description);
59 59
 		}
60 60
 		return $this;
61 61
 	}
62 62
 
63
-	public function setActive(){
63
+	public function setActive() {
64 64
 		return $this->setStatus(StepStatus::ACTIVE);
65 65
 	}
66 66
 
67
-	public function setCompleted(){
67
+	public function setCompleted() {
68 68
 		return $this->setStatus(StepStatus::COMPLETED);
69 69
 	}
70 70
 
71
-	public function setStatus($status){
71
+	public function setStatus($status) {
72 72
 		return $this->addToPropertyCtrl("class", $status, StepStatus::getConstants());
73 73
 	}
74 74
 
75
-	public function asLink(){
75
+	public function asLink() {
76 76
 		return $this->setTagName("a");
77 77
 	}
78
-	public function removeStatus(){
78
+	public function removeStatus() {
79 79
 		$this->removePropertyValues("class", StepStatus::getConstants());
80 80
 	}
81 81
 }
82 82
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 				$title=JArray::getValue($content, "title",1);
19 19
 				$desc=JArray::getValue($content, "description",2);
20 20
 				$status=JArray::getValue($content, "status",3);
21
-			}else{
21
+			} else{
22 22
 				$icon=@$content["icon"];
23 23
 				$title=@$content["title"];
24 24
 				$desc=@$content["description"];
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 			if(isset($title)===true){
34 34
 				$this->setTitle($title,$desc);
35 35
 			}
36
-		}else{
36
+		} else{
37 37
 			$this->setContent($content);
38 38
 		}
39 39
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlMenu.php 3 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 	/**
32 32
 	 * Sets the menu type
33 33
 	 * @param string $type one of text,item
34
-	 * @return \Ajax\semantic\html\collections\HtmlMenu
34
+	 * @return HtmlMenu
35 35
 	 */
36 36
 	public function setType($type=""){
37 37
 		return $this->addToPropertyCtrl("class", $type, array("","item","text"));
@@ -73,6 +73,7 @@  discard block
 block discarded – undo
73 73
 	/**
74 74
 	 * {@inheritDoc}
75 75
 	 * @see \Ajax\common\html\HtmlCollection::insertItem()
76
+	 * @param HtmlIcon $item
76 77
 	 */
77 78
 	public function insertItem($item,$position=0){
78 79
 		$item=parent::insertItem($this->getItemToInsert($item),$position);
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
 	 * @return \Ajax\semantic\html\collections\HtmlMenu
35 35
 	 */
36 36
 	public function setType($type="") {
37
-		return $this->addToPropertyCtrl("class", $type, array ("","item","text" ));
37
+		return $this->addToPropertyCtrl("class", $type, array("", "item", "text"));
38 38
 	}
39 39
 
40 40
 	public function setActiveItem($index) {
41 41
 		$item=$this->getItem($index);
42
-		if ($item !== null) {
42
+		if ($item!==null) {
43 43
 			$item->addToProperty("class", "active");
44 44
 		}
45 45
 		return $this;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
 	private function getItemToInsert($item) {
49 49
 		if ($item instanceof HtmlInput || $item instanceof HtmlImg || $item instanceof HtmlIcon) {
50
-			$itemO=new HtmlSemDoubleElement("item-" . $this->identifier, "div", "");
50
+			$itemO=new HtmlSemDoubleElement("item-".$this->identifier, "div", "");
51 51
 			$itemO->setContent($item);
52 52
 			$item=$itemO;
53 53
 		}
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
 	private function afterInsert($item) {
58 58
 		if (!$item instanceof HtmlMenu)
59
-			$item->addToPropertyCtrl("class", "item", array ("item" ));
59
+			$item->addToPropertyCtrl("class", "item", array("item"));
60 60
 		else {
61 61
 			$this->setSecondary();
62 62
 		}
@@ -87,9 +87,9 @@  discard block
 block discarded – undo
87 87
 
88 88
 	public function generateMenuAsItem($menu, $header=null) {
89 89
 		$count=$this->count();
90
-		$item=new HtmlSemDoubleElement("item-" . $this->identifier . "-" . $count, "div");
90
+		$item=new HtmlSemDoubleElement("item-".$this->identifier."-".$count, "div");
91 91
 		if (isset($header)) {
92
-			$headerItem=new HtmlSemDoubleElement("item-header-" . $this->identifier . "-" . $count, "div", "header");
92
+			$headerItem=new HtmlSemDoubleElement("item-header-".$this->identifier."-".$count, "div", "header");
93 93
 			$headerItem->setContent($header);
94 94
 			$item->addContent($headerItem);
95 95
 		}
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 		$value=new HtmlSemDoubleElement($identifier, "a", "browse item", $value);
107 107
 		$value->addContent(new HtmlIcon("", "dropdown"));
108 108
 		$value=$this->addItem($value);
109
-		$popup=new HtmlPopup($value, "popup-" . $this->identifier . "-" . $this->count(), $content);
109
+		$popup=new HtmlPopup($value, "popup-".$this->identifier."-".$this->count(), $content);
110 110
 		$popup->setFlowing()->setPosition("bottom left")->setOn("click");
111 111
 		$this->wrap("", $popup);
112 112
 		return $popup;
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	public function addDropdownAsItem($value, $items=NULL) {
116 116
 		$dd=$value;
117 117
 		if (\is_string($value)) {
118
-			$dd=new HtmlDropdown("dropdown-" . $this->identifier . "-" . $this->count(), $value, $items);
118
+			$dd=new HtmlDropdown("dropdown-".$this->identifier."-".$this->count(), $value, $items);
119 119
 		}
120 120
 		return $this->addItem($dd);
121 121
 	}
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * @see \Ajax\common\html\html5\HtmlCollection::createItem()
128 128
 	 */
129 129
 	protected function createItem($value) {
130
-		$itemO=new HtmlLink("item-" . \sizeof($this->content), "", $value);
130
+		$itemO=new HtmlLink("item-".\sizeof($this->content), "", $value);
131 131
 		return $itemO->setClass("item");
132 132
 	}
133 133
 
@@ -140,28 +140,28 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 
142 142
 	public function setVertical() {
143
-		return $this->addToPropertyCtrl("class", "vertical", array ("vertical" ));
143
+		return $this->addToPropertyCtrl("class", "vertical", array("vertical"));
144 144
 	}
145 145
 
146 146
 	public function setPosition($value="right") {
147
-		return $this->addToPropertyCtrl("class", $value, array ("right","left" ));
147
+		return $this->addToPropertyCtrl("class", $value, array("right", "left"));
148 148
 	}
149 149
 
150 150
 	public function setPointing($value=Direction::NONE) {
151
-		return $this->addToPropertyCtrl("class", $value . " pointing", Direction::getConstantValues("pointing"));
151
+		return $this->addToPropertyCtrl("class", $value." pointing", Direction::getConstantValues("pointing"));
152 152
 	}
153 153
 
154 154
 	public function asTab($vertical=false) {
155
-		$this->apply(function (HtmlDoubleElement &$item) {
155
+		$this->apply(function(HtmlDoubleElement & $item) {
156 156
 			$item->setTagName("a");
157 157
 		});
158
-		if ($vertical === true)
158
+		if ($vertical===true)
159 159
 			$this->setVertical();
160 160
 		return $this->addToProperty("class", "tabular");
161 161
 	}
162 162
 
163 163
 	public function asPagination() {
164
-		$this->apply(function (HtmlDoubleElement &$item) {
164
+		$this->apply(function(HtmlDoubleElement & $item) {
165 165
 			$item->setTagName("a");
166 166
 		});
167 167
 		return $this->addToProperty("class", "pagination");
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
 	 */
199 199
 	public function setWidth($width) {
200 200
 		if (\is_int($width)) {
201
-			$width=Wide::getConstants()["W" . $width];
201
+			$width=Wide::getConstants()["W".$width];
202 202
 		}
203 203
 		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
204
-		return $this->addToPropertyCtrl("class", "item", array ("item" ));
204
+		return $this->addToPropertyCtrl("class", "item", array("item"));
205 205
 	}
206 206
 
207 207
 	public function addImage($identifier, $src="", $alt="") {
Please login to merge, or discard this patch.
Braces   +11 added lines, -9 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
 	}
56 56
 
57 57
 	private function afterInsert($item) {
58
-		if (!$item instanceof HtmlMenu)
59
-			$item->addToPropertyCtrl("class", "item", array ("item" ));
60
-		else {
58
+		if (!$item instanceof HtmlMenu) {
59
+					$item->addToPropertyCtrl("class", "item", array ("item" ));
60
+		} else {
61 61
 			$this->setSecondary();
62 62
 		}
63 63
 		return $item;
@@ -155,8 +155,9 @@  discard block
 block discarded – undo
155 155
 		$this->apply(function (HtmlDoubleElement &$item) {
156 156
 			$item->setTagName("a");
157 157
 		});
158
-		if ($vertical === true)
159
-			$this->setVertical();
158
+		if ($vertical === true) {
159
+					$this->setVertical();
160
+		}
160 161
 		return $this->addToProperty("class", "tabular");
161 162
 	}
162 163
 
@@ -185,10 +186,11 @@  discard block
 block discarded – undo
185 186
 	 */
186 187
 	public function fromDatabaseObject($object, $function) {
187 188
 		$return=$function($object);
188
-		if (\is_array($return))
189
-			$this->addItems($return);
190
-		else
191
-			$this->addItem($return);
189
+		if (\is_array($return)) {
190
+					$this->addItems($return);
191
+		} else {
192
+					$this->addItem($return);
193
+		}
192 194
 	}
193 195
 
194 196
 	/**
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlPaginationMenu.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
 use Phalcon\Mvc\View;
8 8
 use Ajax\semantic\html\elements\HtmlIcon;
9 9
 
10
-class HtmlPaginationMenu extends HtmlMenu{
10
+class HtmlPaginationMenu extends HtmlMenu {
11 11
 
12
-	public function __construct( $identifier, $items=array() ){
13
-		parent::__construct( $identifier,$items);
12
+	public function __construct($identifier, $items=array()) {
13
+		parent::__construct($identifier, $items);
14 14
 	}
15 15
 	/**
16 16
 	 * {@inheritDoc}
17 17
 	 * @see \Ajax\common\html\BaseHtml::compile()
18 18
 	 */
19
-	public function compile(JsUtils $js=NULL,View $view=NULL){
19
+	public function compile(JsUtils $js=NULL, View $view=NULL) {
20 20
 		$this->insertItem(new HtmlIcon("", "left chevron"));
21 21
 		$this->addItem(new HtmlIcon("", "right chevron"));
22 22
 		$this->asPagination();
23
-		return parent::compile($js,$view);
23
+		return parent::compile($js, $view);
24 24
 	}
25 25
 }
26 26
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/content/table/HtmlTR.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 	protected $_tabsType="tabs";
21 21
 	protected $stacked="";
22 22
 
23
+	/**
24
+	 * @param string $identifier
25
+	 */
23 26
 	public function __construct($identifier, $tagName="ul") {
24 27
 		parent::__construct($identifier, $tagName);
25 28
 		$this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%";
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
 
21 21
 	public function __construct($identifier) {
22 22
 		parent::__construct($identifier, "tr", "");
23
-		$this->_states=[ State::ACTIVE,State::POSITIVE,State::NEGATIVE,State::WARNING,State::ERROR,State::DISABLED ];
23
+		$this->_states=[State::ACTIVE, State::POSITIVE, State::NEGATIVE, State::WARNING, State::ERROR, State::DISABLED];
24 24
 	}
25 25
 
26 26
 	public function setColCount($colCount) {
27 27
 		$count=$this->count();
28
-		for($i=$count; $i < $colCount; $i++) {
28
+		for ($i=$count; $i<$colCount; $i++) {
29 29
 			$item=$this->addItem(NULL);
30 30
 			$item->setTagName($this->_tdTagName);
31 31
 		}
@@ -65,16 +65,16 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function setValues($values=array()) {
67 67
 		$count=$this->count();
68
-		if (\is_array($values) === false) {
68
+		if (\is_array($values)===false) {
69 69
 			$values=\array_fill(0, $count, $values);
70
-		} else {
71
-			if (JArray::isAssociative($values) === true) {
70
+		}else {
71
+			if (JArray::isAssociative($values)===true) {
72 72
 				$values=\array_values($values);
73 73
 			}
74 74
 		}
75 75
 		$count=\min(\sizeof($values), $count);
76 76
 		
77
-		for($i=0; $i < $count; $i++) {
77
+		for ($i=0; $i<$count; $i++) {
78 78
 			$cell=$this->content[$i];
79 79
 			$cell->setValue($values[$i]);
80 80
 		}
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
 	public function getColPosition($colIndex) {
102 102
 		$pos=0;
103 103
 		$rows=$this->_container->getContent();
104
-		for($i=0; $i < $this->_row; $i++) {
104
+		for ($i=0; $i<$this->_row; $i++) {
105 105
 			$max=\min($colIndex, $rows[$i]->count());
106
-			for($j=0; $j < $max; $j++) {
106
+			for ($j=0; $j<$max; $j++) {
107 107
 				$rowspan=$rows[$i]->getItem($j)->getRowspan();
108
-				if ($rowspan + $i > $this->_row)
108
+				if ($rowspan+$i>$this->_row)
109 109
 					$pos++;
110 110
 			}
111 111
 		}
112
-		if ($pos > $colIndex)
112
+		if ($pos>$colIndex)
113 113
 			return NULL;
114 114
 		$count=$this->count();
115
-		for($i=0; $i < $count; $i++) {
115
+		for ($i=0; $i<$count; $i++) {
116 116
 			$pos+=$this->content[$i]->getColspan();
117
-			if ($pos >= $colIndex + 1)
117
+			if ($pos>=$colIndex+1)
118 118
 				return $i;
119 119
 		}
120 120
 		return null;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
 	public function conditionalCellFormat($callback, $format) {
124 124
 		$cells=$this->content;
125
-		foreach ( $cells as $cell ) {
125
+		foreach ($cells as $cell) {
126 126
 			$cell->conditionalCellFormat($callback, $format);
127 127
 		}
128 128
 		return $this;
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
 
138 138
 	public function containsStr($needle) {
139 139
 		$cells=$this->content;
140
-		foreach ( $cells as $cell ) {
141
-			if (\strpos($cell->getContent(), $needle) !== false)
140
+		foreach ($cells as $cell) {
141
+			if (\strpos($cell->getContent(), $needle)!==false)
142 142
 				return true;
143 143
 		}
144 144
 		return false;
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 	public function applyCells($callback) {
153 153
 		$cells=$this->content;
154
-		foreach ( $cells as $cell ) {
154
+		foreach ($cells as $cell) {
155 155
 			$cell->apply($callback);
156 156
 		}
157 157
 		return $this;
Please login to merge, or discard this patch.
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,17 +105,20 @@  discard block
 block discarded – undo
105 105
 			$max=\min($colIndex, $rows[$i]->count());
106 106
 			for($j=0; $j < $max; $j++) {
107 107
 				$rowspan=$rows[$i]->getItem($j)->getRowspan();
108
-				if ($rowspan + $i > $this->_row)
109
-					$pos++;
108
+				if ($rowspan + $i > $this->_row) {
109
+									$pos++;
110
+				}
110 111
 			}
111 112
 		}
112
-		if ($pos > $colIndex)
113
-			return NULL;
113
+		if ($pos > $colIndex) {
114
+					return NULL;
115
+		}
114 116
 		$count=$this->count();
115 117
 		for($i=0; $i < $count; $i++) {
116 118
 			$pos+=$this->content[$i]->getColspan();
117
-			if ($pos >= $colIndex + 1)
118
-				return $i;
119
+			if ($pos >= $colIndex + 1) {
120
+							return $i;
121
+			}
119 122
 		}
120 123
 		return null;
121 124
 	}
@@ -138,8 +141,9 @@  discard block
 block discarded – undo
138 141
 	public function containsStr($needle) {
139 142
 		$cells=$this->content;
140 143
 		foreach ( $cells as $cell ) {
141
-			if (\strpos($cell->getContent(), $needle) !== false)
142
-				return true;
144
+			if (\strpos($cell->getContent(), $needle) !== false) {
145
+							return true;
146
+			}
143 147
 		}
144 148
 		return false;
145 149
 	}
Please login to merge, or discard this patch.
Ajax/common/html/html5/HtmlLinkTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
 
5 5
 trait HtmlLinkTrait {
6 6
 
7
+	/**
8
+	 * @param string $value
9
+	 */
7 10
 	public function setHref($value) {
8 11
 		$this->setProperty("href", $value);
9 12
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/TextAlignmentTrait.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,23 +10,23 @@
 block discarded – undo
10 10
 	 * @param string $value
11 11
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
12 12
 	 */
13
-	public function setTextAlignment($value=TextAlignment::LEFT){
14
-		return $this->addToPropertyCtrl("class", $value,TextAlignment::getConstants());
13
+	public function setTextAlignment($value=TextAlignment::LEFT) {
14
+		return $this->addToPropertyCtrl("class", $value, TextAlignment::getConstants());
15 15
 	}
16 16
 
17
-	public function textCenterAligned(){
17
+	public function textCenterAligned() {
18 18
 		return $this->setTextAlignment(TextAlignment::CENTER);
19 19
 	}
20 20
 
21
-	public function textJustified(){
21
+	public function textJustified() {
22 22
 		return $this->setTextAlignment(TextAlignment::JUSTIFIED);
23 23
 	}
24 24
 
25
-	public function textRightAligned(){
25
+	public function textRightAligned() {
26 26
 		return $this->setTextAlignment(TextAlignment::RIGHT);
27 27
 	}
28 28
 
29
-	public function textLeftAligned(){
29
+	public function textLeftAligned() {
30 30
 		return $this->setTextAlignment();
31 31
 	}
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlModulesTrait.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
 
24 24
 	/**
25 25
 	 * @param string $identifier
26
-	 * @param int $rowCount
27
-	 * @param int $colCount
28 26
 	 */
29 27
 	public function htmlRating($identifier, $value, $max,$icon=""){
30 28
 		return $this->addHtmlComponent(new HtmlRating($identifier, $value, $max,$icon));
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlRating.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 	 * @param int $max
14 14
 	 * @param string $icon star or heart
15 15
 	 */
16
-	public function __construct($identifier, $value,$max=5,$icon="") {
16
+	public function __construct($identifier, $value, $max=5, $icon="") {
17 17
 		parent::__construct($identifier, "div", "ui {$icon} rating");
18 18
 		$this->setValue($value);
19 19
 		$this->setMax($max);
@@ -23,11 +23,11 @@  discard block
 block discarded – undo
23 23
 	 * {@inheritDoc}
24 24
 	 * @see \Ajax\common\html\HtmlDoubleElement::setValue()
25 25
 	 */
26
-	public function setValue($value){
26
+	public function setValue($value) {
27 27
 		$this->setProperty("data-rating", $value);
28 28
 	}
29 29
 
30
-	public function setMax($max){
30
+	public function setMax($max) {
31 31
 		$this->setProperty("data-max-rating", $max);
32 32
 	}
33 33
 
@@ -35,20 +35,20 @@  discard block
 block discarded – undo
35 35
 	 * {@inheritDoc}
36 36
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run()
37 37
 	 */
38
-	public function run(JsUtils $js){
38
+	public function run(JsUtils $js) {
39 39
 		parent::run($js);
40
-		return $js->semantic()->rating("#".$this->identifier,$this->_params);
40
+		return $js->semantic()->rating("#".$this->identifier, $this->_params);
41 41
 	}
42 42
 
43
-	public function asStar(){
43
+	public function asStar() {
44 44
 		return $this->setIcon();
45 45
 	}
46 46
 
47
-	public function asHeart(){
47
+	public function asHeart() {
48 48
 		return $this->setIcon("heart");
49 49
 	}
50 50
 
51
-	public function setIcon($icon="star"){
52
-		return $this->addToPropertyCtrl("class", $icon, ["star","heart",""]);
51
+	public function setIcon($icon="star") {
52
+		return $this->addToPropertyCtrl("class", $icon, ["star", "heart", ""]);
53 53
 	}
54 54
 }
55 55
\ No newline at end of file
Please login to merge, or discard this patch.