Completed
Push — master ( e9bdcb...b0560a )
by Jean-Christophe
04:52
created
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.
Ajax/semantic/html/collections/form/HtmlFormCheckbox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 class HtmlFormCheckbox extends HtmlFormField {
16 16
 	use CheckboxTrait;
17 17
 	public function __construct($identifier, $label=NULL, $value=NULL, $type=NULL) {
18
-		parent::__construct("field-".$identifier, new HtmlCheckbox($identifier,$label,$value,$type));
18
+		parent::__construct("field-".$identifier, new HtmlCheckbox($identifier, $label, $value, $type));
19 19
 	}
20 20
 
21 21
 	public static function slider($identifier, $label="", $value=NULL) {
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormFields.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@  discard block
 block discarded – undo
29 29
 				if (\is_string($end)) {
30 30
 					$label=$end;
31 31
 					\array_pop($fields);
32
-				} else
32
+				}else
33 33
 					$label=NULL;
34 34
 			}
35 35
 		}
36 36
 		if (isset($label))
37 37
 			$this->setLabel($label);
38
-		foreach ( $fields as $field ) {
38
+		foreach ($fields as $field) {
39 39
 			$this->addItem($field);
40 40
 		}
41 41
 		return $this;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		if ($this->_equalWidth) {
66 66
 			$count=$this->count();
67 67
 			$this->addToProperty("class", Wide::getConstants()["W".$count]." fields");
68
-		} else
68
+		}else
69 69
 			$this->addToProperty("class", "fields");
70 70
 		return parent::compile($js, $view);
71 71
 	}
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 	}
97 97
 
98 98
 	public static function radios($name, $items=array(), $label=NULL, $value=null, $type=NULL) {
99
-		$fields=array ();
99
+		$fields=array();
100 100
 		$i=0;
101
-		foreach ( $items as $val => $caption ) {
101
+		foreach ($items as $val => $caption) {
102 102
 			$itemO=new HtmlFormRadio($name."-".$i++, $name, $caption, $val, $type);
103 103
 			if ($val===$value) {
104 104
 				$itemO->getField()->getField()->setProperty("checked", "");
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
 	}
113 113
 
114 114
 	public static function checkeds($name, $items=array(), $label=NULL, $values=array(), $type=NULL) {
115
-		$fields=array ();
115
+		$fields=array();
116 116
 		$i=0;
117
-		foreach ( $items as $val => $caption ) {
117
+		foreach ($items as $val => $caption) {
118 118
 			$itemO=new HtmlFormCheckbox($name."-".$i++, $name, $caption, $val, $type);
119 119
 			if (\array_search($val, $values)!==false) {
120 120
 				$itemO->getField()->getField()->setProperty("checked", "");
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/checkbox/AbstractCheckbox.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use Ajax\semantic\html\base\constants\CheckboxType;
7 7
 
8 8
 abstract class AbstractCheckbox extends HtmlSemDoubleElement {
9
-	protected $_params=array ();
9
+	protected $_params=array();
10 10
 
11 11
 	public function __construct($identifier, $name=NULL, $label=NULL, $value=NULL, $inputType="checkbox", $type="checkbox") {
12 12
 		parent::__construct("ck-".$identifier, "div", "ui ".$type);
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
 	 * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
74 74
 	 */
75 75
 	public function attachEvent($selector, $action=NULL) {
76
-		if (isset($action)!==false||\is_numeric($action)===true) {
76
+		if (isset($action)!==false || \is_numeric($action)===true) {
77 77
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'", "'.$action.'");';
78
-		} else {
78
+		}else {
79 79
 			$js='$("#%identifier%").checkbox("attach events", "'.$selector.'");';
80 80
 		}
81 81
 		$js=\str_replace("%identifier%", $this->identifier, $js);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	public function attachEvents($events=array()) {
91 91
 		if (\is_array($events)) {
92
-			foreach ( $events as $action => $selector ) {
92
+			foreach ($events as $action => $selector) {
93 93
 				$this->attachEvent($selector, $action);
94 94
 			}
95 95
 		}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlList.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		if (\is_array($value)) {
22 22
 			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value[0]);
23 23
 			$item->addIcon($value[1]);
24
-		} else
24
+		}else
25 25
 			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value);
26 26
 		return $item;
27 27
 	}
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	}
36 36
 
37 37
 	public function asLink() {
38
-		$this->addToPropertyCtrl("class", "link", array ("link" ));
38
+		$this->addToPropertyCtrl("class", "link", array("link"));
39 39
 		return $this->contentAs("a");
40 40
 	}
41 41
 
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
 			$masterO->setClass("item");
72 72
 			$this->addItem($masterO);
73 73
 		}
74
-		$fields=array ();
74
+		$fields=array();
75 75
 		$i=0;
76
-		foreach ( $items as $val => $caption ) {
76
+		foreach ($items as $val => $caption) {
77 77
 			$itemO=new HtmlFormCheckbox($identifier."-".$i++, $caption, $val, "child");
78 78
 			if (\array_search($val, $values)!==false) {
79 79
 				$itemO->getField()->getField()->setProperty("checked", "");
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			$list=new HtmlList("", $fields);
86 86
 			$list->setClass("list");
87 87
 			$masterO->addContent($list);
88
-		} else {
88
+		}else {
89 89
 			$this->addList($fields);
90 90
 		}
91 91
 		$this->_hasCheckedList=true;
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlMenu.php 1 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.
Ajax/semantic/html/elements/HtmlSegment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
  * @version 1.001
18 18
  */
19 19
 class HtmlSegment extends HtmlSemDoubleElement {
20
-	use AttachedTrait,TextAlignmentTrait;
20
+	use AttachedTrait, TextAlignmentTrait;
21 21
 
22 22
 	public function __construct($identifier, $content="") {
23 23
 		parent::__construct($identifier, "div", "ui segment");
24
-		$this->_variations=\array_merge($this->_variations, [ Variation::PADDED,Variation::COMPACT ]);
25
-		$this->_states=\array_merge($this->_states, [ State::LOADING ]);
24
+		$this->_variations=\array_merge($this->_variations, [Variation::PADDED, Variation::COMPACT]);
25
+		$this->_states=\array_merge($this->_states, [State::LOADING]);
26 26
 		$this->content=$content;
27 27
 	}
28 28
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	public function setSens($sens="vertical") {
39
-		return $this->addToPropertyCtrl("class", $sens, array ("vertical","horizontal" ));
39
+		return $this->addToPropertyCtrl("class", $sens, array("vertical", "horizontal"));
40 40
 	}
41 41
 
42 42
 	public function setEmphasis($value=Emphasis::SECONDARY) {
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlButton.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	}
55 55
 
56 56
 	public function setFocusable($value=true) {
57
-		if ($value === true)
57
+		if ($value===true)
58 58
 			$this->setProperty("tabindex", "0");
59 59
 		else {
60 60
 			$this->removeProperty("tabindex");
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
 
65 65
 	public function setAnimated($content, $animation="") {
66 66
 		$this->setTagName("div");
67
-		$this->addToProperty("class", "animated " . $animation);
68
-		$visible=new HtmlSemDoubleElement("visible-" . $this->identifier, "div");
67
+		$this->addToProperty("class", "animated ".$animation);
68
+		$visible=new HtmlSemDoubleElement("visible-".$this->identifier, "div");
69 69
 		$visible->setClass("visible content");
70 70
 		$visible->setContent($this->content);
71
-		$hidden=new HtmlSemDoubleElement("hidden-" . $this->identifier, "div");
71
+		$hidden=new HtmlSemDoubleElement("hidden-".$this->identifier, "div");
72 72
 		$hidden->setClass("hidden content");
73 73
 		$hidden->setContent($content);
74
-		$this->content=array ($visible,$hidden );
74
+		$this->content=array($visible, $hidden);
75 75
 		return $hidden;
76 76
 	}
77 77
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	public function asIcon($icon) {
84 84
 		$iconO=$icon;
85 85
 		if (\is_string($icon)) {
86
-			$iconO=new HtmlIcon("icon-" . $this->identifier, $icon);
86
+			$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
87 87
 		}
88 88
 		$this->addToProperty("class", "icon");
89 89
 		$this->content=$iconO;
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
 	public function addLabel($caption, $before=false) {
105 105
 		$this->tagName="div";
106 106
 		$this->addToProperty("class", "labeled");
107
-		$this->content=new HtmlButton("button-" . $this->identifier, $this->content);
107
+		$this->content=new HtmlButton("button-".$this->identifier, $this->content);
108 108
 		$this->content->setTagName("div");
109
-		$label=new HtmlLabel("label-" . $this->identifier, $caption, "a");
109
+		$label=new HtmlLabel("label-".$this->identifier, $caption, "a");
110 110
 		$label->setBasic();
111 111
 		$this->addContent($label, $before);
112 112
 		return $label;
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 	 */
119 119
 	public function fromArray($array) {
120 120
 		$array=parent::fromArray($array);
121
-		foreach ( $array as $key => $value ) {
121
+		foreach ($array as $key => $value) {
122 122
 			$this->setProperty($key, $value);
123 123
 		}
124 124
 		return $array;
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	}
182 182
 
183 183
 	public static function social($identifier, $social, $value=NULL) {
184
-		if ($value === NULL)
184
+		if ($value===NULL)
185 185
 			$value=\ucfirst($social);
186 186
 		$return=new HtmlButton($identifier, $value);
187 187
 		$return->addIcon($social);
Please login to merge, or discard this patch.