Completed
Push — master ( 06f62d...424d4e )
by Jean-Christophe
03:13
created
Ajax/semantic/html/content/HtmlListItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 
8 8
 class HtmlListItem extends HtmlSemDoubleElement {
9 9
 	protected $image;
10
-	public function __construct($identifier,$content) {
10
+	public function __construct($identifier, $content) {
11 11
 		parent::__construct($identifier, "div", "item");
12 12
 		$this->_template='<%tagName% id="%identifier%" %properties%>%image%%content%</%tagName%>';
13 13
 		$this->content=$content;
14 14
 	}
15
-	public function addIcon($icon){
15
+	public function addIcon($icon) {
16 16
 		$content=$this->content;
17
-		$this->content=new HtmlSemDoubleElement("content-".$this->identifier,"div","content");
17
+		$this->content=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content");
18 18
 		$this->content->setContent($content);
19
-		$this->content->addContent(new HtmlIcon("icon".$this->identifier, $icon),true);
19
+		$this->content->addContent(new HtmlIcon("icon".$this->identifier, $icon), true);
20 20
 	}
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/constants/Variation.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 Variation extends BaseEnum {
8
-	const ANIMATED="animated",AVATAR="avatar",COMPACT="compact",FLUID="fluid",INVERTED="inverted",PADDED="padded",TRANSPARENT="transparent";
8
+	const ANIMATED="animated", AVATAR="avatar", COMPACT="compact", FLUID="fluid", INVERTED="inverted", PADDED="padded", TRANSPARENT="transparent";
9 9
 }
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlInput.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -7,30 +7,30 @@  discard block
 block discarded – undo
7 7
 use Ajax\semantic\html\base\constants\Direction;
8 8
 use Ajax\semantic\html\base\constants\Variation;
9 9
 
10
-class HtmlInput extends HtmlSemDoubleElement{
10
+class HtmlInput extends HtmlSemDoubleElement {
11 11
 	private $_hasIcon=false;
12 12
 
13
-	public function __construct($identifier,$type="text",$value="",$placeholder=""){
14
-		parent::__construct("div-".$identifier,"div","ui input");
15
-		$this->content=new \Ajax\common\html\html5\HtmlInput($identifier,$type,$value,$placeholder);
16
-		$this->_states=[State::DISABLED,State::FOCUS,State::ERROR];
13
+	public function __construct($identifier, $type="text", $value="", $placeholder="") {
14
+		parent::__construct("div-".$identifier, "div", "ui input");
15
+		$this->content=new \Ajax\common\html\html5\HtmlInput($identifier, $type, $value, $placeholder);
16
+		$this->_states=[State::DISABLED, State::FOCUS, State::ERROR];
17 17
 		$this->_variations=[Variation::TRANSPARENT];
18 18
 	}
19 19
 
20
-	public function setFocus(){
20
+	public function setFocus() {
21 21
 		$this->addToProperty("class", State::FOCUS);
22 22
 	}
23 23
 
24
-	public function addIcon($icon,$direction=Direction::LEFT){
25
-		if($this->_hasIcon===false){
24
+	public function addIcon($icon, $direction=Direction::LEFT) {
25
+		if ($this->_hasIcon===false) {
26 26
 			$iconO=$icon;
27
-			if(\is_string($icon)){
27
+			if (\is_string($icon)) {
28 28
 				$iconO=new HtmlIcon("icon-".$this->identifier, $icon);
29 29
 			}
30 30
 			$this->addToPropertyCtrl("class", $direction." icon", Direction::getConstantValues("icon"));
31
-			$this->addContent($iconO,false);
31
+			$this->addContent($iconO, false);
32 32
 			$this->_hasIcon=true;
33
-		}else{
33
+		}else {
34 34
 			$iconO=$this->getIcon();
35 35
 			$iconO->setIcon($icon);
36 36
 			$this->addToPropertyCtrl("class", $direction." icon", Direction::getConstantValues("icon"));
@@ -38,49 +38,49 @@  discard block
 block discarded – undo
38 38
 		return $iconO;
39 39
 	}
40 40
 
41
-	public function getIcon(){
42
-		if(\is_array($this->content)){
43
-			foreach ($this->content as $item){
44
-				if($item instanceof HtmlIcon)
41
+	public function getIcon() {
42
+		if (\is_array($this->content)) {
43
+			foreach ($this->content as $item) {
44
+				if ($item instanceof HtmlIcon)
45 45
 					return $item;
46 46
 			}
47 47
 		}
48 48
 	}
49 49
 
50
-	public function addLoading(){
51
-		if($this->_hasIcon===false){
50
+	public function addLoading() {
51
+		if ($this->_hasIcon===false) {
52 52
 			throw new \Exception("Input must have an icon for showing a loader, use addIcon before");
53 53
 		}
54 54
 		return $this->addToProperty("class", State::LOADING);
55 55
 	}
56 56
 
57
-	public function addLabel($label,$direction=Direction::LEFT,$icon=NULL){
57
+	public function addLabel($label, $direction=Direction::LEFT, $icon=NULL) {
58 58
 		$labelO=$label;
59
-		if(\is_object($label)===false){
60
-			$labelO=new HtmlLabel("label-".$this->identifier,$label);
61
-			if(isset($icon))
59
+		if (\is_object($label)===false) {
60
+			$labelO=new HtmlLabel("label-".$this->identifier, $label);
61
+			if (isset($icon))
62 62
 				$labelO->addIcon($icon);
63
-		}else{
63
+		}else {
64 64
 			$labelO->addToPropertyCtrl("class", "label", array("label"));
65 65
 		}
66 66
 		$this->addToProperty("class", $direction." labeled");
67
-		$this->addContent($labelO,\strstr($direction,Direction::LEFT)!==false);
67
+		$this->addContent($labelO, \strstr($direction, Direction::LEFT)!==false);
68 68
 		return $labelO;
69 69
 	}
70 70
 
71
-	public function addLabelToCorner($label,$direction=Direction::LEFT,$icon=NULL){
72
-		return $this->addLabel($label,$direction." corner",$icon)->toCorner($direction);
71
+	public function addLabelToCorner($label, $direction=Direction::LEFT, $icon=NULL) {
72
+		return $this->addLabel($label, $direction." corner", $icon)->toCorner($direction);
73 73
 	}
74 74
 
75
-	public function addAction($action,$direction=Direction::LEFT,$icon=NULL,$labeled=false){
75
+	public function addAction($action, $direction=Direction::LEFT, $icon=NULL, $labeled=false) {
76 76
 		$actionO=$action;
77
-		if(\is_object($action)===false){
78
-			$actionO=new HtmlButton("action-".$this->identifier,$action);
79
-			if(isset($icon))
80
-				$actionO->addIcon($icon,true,$labeled);
77
+		if (\is_object($action)===false) {
78
+			$actionO=new HtmlButton("action-".$this->identifier, $action);
79
+			if (isset($icon))
80
+				$actionO->addIcon($icon, true, $labeled);
81 81
 		}
82 82
 		$this->addToProperty("class", $direction." action");
83
-		$this->addContent($actionO,\strstr($direction,Direction::LEFT)!==false);
83
+		$this->addContent($actionO, \strstr($direction, Direction::LEFT)!==false);
84 84
 		return $actionO;
85 85
 	}
86 86
 
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlList.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,22 +5,22 @@
 block discarded – undo
5 5
 use Ajax\semantic\html\base\HtmlSemCollection;
6 6
 use Ajax\semantic\html\content\HtmlListItem;
7 7
 
8
-class HtmlList extends HtmlSemCollection{
8
+class HtmlList extends HtmlSemCollection {
9 9
 
10 10
 
11
-	public function __construct( $identifier, $items=array()){
12
-		parent::__construct( $identifier, "div", "ui list");
11
+	public function __construct($identifier, $items=array()) {
12
+		parent::__construct($identifier, "div", "ui list");
13 13
 		$this->addItems($items);
14 14
 	}
15 15
 
16 16
 
17
-	protected function createItem($value){
17
+	protected function createItem($value) {
18 18
 		$count=$this->count();
19
-		if(\is_array($value)){
19
+		if (\is_array($value)) {
20 20
 			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value[0]);
21 21
 			$item->addIcon($value[1]);
22 22
 		}else
23
-			$item= new HtmlListItem("item-".$this->identifier."-".$count, $value);
23
+			$item=new HtmlListItem("item-".$this->identifier."-".$count, $value);
24 24
 		return $item;
25 25
 	}
26 26
 
Please login to merge, or discard this patch.
Ajax/Semantic.php 1 patch
Spacing   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 * @param string $identifier
75 75
 	 * @param string $icon
76 76
 	 */
77
-	public function htmlIcon($identifier,$icon){
77
+	public function htmlIcon($identifier, $icon) {
78 78
 		return $this->addHtmlComponent(new HtmlIcon($identifier, $icon));
79 79
 	}
80 80
 
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
 	 * @param string $size
84 84
 	 * @param array $icons
85 85
 	 */
86
-	public function htmlIconGroups($identifier,$size="",$icons=array()){
87
-		$group=new HtmlIconGroups($identifier,$size);
88
-		if(JArray::isAssociative($icons)){
89
-			foreach ($icons as $icon=>$size){
90
-				$group->add($icon,$size);
86
+	public function htmlIconGroups($identifier, $size="", $icons=array()) {
87
+		$group=new HtmlIconGroups($identifier, $size);
88
+		if (JArray::isAssociative($icons)) {
89
+			foreach ($icons as $icon=>$size) {
90
+				$group->add($icon, $size);
91 91
 			}
92
-		}else{
93
-			foreach ($icons as $icon){
92
+		}else {
93
+			foreach ($icons as $icon) {
94 94
 				$group->add($icon);
95 95
 			}
96 96
 		}
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	 * @param array $elements
103 103
 	 * @param boolean $asIcons
104 104
 	 */
105
-	public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){
106
-		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements,$asIcons));
105
+	public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) {
106
+		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
107 107
 	}
108 108
 
109 109
 	/**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 * @param string $identifier
112 112
 	 * @param string $content
113 113
 	 */
114
-	public function htmlContainer($identifier,$content=""){
114
+	public function htmlContainer($identifier, $content="") {
115 115
 		return $this->addHtmlComponent(new HtmlContainer($identifier, $content));
116 116
 	}
117 117
 
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
 	 * @param string $identifier
120 120
 	 * @param string $content
121 121
 	 */
122
-	public function htmlDivider($identifier,$content="",$tagName="div"){
123
-		return $this->addHtmlComponent(new HtmlDivider($identifier, $content,$tagName));
122
+	public function htmlDivider($identifier, $content="", $tagName="div") {
123
+		return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName));
124 124
 	}
125 125
 
126 126
 	/**
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 	 * @param string $content
129 129
 	 * @param string $tagName
130 130
 	 */
131
-	public function htmlLabel($identifier,$content="",$tagName="div"){
132
-		return $this->addHtmlComponent(new HtmlLabel($identifier, $content,$tagName));
131
+	public function htmlLabel($identifier, $content="", $tagName="div") {
132
+		return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $tagName));
133 133
 	}
134 134
 
135 135
 	/**
@@ -137,24 +137,24 @@  discard block
 block discarded – undo
137 137
 	 * @param array $items
138 138
 	 * @return Ajax\semantic\html\collections\HtmlMenu
139 139
 	 */
140
-	public function htmlMenu($identifier,$items=array()){
141
-		return $this->addHtmlComponent(new HtmlMenu($identifier,$items));
140
+	public function htmlMenu($identifier, $items=array()) {
141
+		return $this->addHtmlComponent(new HtmlMenu($identifier, $items));
142 142
 	}
143 143
 
144 144
 	/**Adds an icon menu
145 145
 	 * @param string $identifier
146 146
 	 * @param array $items icons
147 147
 	 */
148
-	public function htmlIconMenu($identifier,$items=array()){
149
-		return $this->addHtmlComponent(new HtmlIconMenu($identifier,$items));
148
+	public function htmlIconMenu($identifier, $items=array()) {
149
+		return $this->addHtmlComponent(new HtmlIconMenu($identifier, $items));
150 150
 	}
151 151
 
152 152
 	/**Adds an labeled icon menu
153 153
 	 * @param string $identifier
154 154
 	 * @param array $items icons
155 155
 	 */
156
-	public function htmlLabeledIconMenu($identifier,$items=array()){
157
-		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier,$items));
156
+	public function htmlLabeledIconMenu($identifier, $items=array()) {
157
+		return $this->addHtmlComponent(new HtmlLabeledIconMenu($identifier, $items));
158 158
 	}
159 159
 
160 160
 	/**
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
 	 * @param string $value
163 163
 	 * @param array $items
164 164
 	 */
165
-	public function htmlDropdown($identifier, $value="", $items=array()){
166
-		return $this->addHtmlComponent(new HtmlDropdown($identifier,$value,$items));
165
+	public function htmlDropdown($identifier, $value="", $items=array()) {
166
+		return $this->addHtmlComponent(new HtmlDropdown($identifier, $value, $items));
167 167
 	}
168 168
 
169 169
 	/**
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
 	 * @param string $identifier
172 172
 	 * @param string $content
173 173
 	 */
174
-	public function htmlMessage($identifier, $content=""){
175
-		return $this->addHtmlComponent(new HtmlMessage($identifier,$content));
174
+	public function htmlMessage($identifier, $content="") {
175
+		return $this->addHtmlComponent(new HtmlMessage($identifier, $content));
176 176
 	}
177 177
 
178 178
 	/**
@@ -180,8 +180,8 @@  discard block
 block discarded – undo
180 180
 	 * @param string $identifier
181 181
 	 * @param string $content
182 182
 	 */
183
-	public function htmlSegment($identifier, $content=""){
184
-		return $this->addHtmlComponent(new HtmlSegment($identifier,$content));
183
+	public function htmlSegment($identifier, $content="") {
184
+		return $this->addHtmlComponent(new HtmlSegment($identifier, $content));
185 185
 	}
186 186
 
187 187
 	/**
@@ -189,16 +189,16 @@  discard block
 block discarded – undo
189 189
 	 * @param string $identifier
190 190
 	 * @param array $items the segments
191 191
 	 */
192
-	public function htmlSegmentGroups($identifier, $items=array()){
193
-		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier,$items));
192
+	public function htmlSegmentGroups($identifier, $items=array()) {
193
+		return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items));
194 194
 	}
195 195
 
196 196
 	/**
197 197
 	 * @param string $identifier
198 198
 	 * @param mixed $content
199 199
 	 */
200
-	public function htmlPopup(BaseHtml $container,$identifier,$content){
201
-		return $this->addHtmlComponent(new HtmlPopup($container,$identifier,$content));
200
+	public function htmlPopup(BaseHtml $container, $identifier, $content) {
201
+		return $this->addHtmlComponent(new HtmlPopup($container, $identifier, $content));
202 202
 	}
203 203
 
204 204
 	/**
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
 	 * @param boolean $createCols
209 209
 	 * @param boolean $implicitRows
210 210
 	 */
211
-	public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
212
-		return $this->addHtmlComponent(new HtmlGrid($identifier,$numRows,$numCols,$createCols,$implicitRows));
211
+	public function htmlGrid($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
212
+		return $this->addHtmlComponent(new HtmlGrid($identifier, $numRows, $numCols, $createCols, $implicitRows));
213 213
 	}
214 214
 
215 215
 	/**
@@ -218,19 +218,19 @@  discard block
 block discarded – undo
218 218
 	 * @param mixed $content
219 219
 	 * @param string $type
220 220
 	 */
221
-	public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){
222
-		return $this->addHtmlComponent(new HtmlHeader($identifier,$niveau,$content,$type));
221
+	public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") {
222
+		return $this->addHtmlComponent(new HtmlHeader($identifier, $niveau, $content, $type));
223 223
 	}
224 224
 
225
-	public function htmlInput($identifier,$type="text",$value="",$placeholder=""){
226
-		return $this->addHtmlComponent(new HtmlInput($identifier,$type,$value,$placeholder));
225
+	public function htmlInput($identifier, $type="text", $value="", $placeholder="") {
226
+		return $this->addHtmlComponent(new HtmlInput($identifier, $type, $value, $placeholder));
227 227
 	}
228 228
 
229
-	public function htmlList($identifier,$items=array()){
230
-		return $this->addHtmlComponent(new HtmlList($identifier,$items));
229
+	public function htmlList($identifier, $items=array()) {
230
+		return $this->addHtmlComponent(new HtmlList($identifier, $items));
231 231
 	}
232 232
 
233
-	public function htmlBreadcrumb( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){
234
-		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier,$items,$autoActive,$startIndex,$hrefFunction));
233
+	public function htmlBreadcrumb($identifier, $items=array(), $autoActive=true, $startIndex=0, $hrefFunction=NULL) {
234
+		return $this->addHtmlComponent(new HtmlBreadcrumb($identifier, $items, $autoActive, $startIndex, $hrefFunction));
235 235
 	}
236 236
 }
237 237
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/components/Dropdown.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 	 * @param string $action one of "select","auto","activate","combo","nothing","hide"
18 18
 	 * @return \Ajax\semantic\components\Dropdown
19 19
 	 */
20
-	public function setAction($action){
21
-		return $this->setParamCtrl("action", $action,array("select","auto","activate","combo","nothing","hide"));
20
+	public function setAction($action) {
21
+		return $this->setParamCtrl("action", $action, array("select", "auto", "activate", "combo", "nothing", "hide"));
22 22
 	}
23 23
 
24 24
 	/**
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 	 * @param string $event Event used to trigger dropdown (Hover, Click, Custom Event)
27 27
 	 * @return \Ajax\semantic\components\Dropdown
28 28
 	 */
29
-	public function setOn($event){
29
+	public function setOn($event) {
30 30
 		return $this->setParam("on", $event);
31 31
 	}
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemNavElement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
 	protected $_contentSeparator="";
22 22
 
23 23
 
24
-	public function __construct($identifier,$tagName,$baseClass){
25
-		parent::__construct($identifier,$tagName,$baseClass);
24
+	public function __construct($identifier, $tagName, $baseClass) {
25
+		parent::__construct($identifier, $tagName, $baseClass);
26 26
 		$this->root="";
27 27
 		$this->attr="data-ajax";
28 28
 	}
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
 	 * @param string $attr the html attribute used to build the elements url
35 35
 	 * @return HtmlNavElement
36 36
 	 */
37
-	public function autoGetOnClick($targetSelector){
38
-		return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
37
+	public function autoGetOnClick($targetSelector) {
38
+		return $this->getOnClick($this->root, $targetSelector, array("attr"=>$this->attr));
39 39
 	}
40 40
 
41
-	public function contentAsString(){
41
+	public function contentAsString() {
42 42
 		return implode($this->_contentSeparator, $this->content);
43 43
 	}
44 44
 
@@ -46,15 +46,15 @@  discard block
 block discarded – undo
46 46
 	 * Generate the jquery script to set the elements to the HtmlNavElement
47 47
 	 * @param JsUtils $jsUtils
48 48
 	 */
49
-	public function jsSetContent(JsUtils $jsUtils){
50
-		$jsUtils->html("#".$this->identifier,str_replace("\"","'", $this->contentAsString()),true);
49
+	public function jsSetContent(JsUtils $jsUtils) {
50
+		$jsUtils->html("#".$this->identifier, str_replace("\"", "'", $this->contentAsString()), true);
51 51
 	}
52 52
 
53 53
 	public function getRoot() {
54 54
 		return $this->root;
55 55
 	}
56 56
 	public function setRoot($root) {
57
-		$this->root = $root;
57
+		$this->root=$root;
58 58
 		return $this;
59 59
 	}
60 60
 	public function getAttr() {
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 	 * @return HtmlNavElement
68 68
 	 */
69 69
 	public function setAttr($attr) {
70
-		$this->attr = $attr;
70
+		$this->attr=$attr;
71 71
 		return $this;
72 72
 	}
73 73
 
74 74
 	public function __call($method, $args) {
75
-		if(isset($this->$method) && is_callable($this->$method)) {
75
+		if (isset($this->$method) && is_callable($this->$method)) {
76 76
 			return call_user_func_array(
77 77
 					$this->$method,
78 78
 					$args
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 		}
81 81
 	}
82 82
 
83
-	public abstract function fromDispatcher($dispatcher,$startIndex=0);
83
+	public abstract function fromDispatcher($dispatcher, $startIndex=0);
84 84
 
85 85
 
86 86
 	public function setContentSeparator($contentSeparator) {
Please login to merge, or discard this patch.
Ajax/semantic/html/base/HtmlSemDoubleElement.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -17,42 +17,42 @@
 block discarded – undo
17 17
 	use BaseTrait;
18 18
 	protected $_popup=NULL;
19 19
 
20
-	public function __construct($identifier, $tagName="p",$baseClass="ui",$content=NULL) {
20
+	public function __construct($identifier, $tagName="p", $baseClass="ui", $content=NULL) {
21 21
 		parent::__construct($identifier, $tagName);
22 22
 		$this->_baseClass=$baseClass;
23 23
 		$this->setClass($baseClass);
24
-		if(isset($content)){
24
+		if (isset($content)) {
25 25
 			$this->content=$content;
26 26
 		}
27 27
 	}
28 28
 
29
-	public function setPopupAttributes($variation=NULL,$popupEvent=NULL){
30
-		if(isset($this->_popup))
31
-			$this->_popup->setAttributes($variation,$popupEvent);
29
+	public function setPopupAttributes($variation=NULL, $popupEvent=NULL) {
30
+		if (isset($this->_popup))
31
+			$this->_popup->setAttributes($variation, $popupEvent);
32 32
 	}
33 33
 
34
-	public function addPopup($title="",$content="",$variation=NULL,$params=array()){
35
-		$this->_popup=new InternalPopup($this,$title,$content,$variation,$params);
34
+	public function addPopup($title="", $content="", $variation=NULL, $params=array()) {
35
+		$this->_popup=new InternalPopup($this, $title, $content, $variation, $params);
36 36
 		return $this;
37 37
 	}
38 38
 
39
-	public function addPopupHtml($html="",$variation=NULL,$params=array()){
39
+	public function addPopupHtml($html="", $variation=NULL, $params=array()) {
40 40
 		$this->_popup=new InternalPopup($this);
41 41
 		$this->_popup->setHtml($html);
42
-		$this->_popup->setAttributes($variation,$params);
42
+		$this->_popup->setAttributes($variation, $params);
43 43
 		return $this;
44 44
 	}
45 45
 
46
-	public function compile(JsUtils $js=NULL, View $view=NULL){
47
-		if(isset($this->_popup))
46
+	public function compile(JsUtils $js=NULL, View $view=NULL) {
47
+		if (isset($this->_popup))
48 48
 			$this->_popup->compile();
49
-		return parent::compile($js,$view);
49
+		return parent::compile($js, $view);
50 50
 	}
51
-	public function run(JsUtils $js){
51
+	public function run(JsUtils $js) {
52 52
 		$this->_bsComponent=$js->semantic()->generic("#".$this->identifier);
53 53
 		parent::run($js);
54 54
 		$this->addEventsOnRun($js);
55
-		if(isset($this->_popup)){
55
+		if (isset($this->_popup)) {
56 56
 			$this->_popup->run($js);
57 57
 		}
58 58
 		return $this->_bsComponent;
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlMenuItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 
8 8
 class HtmlListItem extends HtmlSemDoubleElement {
9 9
 	protected $image;
10
-	public function __construct($identifier,$content) {
10
+	public function __construct($identifier, $content) {
11 11
 		parent::__construct($identifier, "div", "item");
12 12
 		$this->_template='<%tagName% id="%identifier%" %properties%>%image%%content%</%tagName%>';
13 13
 		$this->content=$content;
14 14
 	}
15
-	public function addIcon($icon){
15
+	public function addIcon($icon) {
16 16
 		$content=$this->content;
17
-		$this->content=new HtmlSemDoubleElement("content-".$this->identifier,"div","content");
17
+		$this->content=new HtmlSemDoubleElement("content-".$this->identifier, "div", "content");
18 18
 		$this->content->setContent($content);
19
-		$this->content->addContent(new HtmlIcon("icon".$this->identifier, $icon),true);
19
+		$this->content->addContent(new HtmlIcon("icon".$this->identifier, $icon), true);
20 20
 	}
21 21
 }
22 22
\ No newline at end of file
Please login to merge, or discard this patch.