Completed
Push — master ( 141d55...411df4 )
by Jean-Christophe
02:55
created
Ajax/semantic/html/modules/HtmlShape.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@  discard block
 block discarded – undo
8 8
 use Ajax\common\html\BaseHtml;
9 9
 
10 10
 
11
-class HtmlShape extends HtmlSemCollection{
11
+class HtmlShape extends HtmlSemCollection {
12 12
 
13 13
 	protected $_params=array();
14 14
 	protected $_autoActive=true;
15 15
 
16
-	public function __construct( $identifier, $sides){
17
-		parent::__construct( $identifier, "div", "ui shape");
16
+	public function __construct($identifier, $sides) {
17
+		parent::__construct($identifier, "div", "ui shape");
18 18
 		$this->_template="<%tagName% id='%identifier%' %properties%><div class='sides'>%wrapContentBefore%%content%%wrapContentAfter%</div></%tagName%>";
19 19
 		$this->addItems($sides);
20 20
 	}
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 	 * {@inheritDoc}
24 24
 	 * @see \Ajax\common\html\HtmlCollection::createItem()
25 25
 	 */
26
-	protected function createItem($value){
27
-		if(\is_object($value)===false){
28
-			$value=new HtmlSemDoubleElement("","div","content",$value);
26
+	protected function createItem($value) {
27
+		if (\is_object($value)===false) {
28
+			$value=new HtmlSemDoubleElement("", "div", "content", $value);
29 29
 		}
30 30
 		return new HtmlShapeItem("side-".$this->identifier."-".$this->count(), $value);
31 31
 	}
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	 * {@inheritDoc}
35 35
 	 * @see \Ajax\common\html\HtmlCollection::createCondition()
36 36
 	 */
37
-	protected function createCondition($value){
37
+	protected function createCondition($value) {
38 38
 		return ($value instanceof HtmlShapeItem)===false;
39 39
 	}
40 40
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 * @param int $index
43 43
 	 * @return \Ajax\semantic\html\content\HtmlShapeItem
44 44
 	 */
45
-	public function getSide($index){
45
+	public function getSide($index) {
46 46
 		return $this->getItem($index);
47 47
 	}
48 48
 
@@ -50,96 +50,96 @@  discard block
 block discarded – undo
50 50
 	 * @param int $index
51 51
 	 * @return mixed|NULL
52 52
 	 */
53
-	public function getSideContent($index){
54
-		$item= $this->getItem($index);
55
-		if(isset($item))
53
+	public function getSideContent($index) {
54
+		$item=$this->getItem($index);
55
+		if (isset($item))
56 56
 			return $item->getContent();
57 57
 		return null;
58 58
 	}
59 59
 
60
-	public function jsDo($action){
60
+	public function jsDo($action) {
61 61
 		return "$('#".$this->identifier."').shape('".$action."');";
62 62
 	}
63 63
 
64
-	public function jsFlipLeft(){
64
+	public function jsFlipLeft() {
65 65
 		return $this->jsDo("flip left");
66 66
 	}
67 67
 
68
-	public function jsFlipRight(){
68
+	public function jsFlipRight() {
69 69
 		return $this->jsDo("flip right");
70 70
 	}
71 71
 
72
-	public function jsFlipUp(){
72
+	public function jsFlipUp() {
73 73
 		return $this->jsDo("flip up");
74 74
 	}
75 75
 
76
-	public function jsFlipDown(){
76
+	public function jsFlipDown() {
77 77
 		return $this->jsDo("flip down");
78 78
 	}
79 79
 
80
-	public function jsFlipOver(){
80
+	public function jsFlipOver() {
81 81
 		return $this->jsDo("flip over");
82 82
 	}
83 83
 
84
-	public function jsFlipBack(){
84
+	public function jsFlipBack() {
85 85
 		return $this->jsDo("flip back");
86 86
 	}
87 87
 
88
-	private function doActionOn($element,$event,$what){
89
-		if($element instanceof BaseHtml){
90
-			return $element->on($event, $what,true,true);
88
+	private function doActionOn($element, $event, $what) {
89
+		if ($element instanceof BaseHtml) {
90
+			return $element->on($event, $what, true, true);
91 91
 		}
92 92
 	}
93 93
 
94
-	public function flipLeftOn($element,$event){
94
+	public function flipLeftOn($element, $event) {
95 95
 		return $this->doActionOn($element, $event, $this->jsFlipLeft());
96 96
 	}
97 97
 
98
-	public function flipRightOn($element,$event){
98
+	public function flipRightOn($element, $event) {
99 99
 		return $this->doActionOn($element, $event, $this->jsFlipRight());
100 100
 	}
101 101
 
102
-	public function flipUpOn($element,$event){
102
+	public function flipUpOn($element, $event) {
103 103
 		return $this->doActionOn($element, $event, $this->jsFlipUp());
104 104
 	}
105 105
 
106
-	public function flipDownOn($element,$event){
106
+	public function flipDownOn($element, $event) {
107 107
 		return $this->doActionOn($element, $event, $this->jsFlipDown());
108 108
 	}
109 109
 
110
-	public function flipBackOn($element,$event){
110
+	public function flipBackOn($element, $event) {
111 111
 		return $this->doActionOn($element, $event, $this->jsFlipBack());
112 112
 	}
113 113
 
114
-	public function flipOverOn($element,$event){
114
+	public function flipOverOn($element, $event) {
115 115
 		return $this->doActionOn($element, $event, $this->jsFlipOver());
116 116
 	}
117 117
 
118
-	public function setActiveSide($index){
118
+	public function setActiveSide($index) {
119 119
 		$side=$this->getSide($index);
120
-		if(isset($side)){
120
+		if (isset($side)) {
121 121
 			$side->setActive(true);
122 122
 		}
123 123
 		return $this;
124 124
 	}
125 125
 
126
-	public function asCube(){
126
+	public function asCube() {
127 127
 		return $this->addToPropertyCtrl("class", "cube", ["cube"]);
128 128
 	}
129 129
 
130
-	public function asText(){
130
+	public function asText() {
131 131
 		return $this->addToPropertyCtrl("class", "text", ["text"]);
132 132
 	}
133 133
 
134
-	public function setWidth($width="initial"){
134
+	public function setWidth($width="initial") {
135 135
 		$this->_params["width"]=$width;
136 136
 	}
137
-	public function onChange($jsCode){
138
-		return $this->_params["onChange"]="%function(){" . $jsCode . "}%";
137
+	public function onChange($jsCode) {
138
+		return $this->_params["onChange"]="%function(){".$jsCode."}%";
139 139
 	}
140 140
 
141
-	public function beforeChange($jsCode){
142
-		return $this->_params["beforeChange"]="%function(){" . $jsCode . "}%";
141
+	public function beforeChange($jsCode) {
142
+		return $this->_params["beforeChange"]="%function(){".$jsCode."}%";
143 143
 	}
144 144
 
145 145
 	/*
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
 	 * @see BaseHtml::run()
148 148
 	 */
149 149
 	public function run(JsUtils $js) {
150
-		if (isset($this->_bsComponent) === false)
151
-			$this->_bsComponent=$js->semantic()->shape("#" . $this->identifier, $this->_params);
150
+		if (isset($this->_bsComponent)===false)
151
+			$this->_bsComponent=$js->semantic()->shape("#".$this->identifier, $this->_params);
152 152
 		$this->addEventsOnRun($js);
153 153
 		return $this->_bsComponent;
154 154
 	}
155 155
 
156 156
 	public function compile(JsUtils $js=NULL, &$view=NULL) {
157
-		if($this->_autoActive)
157
+		if ($this->_autoActive)
158 158
 			$this->setActiveSide(0);
159
-		return parent::compile($js,$view);
159
+		return parent::compile($js, $view);
160 160
 	}
161 161
 }
162 162
\ No newline at end of file
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlMessage.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -24,38 +24,38 @@  discard block
 block discarded – undo
24 24
 		$this->setContent($content);
25 25
 	}
26 26
 
27
-	public function addHeader($header){
27
+	public function addHeader($header) {
28 28
 		$headerO=$header;
29
-		if(\is_string($header)){
30
-			$headerO=new HtmlSemDoubleElement("header-".$this->identifier,"div");
29
+		if (\is_string($header)) {
30
+			$headerO=new HtmlSemDoubleElement("header-".$this->identifier, "div");
31 31
 			$headerO->setClass("header");
32 32
 			$headerO->setContent($header);
33 33
 		}
34
-		return $this->addContent($headerO,true);
34
+		return $this->addContent($headerO, true);
35 35
 	}
36 36
 
37
-	public function addList($elements,$ordered=false){
38
-		$list=new HtmlList("list-".$this->identifier,$elements);
37
+	public function addList($elements, $ordered=false) {
38
+		$list=new HtmlList("list-".$this->identifier, $elements);
39 39
 		$list->setOrdered($ordered);
40 40
 		$list->setClass("ui list");
41 41
 		$this->addContent($list);
42 42
 	}
43 43
 
44
-	public function setIcon($icon){
44
+	public function setIcon($icon) {
45 45
 		$this->addToProperty("class", "icon");
46
-		$this->wrapContent("<div class='content'>","</div>");
46
+		$this->wrapContent("<div class='content'>", "</div>");
47 47
 		$this->icon=new HtmlIcon("icon-".$this->identifier, $icon);
48 48
 		return $this;
49 49
 	}
50 50
 
51
-	public function addLoader($loaderIcon="notched circle"){
51
+	public function addLoader($loaderIcon="notched circle") {
52 52
 		$this->setIcon($loaderIcon);
53 53
 		$this->icon->addToIcon("loading");
54 54
 		return $this;
55 55
 	}
56 56
 
57
-	public function setDismissable($dismiss=true){
58
-		if($dismiss===true)
57
+	public function setDismissable($dismiss=true) {
58
+		if ($dismiss===true)
59 59
 			$this->close=new HtmlIcon("close-".$this->identifier, "close");
60 60
 		else
61 61
 			$this->close=NULL;
@@ -66,32 +66,32 @@  discard block
 block discarded – undo
66 66
 	 * {@inheritDoc}
67 67
 	 * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run()
68 68
 	 */
69
-	public function run(JsUtils $js){
69
+	public function run(JsUtils $js) {
70 70
 		parent::run($js);
71
-		if(isset($this->close)){
71
+		if (isset($this->close)) {
72 72
 			$js->execOn("click", "#".$this->identifier." .close", "$(this).closest('.message').transition('fade')");
73 73
 		}
74 74
 	}
75 75
 
76
-	public function setState($visible=true){
77
-		$visible=($visible===true)?"visible":"hidden";
78
-		return $this->addToPropertyCtrl("class", $visible, array("visible","hidden"));
76
+	public function setState($visible=true) {
77
+		$visible=($visible===true) ? "visible" : "hidden";
78
+		return $this->addToPropertyCtrl("class", $visible, array("visible", "hidden"));
79 79
 	}
80 80
 
81
-	public function setVariation($value="floating"){
82
-		return $this->addToPropertyCtrl("class", $value, array("floating","compact"));
81
+	public function setVariation($value="floating") {
82
+		return $this->addToPropertyCtrl("class", $value, array("floating", "compact"));
83 83
 	}
84 84
 
85
-	public function setStyle($style){
85
+	public function setStyle($style) {
86 86
 		return $this->addToPropertyCtrl("class", $style, Style::getConstants());
87 87
 	}
88 88
 
89
-	public function setError(){
89
+	public function setError() {
90 90
 		return $this->setStyle("error");
91 91
 	}
92 92
 
93
-	public function setAttached(HtmlDoubleElement $toElement=NULL){
94
-		if(isset($toElement)){
93
+	public function setAttached(HtmlDoubleElement $toElement=NULL) {
94
+		if (isset($toElement)) {
95 95
 			$toElement->addToProperty("class", "attached");
96 96
 		}
97 97
 		return $this->addToProperty("class", "attached");
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlForm.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 
32 32
 	public function __construct($identifier, $elements=array()) {
33 33
 		parent::__construct($identifier, "form", "ui form");
34
-		$this->_states=[ State::ERROR,State::SUCCESS,State::WARNING,State::DISABLED ];
34
+		$this->_states=[State::ERROR, State::SUCCESS, State::WARNING, State::DISABLED];
35 35
 		$this->setProperty("name", $this->identifier);
36
-		$this->_fields=array ();
36
+		$this->_fields=array();
37 37
 		$this->_validationParams=[];
38 38
 		$this->addItems($elements);
39 39
 	}
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 	 * @param string $caption
56 56
 	 * @return \Ajax\semantic\html\collections\form\HtmlForm
57 57
 	 */
58
-	public function addDivider($caption=NULL){
59
-		return $this->addContent(new HtmlDivider("",$caption));
58
+	public function addDivider($caption=NULL) {
59
+		return $this->addContent(new HtmlDivider("", $caption));
60 60
 	}
61 61
 
62 62
 	public function addFields($fields=NULL, $label=NULL) {
63 63
 		if (isset($fields)) {
64 64
 			if (!$fields instanceof HtmlFormFields) {
65
-				if (\is_array($fields) === false) {
65
+				if (\is_array($fields)===false) {
66 66
 					$fields=\func_get_args();
67 67
 					$end=\end($fields);
68 68
 					if (\is_string($end)) {
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
 						$label=NULL;
73 73
 				}
74 74
 				$this->_fields=\array_merge($this->_fields, $fields);
75
-				$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count(), $fields);
75
+				$fields=new HtmlFormFields("fields-".$this->identifier."-".$this->count(), $fields);
76 76
 			}
77 77
 			if (isset($label))
78 78
 				$fields=new HtmlFormField("", $fields, $label);
79 79
 		} else {
80
-			$fields=new HtmlFormFields("fields-" . $this->identifier . "-" . $this->count());
80
+			$fields=new HtmlFormFields("fields-".$this->identifier."-".$this->count());
81 81
 		}
82 82
 		$this->addItem($fields);
83 83
 		return $fields;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
 	public function addItem($item) {
87 87
 		$item=parent::addItem($item);
88
-		if (\is_subclass_of($item, HtmlFormField::class) === true) {
88
+		if (\is_subclass_of($item, HtmlFormField::class)===true) {
89 89
 			$this->_fields[]=$item;
90 90
 		}
91 91
 		return $item;
@@ -117,10 +117,10 @@  discard block
 block discarded – undo
117 117
 		return $this->addItem($field);
118 118
 	}
119 119
 
120
-	public function addFieldRule($index,$type,$prompt=NULL,$value=NULL){
120
+	public function addFieldRule($index, $type, $prompt=NULL, $value=NULL) {
121 121
 		$field=$this->getItem($index);
122
-		if(isset($field)){
123
-			$field->addRule($type,$prompt,$value);
122
+		if (isset($field)) {
123
+			$field->addRule($type, $prompt, $value);
124 124
 		}
125 125
 		return $this;
126 126
 	}
@@ -148,15 +148,15 @@  discard block
 block discarded – undo
148 148
 	public function run(JsUtils $js) {
149 149
 		$hasValidation=false;
150 150
 		$compo=$js->semantic()->form("#".$this->identifier);
151
-		foreach ($this->_fields as $field){
151
+		foreach ($this->_fields as $field) {
152 152
 			$validation=$field->getValidation();
153
-			if(isset($validation)){
153
+			if (isset($validation)) {
154 154
 				$validation->setIdentifier($field->getField()->getIdentifier());
155 155
 				$compo->addFieldValidation($validation);
156 156
 				$hasValidation=true;
157 157
 			}
158 158
 		}
159
-		if($hasValidation===false){
159
+		if ($hasValidation===false) {
160 160
 			return parent::run($js);
161 161
 		}
162 162
 		$compo->addParams($this->_validationParams);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 		return $this->addToProperty("class", "loading");
170 170
 	}
171 171
 
172
-	public function addErrorMessage(){
172
+	public function addErrorMessage() {
173 173
 		return $this->addContent((new HtmlMessage(""))->setError());
174 174
 	}
175 175
 
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormField.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -12,33 +12,33 @@  discard block
 block discarded – undo
12 12
 class HtmlFormField extends HtmlSemDoubleElement {
13 13
 	protected $_container;
14 14
 	protected $_validation;
15
-	public function __construct($identifier, $field,$label=NULL) {
16
-		parent::__construct($identifier, "div","field");
15
+	public function __construct($identifier, $field, $label=NULL) {
16
+		parent::__construct($identifier, "div", "field");
17 17
 		$this->content=array();
18
-		$this->_states=[State::ERROR,State::DISABLED];
19
-		if(isset($label))
18
+		$this->_states=[State::ERROR, State::DISABLED];
19
+		if (isset($label))
20 20
 			$this->setLabel($label);
21 21
 		$this->setField($field);
22 22
 	}
23 23
 
24
-	public function addPointingLabel($label,$pointing=Direction::NONE){
25
-		$labelO=new HtmlLabel("",$label);
24
+	public function addPointingLabel($label, $pointing=Direction::NONE) {
25
+		$labelO=new HtmlLabel("", $label);
26 26
 		$labelO->setPointing($pointing);
27
-		$this->addContent($labelO,$pointing==="below" || $pointing==="right");
27
+		$this->addContent($labelO, $pointing==="below" || $pointing==="right");
28 28
 		return $labelO;
29 29
 	}
30 30
 
31
-	public function setLabel($label){
31
+	public function setLabel($label) {
32 32
 		$labelO=$label;
33
-		if(\is_string($label)){
34
-			$labelO=new HtmlSemDoubleElement("","label","");
33
+		if (\is_string($label)) {
34
+			$labelO=new HtmlSemDoubleElement("", "label", "");
35 35
 			$labelO->setContent($label);
36
-			$labelO->setProperty("for", \str_replace("field-", "",$this->identifier));
36
+			$labelO->setProperty("for", \str_replace("field-", "", $this->identifier));
37 37
 		}
38 38
 		$this->content["label"]=$labelO;
39 39
 	}
40 40
 
41
-	public function setField($field){
41
+	public function setField($field) {
42 42
 		$this->content["field"]=$field;
43 43
 	}
44 44
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 	 * Returns the label or null
47 47
 	 * @return mixed
48 48
 	 */
49
-	public function getLabel(){
50
-		if(\array_key_exists("label", $this->content))
49
+	public function getLabel() {
50
+		if (\array_key_exists("label", $this->content))
51 51
 			return $this->content["label"];
52 52
 	}
53 53
 
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 	 * Return the field
56 56
 	 * @return mixed
57 57
 	 */
58
-	public function getField(){
58
+	public function getField() {
59 59
 		return $this->content["field"];
60 60
 	}
61 61
 
62 62
 	/**
63 63
 	 * puts the label before or behind
64 64
 	 */
65
-	public function swapLabel(){
65
+	public function swapLabel() {
66 66
 		$label=$this->getLabel();
67 67
 		unset($this->content["label"]);
68 68
 		$this->content["label"]=$label;
@@ -73,31 +73,31 @@  discard block
 block discarded – undo
73 73
 	 * @param int $width
74 74
 	 * @return \Ajax\semantic\html\collections\form\HtmlFormField
75 75
 	 */
76
-	public function setWidth($width){
77
-		if(\is_int($width)){
76
+	public function setWidth($width) {
77
+		if (\is_int($width)) {
78 78
 			$width=Wide::getConstants()["W".$width];
79 79
 		}
80 80
 		$this->addToPropertyCtrl("class", $width, Wide::getConstants());
81
-		if(isset($this->_container)){
81
+		if (isset($this->_container)) {
82 82
 			$this->_container->setEqualWidth(false);
83 83
 		}
84
-		return $this->addToPropertyCtrl("class", "wide",array("wide"));
84
+		return $this->addToPropertyCtrl("class", "wide", array("wide"));
85 85
 	}
86 86
 
87 87
 	/**
88 88
 	 * Field displays an error state
89 89
 	 * @return \Ajax\semantic\html\collections\form\HtmlFormField
90 90
 	 */
91
-	public function setError(){
91
+	public function setError() {
92 92
 		return $this->addToProperty("class", "error");
93 93
 	}
94 94
 
95
-	public function setInline(){
95
+	public function setInline() {
96 96
 		return $this->addToProperty("class", "inline");
97 97
 	}
98 98
 
99
-	public function jsState($state){
100
-		return $this->jsDoJquery("addClass",$state);
99
+	public function jsState($state) {
100
+		return $this->jsDoJquery("addClass", $state);
101 101
 	}
102 102
 
103 103
 	public function setContainer($_container) {
@@ -105,17 +105,17 @@  discard block
 block discarded – undo
105 105
 		return $this;
106 106
 	}
107 107
 
108
-	public function setReadonly(){
108
+	public function setReadonly() {
109 109
 		$this->getField()->setProperty("readonly", "");
110 110
 	}
111 111
 
112
-	public function addRule($type,$prompt=NULL,$value=NULL){
112
+	public function addRule($type, $prompt=NULL, $value=NULL) {
113 113
 		$field=$this->getField();
114
-		if(isset($field)){
115
-			if(!isset($this->_validation)){
114
+		if (isset($field)) {
115
+			if (!isset($this->_validation)) {
116 116
 				$this->_validation=new FieldValidation($field->getIdentifier());
117 117
 			}
118
-			$this->_validation->addRule($type,$prompt,$value);
118
+			$this->_validation->addRule($type, $prompt, $value);
119 119
 		}
120 120
 		return $this;
121 121
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlCollectionsTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 	 * @param int $colCount
19 19
 	 * @return HtmlTable
20 20
 	 */
21
-	public function htmlTable($identifier, $rowCount, $colCount){
21
+	public function htmlTable($identifier, $rowCount, $colCount) {
22 22
 		return $this->addHtmlComponent(new HtmlTable($identifier, $rowCount, $colCount));
23 23
 	}
24 24
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 	 * @param $styles string|array|NULL
30 30
 	 * @return HtmlMessage
31 31
 	 */
32
-	public function htmlMessage($identifier, $content="",$styles=NULL) {
33
-		$msg= $this->addHtmlComponent(new HtmlMessage($identifier, $content));
34
-		if(isset($msg))
32
+	public function htmlMessage($identifier, $content="", $styles=NULL) {
33
+		$msg=$this->addHtmlComponent(new HtmlMessage($identifier, $content));
34
+		if (isset($msg))
35 35
 			$msg->setStyle($styles);
36 36
 		return $msg;
37 37
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticComponentsTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
 	 * @param string|array $params
128 128
 	 * @return Modal
129 129
 	 */
130
-	public function modal($attachTo=NULL, $params=NULL,$paramsParts=NULL) {
131
-		$result= $this->addComponent(new Modal($this->js), $attachTo, $params);
130
+	public function modal($attachTo=NULL, $params=NULL, $paramsParts=NULL) {
131
+		$result=$this->addComponent(new Modal($this->js), $attachTo, $params);
132 132
 		$result->setParamParts($paramsParts);
133 133
 		return $result;
134 134
 	}
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 	 * @return Tab
140 140
 	 */
141 141
 	public function tab($attachTo=NULL, $params=NULL) {
142
-		$result= $this->addComponent(new Tab($this->js), $attachTo, $params);
142
+		$result=$this->addComponent(new Tab($this->js), $attachTo, $params);
143 143
 		return $result;
144 144
 	}
145 145
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * @return Shape
150 150
 	 */
151 151
 	public function shape($attachTo=NULL, $params=NULL) {
152
-		$result= $this->addComponent(new Shape($this->js), $attachTo, $params);
152
+		$result=$this->addComponent(new Shape($this->js), $attachTo, $params);
153 153
 		return $result;
154 154
 	}
155 155
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * @return Form
160 160
 	 */
161 161
 	public function form($attachTo=NULL, $params=NULL) {
162
-		$result= $this->addComponent(new Form($this->js), $attachTo, $params);
162
+		$result=$this->addComponent(new Form($this->js), $attachTo, $params);
163 163
 		return $result;
164 164
 	}
165 165
 
Please login to merge, or discard this patch.