Completed
Push — master ( 0c3815...012895 )
by Jean-Christophe
03:40
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=""){
15
-		parent::__construct( $identifier, $tagName);
14
+	public function __construct($identifier, $tagName="div", $baseClass="") {
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/common/html/html5/HtmlTextarea.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,26 +7,26 @@
 block discarded – undo
7 7
 
8 8
 class HtmlTextarea extends HtmlDoubleElement {
9 9
 
10
-	public function __construct($identifier,$value=NULL,$placeholder=NULL,$rows=NULL) {
10
+	public function __construct($identifier, $value=NULL, $placeholder=NULL, $rows=NULL) {
11 11
 		parent::__construct($identifier, "textarea");
12 12
 		$this->setValue($value);
13 13
 		$this->setPlaceholder($placeholder);
14
-		if(isset($rows))
14
+		if (isset($rows))
15 15
 			$this->setRows($rows);
16 16
 	}
17 17
 	public function setValue($value) {
18
-		if(isset($value))
18
+		if (isset($value))
19 19
 			$this->setContent($value);
20 20
 		return $this;
21 21
 	}
22 22
 
23
-	public function setPlaceholder($value){
24
-		if(JString::isNotNull($value))
23
+	public function setPlaceholder($value) {
24
+		if (JString::isNotNull($value))
25 25
 			$this->setProperty("placeholder", $value);
26 26
 		return $this;
27 27
 	}
28 28
 
29
-	public function setRows($count){
29
+	public function setRows($count) {
30 30
 		$this->setProperty("rows", $count);
31 31
 	}
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,18 +11,21 @@
 block discarded – undo
11 11
 		parent::__construct($identifier, "textarea");
12 12
 		$this->setValue($value);
13 13
 		$this->setPlaceholder($placeholder);
14
-		if(isset($rows))
15
-			$this->setRows($rows);
14
+		if(isset($rows)) {
15
+					$this->setRows($rows);
16
+		}
16 17
 	}
17 18
 	public function setValue($value) {
18
-		if(isset($value))
19
-			$this->setContent($value);
19
+		if(isset($value)) {
20
+					$this->setContent($value);
21
+		}
20 22
 		return $this;
21 23
 	}
22 24
 
23 25
 	public function setPlaceholder($value){
24
-		if(JString::isNotNull($value))
25
-			$this->setProperty("placeholder", $value);
26
+		if(JString::isNotNull($value)) {
27
+					$this->setProperty("placeholder", $value);
28
+		}
26 29
 		return $this;
27 30
 	}
28 31
 
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormTextarea.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,17 +8,17 @@
 block discarded – undo
8 8
 class HtmlFormTextarea extends HtmlFormField {
9 9
 	use TextFieldsTrait;
10 10
 
11
-	public function __construct($identifier, $label=NULL,$value=NULL,$placeholder=NULL,$rows=NULL) {
12
-		if(!isset($placeholder))
11
+	public function __construct($identifier, $label=NULL, $value=NULL, $placeholder=NULL, $rows=NULL) {
12
+		if (!isset($placeholder))
13 13
 			$placeholder=$label;
14
-		parent::__construct("field-".$identifier, new HtmlTextarea($identifier,$value,$placeholder,$rows), $label);
14
+		parent::__construct("field-".$identifier, new HtmlTextarea($identifier, $value, $placeholder, $rows), $label);
15 15
 	}
16 16
 
17 17
 	/**
18 18
 	 * Defines the textarea row count
19 19
 	 * @param int $count
20 20
 	 */
21
-	public function setRows($count){
21
+	public function setRows($count) {
22 22
 		$this->getField()->setRows($count);
23 23
 	}
24 24
 }
25 25
\ 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
@@ -8,8 +8,9 @@
 block discarded – undo
8 8
 class HtmlFormInput extends HtmlFormField {
9 9
 
10 10
 	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
11
-		if(!isset($placeholder))
12
-			$placeholder=$label;
11
+		if(!isset($placeholder)) {
12
+					$placeholder=$label;
13
+		}
13 14
 		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
14 15
 	}
15 16
 
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/State.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 use Ajax\common\BaseEnum;
6 6
 
7 7
 abstract class State extends BaseEnum {
8
-	const ACTIVE="active",DISABLED="disabled",ERROR="error",FOCUS="focus",LOADING="loading",SUCCESS="success",WARNING="warning";
8
+	const ACTIVE="active", DISABLED="disabled", ERROR="error", FOCUS="focus", LOADING="loading", SUCCESS="success", WARNING="warning";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormRadio.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 block discarded – undo
10 10
  */
11 11
 class HtmlFormRadio extends AbstractHtmlFormRadioCheckbox {
12 12
 
13
-	public function __construct($identifier, $name=NULL,$label=NULL,$value=NULL) {
14
-		parent::__construct($identifier, $name,$label,$value);
13
+	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL) {
14
+		parent::__construct($identifier, $name, $label, $value);
15 15
 		$this->_input->getField()->setProperty("type", "radio");
16 16
 		$this->_input->setClass("ui radio checkbox");
17
-		if(isset($name))
17
+		if (isset($name))
18 18
 			$this->_input->getField()->setProperty("name", $name);
19 19
 	}
20 20
 }
21 21
\ 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
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
 		parent::__construct($identifier, $name,$label,$value);
15 15
 		$this->_input->getField()->setProperty("type", "radio");
16 16
 		$this->_input->setClass("ui radio checkbox");
17
-		if(isset($name))
18
-			$this->_input->getField()->setProperty("name", $name);
17
+		if(isset($name)) {
18
+					$this->_input->getField()->setProperty("name", $name);
19
+		}
19 20
 	}
20 21
 }
21 22
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormInput.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 class HtmlFormInput extends HtmlFormField {
8 8
 	use TextFieldsTrait;
9 9
 
10
-	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
11
-		if(!isset($placeholder) && $type==="text")
10
+	public function __construct($identifier, $label=NULL, $type="text", $value=NULL, $placeholder=NULL) {
11
+		if (!isset($placeholder) && $type==="text")
12 12
 			$placeholder=$label;
13
-		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
13
+		parent::__construct("field-".$identifier, new HtmlInput($identifier, $type, $value, $placeholder), $label);
14 14
 	}
15 15
 }
16 16
\ 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
@@ -8,8 +8,9 @@
 block discarded – undo
8 8
 	use TextFieldsTrait;
9 9
 
10 10
 	public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
11
-		if(!isset($placeholder) && $type==="text")
12
-			$placeholder=$label;
11
+		if(!isset($placeholder) && $type==="text") {
12
+					$placeholder=$label;
13
+		}
13 14
 		parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
14 15
 	}
15 16
 }
16 17
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/AbstractHtmlFormRadioCheckbox.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@
 block discarded – undo
11 11
 abstract class AbstractHtmlFormRadioCheckbox extends HtmlFormField {
12 12
 	protected $_input;
13 13
 
14
-	public function __construct($identifier, $name=NULL,$label=NULL,$value=NULL) {
15
-		$input=new HtmlFormInput($identifier,$label,"checkbox",$value);
14
+	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL) {
15
+		$input=new HtmlFormInput($identifier, $label, "checkbox", $value);
16 16
 		parent::__construct("rField-".$identifier, $input);
17
-		if(isset($label)){
17
+		if (isset($label)) {
18 18
 			$input->swapLabel();
19 19
 			$label=$input->getLabel();
20 20
 			$label->setClass="hidden";
21
-			$label->setProperty("tabindex",0);
21
+			$label->setProperty("tabindex", 0);
22 22
 		}
23 23
 		$this->_input=$input;
24 24
 	}
Please login to merge, or discard this patch.
Ajax/Jquery.php 3 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 *
208 208
 	 * @param string $element
209 209
 	 * @param array $options
210
-	 * @return void
210
+	 * @return string
211 211
 	 */
212 212
 	public function sortable($element, $options=array()) {
213 213
 		if (count($options)>0) {
@@ -351,6 +351,7 @@  discard block
 block discarded – undo
351 351
 	/**
352 352
 	 * A wrapper for writing document.ready()
353 353
 	 *
354
+	 * @param string $js
354 355
 	 * @return string
355 356
 	 */
356 357
 	public function _document_ready($js) {
@@ -420,6 +421,9 @@  discard block
 block discarded – undo
420 421
 		return $speed;
421 422
 	}
422 423
 
424
+	/**
425
+	 * @param string $input
426
+	 */
423 427
 	private function minify($input) {
424 428
 	if(trim($input) === "") return $input;
425 429
 	return preg_replace(
Please login to merge, or discard this patch.
Braces   +23 added lines, -15 removed lines patch added patch discarded remove patch
@@ -173,10 +173,12 @@  discard block
 block discarded – undo
173 173
 		if (isset($param)) {
174 174
 			$param=$this->_prep_value($param);
175 175
 			$str="$({$element}).{$jQueryCall}({$param});";
176
-		} else
177
-			$str="$({$element}).{$jQueryCall}();";
178
-			if ($immediatly)
179
-				$this->jquery_code_for_compile[]=$str;
176
+		} else {
177
+					$str="$({$element}).{$jQueryCall}();";
178
+		}
179
+			if ($immediatly) {
180
+							$this->jquery_code_for_compile[]=$str;
181
+			}
180 182
 			return $str;
181 183
 	}
182 184
 	/**
@@ -191,8 +193,9 @@  discard block
 block discarded – undo
191 193
 		$to=$this->_prep_element($to);
192 194
 		$element=$this->_prep_element($element);
193 195
 		$str="$({$to}).{$jQueryCall}({$element});";
194
-		if ($immediatly)
195
-			$this->jquery_code_for_compile[]=$str;
196
+		if ($immediatly) {
197
+					$this->jquery_code_for_compile[]=$str;
198
+		}
196 199
 			return $str;
197 200
 	}
198 201
 	// --------------------------------------------------------------------
@@ -260,12 +263,14 @@  discard block
 block discarded – undo
260 263
 		if ($stopPropagation===true) {
261 264
 			$js="event.stopPropagation();\n".$js;
262 265
 		}
263
-		if (array_search($event, $this->jquery_events)===false)
264
-			$event="\n\t$(".$this->_prep_element($element).").bind('{$event}',function(event){\n\t\t{$js}\n\t});\n";
265
-		else
266
-			$event="\n\t$(".$this->_prep_element($element).").{$event}(function(event){\n\t\t{$js}\n\t});\n";
267
-		if($immediatly)
268
-			$this->jquery_code_for_compile[]=$event;
266
+		if (array_search($event, $this->jquery_events)===false) {
267
+					$event="\n\t$(".$this->_prep_element($element).").bind('{$event}',function(event){\n\t\t{$js}\n\t});\n";
268
+		} else {
269
+					$event="\n\t$(".$this->_prep_element($element).").{$event}(function(event){\n\t\t{$js}\n\t});\n";
270
+		}
271
+		if($immediatly) {
272
+					$this->jquery_code_for_compile[]=$event;
273
+		}
269 274
 		return $event;
270 275
 	}
271 276
 
@@ -326,8 +331,9 @@  discard block
 block discarded – undo
326 331
 		}
327 332
 		$output=($script_tags===FALSE) ? $script : $this->inline($script);
328 333
 
329
-		if ($view!=NULL)
330
-			$view->setVar($view_var, $output);
334
+		if ($view!=NULL) {
335
+					$view->setVar($view_var, $output);
336
+		}
331 337
 		return $output;
332 338
 	}
333 339
 
@@ -421,7 +427,9 @@  discard block
 block discarded – undo
421 427
 	}
422 428
 
423 429
 	private function minify($input) {
424
-	if(trim($input) === "") return $input;
430
+	if(trim($input) === "") {
431
+		return $input;
432
+	}
425 433
 	return preg_replace(
426 434
 			array(
427 435
 					// Remove comment(s)
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -17,21 +17,21 @@  discard block
 block discarded – undo
17 17
  * jQuery Class
18 18
  */
19 19
 class Jquery {
20
-	use JqueryEventsTrait,JqueryAjaxTrait,JqueryActionsTrait;
20
+	use JqueryEventsTrait, JqueryAjaxTrait, JqueryActionsTrait;
21 21
 	protected $_di;
22 22
 	protected $_ui;
23 23
 	protected $_bootstrap;
24 24
 	protected $_semantic;
25 25
 	protected $libraryFile;
26 26
 	protected $_javascript_folder='js';
27
-	protected $jquery_code_for_load=array ();
28
-	protected $jquery_code_for_compile=array ();
27
+	protected $jquery_code_for_load=array();
28
+	protected $jquery_code_for_compile=array();
29 29
 	protected $jquery_corner_active=FALSE;
30 30
 	protected $jquery_table_sorter_active=FALSE;
31 31
 	protected $jquery_table_sorter_pager_active=FALSE;
32 32
 
33
-	protected $jquery_events=array (
34
-			"bind","blur","change","click","dblclick","delegate","die","error","focus","focusin","focusout","hover","keydown","keypress","keyup","live","load","mousedown","mousseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","off","on","one","ready","resize","scroll","select","submit","toggle","trigger","triggerHandler","undind","undelegate","unload"
33
+	protected $jquery_events=array(
34
+			"bind", "blur", "change", "click", "dblclick", "delegate", "die", "error", "focus", "focusin", "focusout", "hover", "keydown", "keypress", "keyup", "live", "load", "mousedown", "mousseenter", "mouseleave", "mousemove", "mouseout", "mouseover", "mouseup", "off", "on", "one", "ready", "resize", "scroll", "select", "submit", "toggle", "trigger", "triggerHandler", "undind", "undelegate", "unload"
35 35
 	);
36 36
 
37 37
 	public function setDi($di) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 	public function __construct($params) {
63 63
 		$this->params=array();
64
-		foreach ( $params as $key => $val ) {
64
+		foreach ($params as $key => $val) {
65 65
 				$this->params[$key]=$params[$key];
66 66
 		}
67 67
 	}
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
 	 */
136 136
 	public function _output($array_js='') {
137 137
 		if (!is_array($array_js)) {
138
-			$array_js=array (
138
+			$array_js=array(
139 139
 					$array_js
140 140
 			);
141 141
 		}
142 142
 
143
-		foreach ( $array_js as $js ) {
143
+		foreach ($array_js as $js) {
144 144
 			$this->jquery_code_for_compile[]="\t$js\n";
145 145
 		}
146 146
 	}
@@ -152,12 +152,12 @@  discard block
 block discarded – undo
152 152
 	 * @param string $param
153 153
 	 * @param boolean $immediatly delayed if false
154 154
 	 */
155
-	public function _genericCallValue($jQueryCall,$element='this', $param="", $immediatly=false) {
155
+	public function _genericCallValue($jQueryCall, $element='this', $param="", $immediatly=false) {
156 156
 		$element=$this->_prep_element($element);
157 157
 		if (isset($param)) {
158 158
 			$param=$this->_prep_value($param);
159 159
 			$str="$({$element}).{$jQueryCall}({$param});";
160
-		} else
160
+		}else
161 161
 			$str="$({$element}).{$jQueryCall}();";
162 162
 			if ($immediatly)
163 163
 				$this->jquery_code_for_compile[]=$str;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 * @param boolean $immediatly delayed if false
172 172
 	 * @return string
173 173
 	 */
174
-	public function _genericCallElement($jQueryCall,$to='this', $element, $immediatly=false) {
174
+	public function _genericCallElement($jQueryCall, $to='this', $element, $immediatly=false) {
175 175
 		$to=$this->_prep_element($to);
176 176
 		$element=$this->_prep_element($element);
177 177
 		$str="$({$to}).{$jQueryCall}({$element});";
@@ -189,12 +189,12 @@  discard block
 block discarded – undo
189 189
 	 */
190 190
 	public function sortable($element, $options=array()) {
191 191
 		if (count($options)>0) {
192
-			$sort_options=array ();
193
-			foreach ( $options as $k => $v ) {
192
+			$sort_options=array();
193
+			foreach ($options as $k => $v) {
194 194
 				$sort_options[]="\n\t\t".$k.': '.$v."";
195 195
 			}
196 196
 			$sort_options=implode(",", $sort_options);
197
-		} else {
197
+		}else {
198 198
 			$sort_options='';
199 199
 		}
200 200
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * @param boolean $stopPropagation Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event.
223 223
 	 * @return string
224 224
 	 */
225
-	public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true) {
225
+	public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false, $immediatly=true) {
226 226
 		if (is_array($js)) {
227 227
 			$js=implode("\n\t\t", $js);
228 228
 		}
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
 			$event="\n\t$(".$this->_prep_element($element).").bind('{$event}',function(event){\n\t\t{$js}\n\t});\n";
237 237
 		else
238 238
 			$event="\n\t$(".$this->_prep_element($element).").{$event}(function(event){\n\t\t{$js}\n\t});\n";
239
-		if($immediatly)
239
+		if ($immediatly)
240 240
 			$this->jquery_code_for_compile[]=$event;
241 241
 		return $event;
242 242
 	}
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 
277 277
 		// External references
278 278
 		$external_scripts=implode('', $this->jquery_code_for_load);
279
-		extract(array (
279
+		extract(array(
280 280
 				'library_src' => $external_scripts
281 281
 		));
282 282
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 		$script.='});';
292 292
 
293 293
 		$this->jquery_code_for_compile=array();
294
-		if($this->params["debug"]==false){
294
+		if ($this->params["debug"]==false) {
295 295
 			$script=$this->minify($script);
296 296
 		}
297 297
 		$output=($script_tags===FALSE) ? $script : $this->inline($script);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	 * @return void
312 312
 	 */
313 313
 	public function _clear_compile() {
314
-		$this->jquery_code_for_compile=array ();
314
+		$this->jquery_code_for_compile=array();
315 315
 	}
316 316
 
317 317
 	/**
@@ -320,12 +320,12 @@  discard block
 block discarded – undo
320 320
 	 */
321 321
 	public function _document_ready($js) {
322 322
 		if (!is_array($js)) {
323
-			$js=array (
323
+			$js=array(
324 324
 					$js
325 325
 			);
326 326
 		}
327 327
 
328
-		foreach ( $js as $script ) {
328
+		foreach ($js as $script) {
329 329
 			$this->jquery_code_for_compile[]=$script;
330 330
 		}
331 331
 	}
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 	 * @return string
340 340
 	 */
341 341
 	public function _prep_element($element) {
342
-		if (strrpos($element, 'this')===false&&strrpos($element, 'event')===false&&strrpos($element, 'self')===false) {
342
+		if (strrpos($element, 'this')===false && strrpos($element, 'event')===false && strrpos($element, 'self')===false) {
343 343
 			$element='"'.addslashes($element).'"';
344 344
 		}
345 345
 		return $element;
@@ -357,14 +357,14 @@  discard block
 block discarded – undo
357 357
 		if (is_array($value)) {
358 358
 			$value=implode(",", $value);
359 359
 		}
360
-		if (strrpos($value, 'this')===false&&strrpos($value, 'event')===false&&strrpos($value, 'self')===false) {
360
+		if (strrpos($value, 'this')===false && strrpos($value, 'event')===false && strrpos($value, 'self')===false) {
361 361
 			$value='"'.$value.'"';
362 362
 		}
363 363
 		return $value;
364 364
 	}
365 365
 
366 366
 	private function minify($input) {
367
-	if(trim($input) === "") return $input;
367
+	if (trim($input)==="") return $input;
368 368
 	return preg_replace(
369 369
 			array(
370 370
 					// Remove comment(s)
Please login to merge, or discard this patch.
Ajax/Semantic.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,6 @@
 block discarded – undo
93 93
 	/**
94 94
 	 * Return a new Semantic Html Breadcrumb
95 95
 	 * @param string $identifier
96
-	 * @param array $elements
97 96
 	 * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true
98 97
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
99 98
 	 * @return HtmlBreadcrumb
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use Ajax\semantic\html\modules\HtmlSticky;
22 22
 
23 23
 class Semantic extends BaseGui {
24
-	use SemanticComponentsTrait,SemanticHtmlElementsTrait;
24
+	use SemanticComponentsTrait, SemanticHtmlElementsTrait;
25 25
 	public function __construct($autoCompile=true) {
26 26
 		parent::__construct($autoCompile=true);
27 27
 	}
@@ -32,24 +32,24 @@  discard block
 block discarded – undo
32 32
 	 * @param array $items
33 33
 	 * @return Ajax\semantic\html\collections\HtmlMenu
34 34
 	 */
35
-	public function htmlMenu($identifier,$items=array()){
36
-		return $this->addHtmlComponent(new HtmlMenu($identifier,$items));
35
+	public function htmlMenu($identifier, $items=array()) {
36
+		return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
37 37
 	}
38 38
 
39 39
 	/**Adds an icon menu
40 40
 	 * @param string $identifier
41 41
 	 * @param array $items icons
42 42
 	 */
43
-	public function htmlIconMenu($identifier,$items=array()){
44
-		return $this->addHtmlComponent(new HtmlIconMenu($identifier,$items));
43
+	public function htmlIconMenu($identifier, $items=array()) {
44
+		return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
45 45
 	}
46 46
 
47 47
 	/**Adds an labeled icon menu
48 48
 	 * @param string $identifier
49 49
 	 * @param array $items icons
50 50
 	 */
51
-	public function htmlLabeledIconMenu($identifier,$items=array()){
52
-		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier,$items));
51
+	public function htmlLabeledIconMenu($identifier, $items=array()) {
52
+		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
53 53
 	}
54 54
 
55 55
 	/**
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
 	 * @param string $value
58 58
 	 * @param array $items
59 59
 	 */
60
-	public function htmlDropdown($identifier, $value="", $items=array()){
61
-		return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items));
60
+	public function htmlDropdown($identifier, $value="", $items=array()) {
61
+		return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
62 62
 	}
63 63
 
64 64
 	/**
@@ -66,16 +66,16 @@  discard block
 block discarded – undo
66 66
 	 * @param string $identifier
67 67
 	 * @param string $content
68 68
 	 */
69
-	public function htmlMessage($identifier, $content=""){
70
-		return $this->addHtmlComponent(new HtmlMessage($identifier,$content));
69
+	public function htmlMessage($identifier, $content="") {
70
+		return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
71 71
 	}
72 72
 
73 73
 	/**
74 74
 	 * @param string $identifier
75 75
 	 * @param mixed $content
76 76
 	 */
77
-	public function htmlPopup(BaseHtml $container,$identifier,$content){
78
-		return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content));
77
+	public function htmlPopup(BaseHtml $container, $identifier, $content) {
78
+		return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
79 79
 	}
80 80
 
81 81
 	/**
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 	 * @param boolean $createCols
86 86
 	 * @param boolean $implicitRows
87 87
 	 */
88
-	public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
89
-		return $this->addHtmlComponent(new HtmlGrid($identifier,$numRows,$numCols,$createCols,$implicitRows));
88
+	public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
89
+		return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
90 90
 	}
91 91
 
92 92
 
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
100 100
 	 * @return HtmlBreadcrumb
101 101
 	 */
102
-	public function htmlBreadcrumb( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
103
-		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier,$items,$autoActive,$startIndex,$hrefFunction));
102
+	public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) {
103
+		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier, $items, $autoActive, $startIndex, $hrefFunction));
104 104
 	}
105 105
 
106 106
 	/**
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
 	 * @param string $identifier
118 118
 	 * @return HtmlAccordion
119 119
 	 */
120
-	public function htmlAccordionMenu($identifier,$items=array()) {
121
-		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier,$items));
120
+	public function htmlAccordionMenu($identifier, $items=array()) {
121
+		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier, $items));
122 122
 	}
123 123
 
124 124
 	/**
@@ -126,11 +126,11 @@  discard block
 block discarded – undo
126 126
 	 * @param string $identifier
127 127
 	 * @param array $elements
128 128
 	 */
129
-	public function htmlForm($identifier,$elements=array()) {
130
-		return $this->addHtmlComponent(new HtmlForm($identifier,$elements));
129
+	public function htmlForm($identifier, $elements=array()) {
130
+		return $this->addHtmlComponent(new HtmlForm($identifier, $elements));
131 131
 	}
132 132
 
133
-	public function htmlSticky($identifier,$content=array()) {
134
-		return $this->addHtmlComponent(new HtmlSticky($identifier,$content));
133
+	public function htmlSticky($identifier, $content=array()) {
134
+		return $this->addHtmlComponent(new HtmlSticky($identifier, $content));
135 135
 	}
136 136
 }
137 137
\ No newline at end of file
Please login to merge, or discard this patch.