Completed
Push — master ( 9de830...b49918 )
by Jean-Christophe
03:44
created
Ajax/semantic/html/base/HtmlSemCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
  * @author jc
10 10
  * @version 1.001
11 11
  */
12
-abstract class HtmlSemCollection extends HtmlCollection{
12
+abstract class HtmlSemCollection extends HtmlCollection {
13 13
 	use BaseTrait;
14
-	public function __construct( $identifier, $tagName="div",$baseClass="ui"){
15
-		parent::__construct( $identifier, $tagName);
14
+	public function __construct($identifier, $tagName="div", $baseClass="ui") {
15
+		parent::__construct($identifier, $tagName);
16 16
 		$this->_baseClass=$baseClass;
17 17
 		$this->setClass($baseClass);
18 18
 	}
Please login to merge, or discard this patch.
Ajax/Semantic.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @param string $identifier
83 83
 	 * @param string $icon
84 84
 	 */
85
-	public function htmlIcon($identifier,$icon){
85
+	public function htmlIcon($identifier, $icon) {
86 86
 		return $this->addHtmlComponent(new HtmlIcon($identifier, $icon));
87 87
 	}
88 88
 
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
 	 * @param string $size
92 92
 	 * @param array $icons
93 93
 	 */
94
-	public function htmlIconGroups($identifier,$size="",$icons=array()){
95
-		$group=new HtmlIconGroups($identifier,$size);
96
-		if(JArray::isAssociative($icons)){
97
-			foreach ($icons as $icon=>$size){
98
-				$group->add($icon,$size);
94
+	public function htmlIconGroups($identifier, $size="", $icons=array()) {
95
+		$group=new HtmlIconGroups($identifier, $size);
96
+		if (JArray::isAssociative($icons)) {
97
+			foreach ($icons as $icon=>$size) {
98
+				$group->add($icon, $size);
99 99
 			}
100
-		}else{
101
-			foreach ($icons as $icon){
100
+		}else {
101
+			foreach ($icons as $icon) {
102 102
 				$group->add($icon);
103 103
 			}
104 104
 		}
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
 	 * @param array $elements
111 111
 	 * @param boolean $asIcons
112 112
 	 */
113
-	public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){
114
-		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements,$asIcons));
113
+	public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) {
114
+		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
115 115
 	}
116 116
 
117 117
 	/**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 * @param string $identifier
120 120
 	 * @param string $content
121 121
 	 */
122
-	public function htmlContainer($identifier,$content=""){
122
+	public function htmlContainer($identifier, $content="") {
123 123
 		return $this->addHtmlComponent(new HtmlContainer($identifier, $content));
124 124
 	}
125 125
 
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
 	 * @param string $identifier
128 128
 	 * @param string $content
129 129
 	 */
130
-	public function htmlDivider($identifier,$content="",$tagName="div"){
131
-		return $this->addHtmlComponent(new HtmlDivider($identifier, $content,$tagName));
130
+	public function htmlDivider($identifier, $content="", $tagName="div") {
131
+		return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName));
132 132
 	}
133 133
 
134 134
 	/**
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
 	 * @param string $content
137 137
 	 * @param string $tagName
138 138
 	 */
139
-	public function htmlLabel($identifier,$content="",$tagName="div"){
140
-		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$tagName));
139
+	public function htmlLabel($identifier, $content="", $tagName="div") {
140
+		return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $tagName));
141 141
 	}
142 142
 
143 143
 	/**
@@ -145,24 +145,24 @@  discard block
 block discarded – undo
145 145
 	 * @param array $items
146 146
 	 * @return Ajax\semantic\html\collections\HtmlMenu
147 147
 	 */
148
-	public function htmlMenu($identifier,$items=array()){
149
-		return $this->addHtmlComponent(new HtmlMenu($identifier,$items));
148
+	public function htmlMenu($identifier, $items=array()) {
149
+		return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
150 150
 	}
151 151
 
152 152
 	/**Adds an icon menu
153 153
 	 * @param string $identifier
154 154
 	 * @param array $items icons
155 155
 	 */
156
-	public function htmlIconMenu($identifier,$items=array()){
157
-		return $this->addHtmlComponent(new HtmlIconMenu($identifier,$items));
156
+	public function htmlIconMenu($identifier, $items=array()) {
157
+		return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
158 158
 	}
159 159
 
160 160
 	/**Adds an labeled icon menu
161 161
 	 * @param string $identifier
162 162
 	 * @param array $items icons
163 163
 	 */
164
-	public function htmlLabeledIconMenu($identifier,$items=array()){
165
-		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier,$items));
164
+	public function htmlLabeledIconMenu($identifier, $items=array()) {
165
+		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
166 166
 	}
167 167
 
168 168
 	/**
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
 	 * @param string $value
171 171
 	 * @param array $items
172 172
 	 */
173
-	public function htmlDropdown($identifier, $value="", $items=array()){
174
-		return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items));
173
+	public function htmlDropdown($identifier, $value="", $items=array()) {
174
+		return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
175 175
 	}
176 176
 
177 177
 	/**
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
 	 * @param string $identifier
180 180
 	 * @param string $content
181 181
 	 */
182
-	public function htmlMessage($identifier, $content=""){
183
-		return $this->addHtmlComponent(new HtmlMessage($identifier,$content));
182
+	public function htmlMessage($identifier, $content="") {
183
+		return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
184 184
 	}
185 185
 
186 186
 	/**
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 	 * @param string $identifier
189 189
 	 * @param string $content
190 190
 	 */
191
-	public function htmlSegment($identifier, $content=""){
192
-		return $this->addHtmlComponent(new HtmlSegment($identifier,$content));
191
+	public function htmlSegment($identifier, $content="") {
192
+		return $this->addHtmlComponent(new HtmlSegment($identifier, $content));
193 193
 	}
194 194
 
195 195
 	/**
@@ -197,16 +197,16 @@  discard block
 block discarded – undo
197 197
 	 * @param string $identifier
198 198
 	 * @param array $items the segments
199 199
 	 */
200
-	public function htmlSegmentGroups($identifier, $items=array()){
201
-		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier,$items));
200
+	public function htmlSegmentGroups($identifier, $items=array()) {
201
+		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items));
202 202
 	}
203 203
 
204 204
 	/**
205 205
 	 * @param string $identifier
206 206
 	 * @param mixed $content
207 207
 	 */
208
-	public function htmlPopup(BaseHtml $container,$identifier,$content){
209
-		return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content));
208
+	public function htmlPopup(BaseHtml $container, $identifier, $content) {
209
+		return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
210 210
 	}
211 211
 
212 212
 	/**
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
 	 * @param boolean $createCols
217 217
 	 * @param boolean $implicitRows
218 218
 	 */
219
-	public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
220
-		return $this->addHtmlComponent(new HtmlGrid($identifier,$numRows,$numCols,$createCols,$implicitRows));
219
+	public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
220
+		return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
221 221
 	}
222 222
 
223 223
 	/**
@@ -226,16 +226,16 @@  discard block
 block discarded – undo
226 226
 	 * @param mixed $content
227 227
 	 * @param string $type
228 228
 	 */
229
-	public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){
230
-		return $this->addHtmlComponent(new HtmlHeader($identifier,$niveau,$content,$type));
229
+	public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") {
230
+		return $this->addHtmlComponent(new HtmlHeader($identifier, $niveau, $content, $type));
231 231
 	}
232 232
 
233
-	public function htmlInput($identifier,$type="text",$value="",$placeholder=""){
234
-		return $this->addHtmlComponent(new HtmlInput($identifier,$type,$value,$placeholder));
233
+	public function htmlInput($identifier, $type="text", $value="", $placeholder="") {
234
+		return $this->addHtmlComponent(new HtmlInput($identifier, $type, $value, $placeholder));
235 235
 	}
236 236
 
237
-	public function htmlList($identifier,$items=array()){
238
-		return $this->addHtmlComponent(new HtmlList($identifier,$items));
237
+	public function htmlList($identifier, $items=array()) {
238
+		return $this->addHtmlComponent(new HtmlList($identifier, $items));
239 239
 	}
240 240
 
241 241
 	/**
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
247 247
 	 * @return HtmlBreadcrumb
248 248
 	 */
249
-	public function htmlBreadcrumb( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
250
-		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier,$items,$autoActive,$startIndex,$hrefFunction));
249
+	public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) {
250
+		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier, $items, $autoActive, $startIndex, $hrefFunction));
251 251
 	}
252 252
 
253 253
 	/**
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
 	 * @param string $identifier
265 265
 	 * @return HtmlAccordion
266 266
 	 */
267
-	public function htmlAccordionMenu($identifier,$items=array()) {
268
-		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier,$items));
267
+	public function htmlAccordionMenu($identifier, $items=array()) {
268
+		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier, $items));
269 269
 	}
270 270
 
271 271
 	/**
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
 	 * @param string $identifier
274 274
 	 * @param array $elements
275 275
 	 */
276
-	public function htmlForm($identifier,$elements=array()) {
277
-		return $this->addHtmlComponent(new HtmlForm($identifier,$elements));
276
+	public function htmlForm($identifier, $elements=array()) {
277
+		return $this->addHtmlComponent(new HtmlForm($identifier, $elements));
278 278
 	}
279 279
 }
280 280
\ No newline at end of file
Please login to merge, or discard this patch.