Completed
Push — master ( 751bb4...735cac )
by Jean-Christophe
04:44
created
Ajax/semantic/html/content/HtmlStepItem.php 1 patch
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.
Ajax/semantic/html/elements/HtmlLabel.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 
11 11
 class HtmlLabel extends HtmlSemDoubleElement {
12 12
 	use LabeledIconTrait;
13
-	public function __construct($identifier,$caption="",$icon=NULL,$tagName="div") {
14
-		parent::__construct($identifier,$tagName,"ui label");
13
+	public function __construct($identifier, $caption="", $icon=NULL, $tagName="div") {
14
+		parent::__construct($identifier, $tagName, "ui label");
15 15
 		$this->content=$caption;
16
-		if(isset($icon))
16
+		if (isset($icon))
17 17
 			$this->addIcon($icon);
18 18
 	}
19 19
 
@@ -21,33 +21,33 @@  discard block
 block discarded – undo
21 21
 	 * @param string $side
22 22
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
23 23
 	 */
24
-	public function setPointing($value=Direction::NONE){
25
-		return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing"));
24
+	public function setPointing($value=Direction::NONE) {
25
+		return $this->addToPropertyCtrl("class", $value." pointing", Direction::getConstantValues("pointing"));
26 26
 	}
27 27
 
28 28
 	/**
29 29
 	 * @param string $side
30 30
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
31 31
 	 */
32
-	public function toCorner($side="left"){
33
-		return $this->addToPropertyCtrl("class", $side." corner",array("right corner","left corner"));
32
+	public function toCorner($side="left") {
33
+		return $this->addToPropertyCtrl("class", $side." corner", array("right corner", "left corner"));
34 34
 	}
35 35
 
36 36
 	/**
37 37
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
38 38
 	 */
39
-	public function asTag(){
39
+	public function asTag() {
40 40
 		return $this->addToProperty("class", "tag");
41 41
 	}
42 42
 
43 43
 	/**
44 44
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
45 45
 	 */
46
-	public function asLink(){
46
+	public function asLink() {
47 47
 		return $this->setTagName("a");
48 48
 	}
49 49
 
50
-	public function setBasic(){
50
+	public function setBasic() {
51 51
 		return $this->addToProperty("class", "basic");
52 52
 	}
53 53
 
@@ -58,28 +58,28 @@  discard block
 block discarded – undo
58 58
 	 * @param string $before
59 59
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
60 60
 	 */
61
-	public function addImage($src,$alt="",$before=true){
61
+	public function addImage($src, $alt="", $before=true) {
62 62
 		$this->addToProperty("class", "image");
63
-		return $this->addContent(new HtmlImg("image-".$this->identifier,$src,$alt),$before);
63
+		return $this->addContent(new HtmlImg("image-".$this->identifier, $src, $alt), $before);
64 64
 	}
65 65
 
66 66
 	/**
67 67
 	 * @param string $detail
68 68
 	 * @return \Ajax\common\html\HtmlDoubleElement
69 69
 	 */
70
-	public function addDetail($detail){
71
-		$div=new HtmlDoubleElement("detail-".$this->identifier,$this->tagName);
70
+	public function addDetail($detail) {
71
+		$div=new HtmlDoubleElement("detail-".$this->identifier, $this->tagName);
72 72
 		$div->setClass("detail");
73 73
 		$div->setContent($detail);
74 74
 		$this->addContent($div);
75 75
 		return $div;
76 76
 	}
77 77
 
78
-	public function asRibbon(){
78
+	public function asRibbon() {
79 79
 		return $this->addToPropertyCtrl("class", "ribbon", array("ribbon"));
80 80
 	}
81 81
 
82
-	public static function ribbon($identifier,$caption){
83
-		return (new HtmlLabel($identifier,$caption))->asRibbon();
82
+	public static function ribbon($identifier, $caption) {
83
+		return (new HtmlLabel($identifier, $caption))->asRibbon();
84 84
 	}
85 85
 }
86 86
\ No newline at end of file
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/traits/SemanticHtmlElementsTrait.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	 * @param boolean $asIcons
43 43
 	 * @return HtmlButtonGroups
44 44
 	 */
45
-	public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){
46
-		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements,$asIcons));
45
+	public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) {
46
+		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
47 47
 	}
48 48
 
49 49
 	/**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 * @param string $content
53 53
 	 * @return HtmlContainer
54 54
 	 */
55
-	public function htmlContainer($identifier,$content=""){
55
+	public function htmlContainer($identifier, $content="") {
56 56
 		return $this->addHtmlComponent(new HtmlContainer($identifier, $content));
57 57
 	}
58 58
 
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 	 * @param string $content
62 62
 	 * @return HtmlDivider
63 63
 	 */
64
-	public function htmlDivider($identifier,$content="",$tagName="div"){
65
-		return $this->addHtmlComponent(new HtmlDivider($identifier, $content,$tagName));
64
+	public function htmlDivider($identifier, $content="", $tagName="div") {
65
+		return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName));
66 66
 	}
67 67
 
68 68
 	/**
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 	 * @param string $type
73 73
 	 * @return HtmlHeader
74 74
 	 */
75
-	public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){
76
-		return $this->addHtmlComponent(new HtmlHeader($identifier,$niveau,$content,$type));
75
+	public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") {
76
+		return $this->addHtmlComponent(new HtmlHeader($identifier, $niveau, $content, $type));
77 77
 	}
78 78
 
79 79
 	/**
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 * @param string $icon
82 82
 	 * @return HtmlIcon
83 83
 	 */
84
-	public function htmlIcon($identifier,$icon){
84
+	public function htmlIcon($identifier, $icon) {
85 85
 		return $this->addHtmlComponent(new HtmlIcon($identifier, $icon));
86 86
 	}
87 87
 
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
 	 * @param array $icons
92 92
 	 * @return HtmlIconGroups
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
 		}
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
 	 * @param string $placeholder
114 114
 	 * @return HtmlInput
115 115
 	 */
116
-	public function htmlInput($identifier,$type="text",$value="",$placeholder=""){
117
-		return $this->addHtmlComponent(new HtmlInput($identifier,$type,$value,$placeholder));
116
+	public function htmlInput($identifier, $type="text", $value="", $placeholder="") {
117
+		return $this->addHtmlComponent(new HtmlInput($identifier, $type, $value, $placeholder));
118 118
 	}
119 119
 
120 120
 	/**
@@ -123,8 +123,8 @@  discard block
 block discarded – undo
123 123
 	 * @param string $tagName
124 124
 	 * @return HtmlLabel
125 125
 	 */
126
-	public function htmlLabel($identifier,$content="",$tagName="div"){
127
-		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$tagName));
126
+	public function htmlLabel($identifier, $content="", $tagName="div") {
127
+		return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $tagName));
128 128
 	}
129 129
 
130 130
 	/**
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
 	 * @param array $items
134 134
 	 * @return HtmlList
135 135
 	 */
136
-	public function htmlList($identifier,$items=array()){
137
-		return $this->addHtmlComponent(new HtmlList($identifier,$items));
136
+	public function htmlList($identifier, $items=array()) {
137
+		return $this->addHtmlComponent(new HtmlList($identifier, $items));
138 138
 	}
139 139
 
140 140
 	/**
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
 	 * @param string $content
144 144
 	 * @return HtmlSegment
145 145
 	 */
146
-	public function htmlSegment($identifier, $content=""){
147
-		return $this->addHtmlComponent(new HtmlSegment($identifier,$content));
146
+	public function htmlSegment($identifier, $content="") {
147
+		return $this->addHtmlComponent(new HtmlSegment($identifier, $content));
148 148
 	}
149 149
 
150 150
 	/**
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
 	 * @param array $items the segments
154 154
 	 * @return HtmlSegmentGroups
155 155
 	 */
156
-	public function htmlSegmentGroups($identifier, $items=array()){
157
-		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier,$items));
156
+	public function htmlSegmentGroups($identifier, $items=array()) {
157
+		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items));
158 158
 	}
159 159
 
160 160
 	/**
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
 	 * @param RevealType|string $type
165 165
 	 * @param Direction|string $attributeType
166 166
 	 */
167
-	public function htmlReveal($identifier, $visibleContent,$hiddenContent,$type=RevealType::FADE,$attributeType=NULL){
168
-		return $this->addHtmlComponent(new HtmlReveal($identifier,$visibleContent,$hiddenContent,$type,$attributeType));
167
+	public function htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL) {
168
+		return $this->addHtmlComponent(new HtmlReveal($identifier, $visibleContent, $hiddenContent, $type, $attributeType));
169 169
 	}
170 170
 
171
-	public function htmlStep($identifier, $steps=array()){
172
-		return $this->addHtmlComponent(new HtmlStep($identifier,$steps));
171
+	public function htmlStep($identifier, $steps=array()) {
172
+		return $this->addHtmlComponent(new HtmlStep($identifier, $steps));
173 173
 	}
174 174
 }
175 175
\ No newline at end of file
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/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.
Ajax/semantic/html/elements/HtmlHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 		if (isset($type)) {
19 19
 			if ($type=="page") {
20 20
 				$this->asPageHeader($niveau);
21
-			} else
21
+			}else
22 22
 				$this->asContentHeader($niveau);
23 23
 		}
24 24
 		$this->content=$content;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		if (!\is_object($title)) {
53 53
 			$this->content=new HtmlDoubleElement("content-".$this->identifier, "div");
54 54
 			$this->content->setContent($title);
55
-		} else {
55
+		}else {
56 56
 			$this->content=$title;
57 57
 		}
58 58
 		$this->content->setClass("content");
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlCollectionsTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	 * @param int $rowCount
14 14
 	 * @param int $colCount
15 15
 	 */
16
-	public function htmlTable($identifier, $rowCount, $colCount){
16
+	public function htmlTable($identifier, $rowCount, $colCount) {
17 17
 		return $this->addHtmlComponent(new HtmlTable($identifier, $rowCount, $colCount));
18 18
 	}
19 19
 }
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/Semantic.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 use Ajax\semantic\traits\SemanticHtmlModulesTrait;
24 24
 
25 25
 class Semantic extends BaseGui {
26
-	use SemanticComponentsTrait,SemanticHtmlElementsTrait,SemanticHtmlCollectionsTrait,
26
+	use SemanticComponentsTrait, SemanticHtmlElementsTrait, SemanticHtmlCollectionsTrait,
27 27
 	SemanticHtmlModulesTrait;
28 28
 
29 29
 	public function __construct($autoCompile=true) {
@@ -36,24 +36,24 @@  discard block
 block discarded – undo
36 36
 	 * @param array $items
37 37
 	 * @return Ajax\semantic\html\collections\HtmlMenu
38 38
 	 */
39
-	public function htmlMenu($identifier,$items=array()){
40
-		return $this->addHtmlComponent(new HtmlMenu($identifier,$items));
39
+	public function htmlMenu($identifier, $items=array()) {
40
+		return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
41 41
 	}
42 42
 
43 43
 	/**Adds an icon menu
44 44
 	 * @param string $identifier
45 45
 	 * @param array $items icons
46 46
 	 */
47
-	public function htmlIconMenu($identifier,$items=array()){
48
-		return $this->addHtmlComponent(new HtmlIconMenu($identifier,$items));
47
+	public function htmlIconMenu($identifier, $items=array()) {
48
+		return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
49 49
 	}
50 50
 
51 51
 	/**Adds an labeled icon menu
52 52
 	 * @param string $identifier
53 53
 	 * @param array $items icons
54 54
 	 */
55
-	public function htmlLabeledIconMenu($identifier,$items=array()){
56
-		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier,$items));
55
+	public function htmlLabeledIconMenu($identifier, $items=array()) {
56
+		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
57 57
 	}
58 58
 
59 59
 	/**
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 	 * @param string $value
62 62
 	 * @param array $items
63 63
 	 */
64
-	public function htmlDropdown($identifier, $value="", $items=array()){
65
-		return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items));
64
+	public function htmlDropdown($identifier, $value="", $items=array()) {
65
+		return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
66 66
 	}
67 67
 
68 68
 	/**
@@ -70,16 +70,16 @@  discard block
 block discarded – undo
70 70
 	 * @param string $identifier
71 71
 	 * @param string $content
72 72
 	 */
73
-	public function htmlMessage($identifier, $content=""){
74
-		return $this->addHtmlComponent(new HtmlMessage($identifier,$content));
73
+	public function htmlMessage($identifier, $content="") {
74
+		return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
75 75
 	}
76 76
 
77 77
 	/**
78 78
 	 * @param string $identifier
79 79
 	 * @param mixed $content
80 80
 	 */
81
-	public function htmlPopup(BaseHtml $container,$identifier,$content){
82
-		return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content));
81
+	public function htmlPopup(BaseHtml $container, $identifier, $content) {
82
+		return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
83 83
 	}
84 84
 
85 85
 	/**
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
 	 * @param boolean $createCols
90 90
 	 * @param boolean $implicitRows
91 91
 	 */
92
-	public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
93
-		return $this->addHtmlComponent(new HtmlGrid($identifier,$numRows,$numCols,$createCols,$implicitRows));
92
+	public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
93
+		return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
94 94
 	}
95 95
 
96 96
 
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 	 * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()}
104 104
 	 * @return HtmlBreadcrumb
105 105
 	 */
106
-	public function htmlBreadcrumb( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
107
-		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier,$items,$autoActive,$startIndex,$hrefFunction));
106
+	public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) {
107
+		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier, $items, $autoActive, $startIndex, $hrefFunction));
108 108
 	}
109 109
 
110 110
 	/**
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	 * @param string $identifier
122 122
 	 * @return HtmlAccordion
123 123
 	 */
124
-	public function htmlAccordionMenu($identifier,$items=array()) {
125
-		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier,$items));
124
+	public function htmlAccordionMenu($identifier, $items=array()) {
125
+		return $this->addHtmlComponent(new HtmlAccordionMenu($identifier, $items));
126 126
 	}
127 127
 
128 128
 	/**
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
 	 * @param string $identifier
131 131
 	 * @param array $elements
132 132
 	 */
133
-	public function htmlForm($identifier,$elements=array()) {
134
-		return $this->addHtmlComponent(new HtmlForm($identifier,$elements));
133
+	public function htmlForm($identifier, $elements=array()) {
134
+		return $this->addHtmlComponent(new HtmlForm($identifier, $elements));
135 135
 	}
136 136
 
137
-	public function htmlSticky($identifier,$content=array()) {
138
-		return $this->addHtmlComponent(new HtmlSticky($identifier,$content));
137
+	public function htmlSticky($identifier, $content=array()) {
138
+		return $this->addHtmlComponent(new HtmlSticky($identifier, $content));
139 139
 	}
140 140
 }
141 141
\ No newline at end of file
Please login to merge, or discard this patch.