@@ -5,13 +5,13 @@ |
||
5 | 5 | |
6 | 6 | class HtmlShapeItem extends HtmlSemDoubleElement { |
7 | 7 | public function __construct($identifier, $content) { |
8 | - parent::__construct($identifier,"div","side",$content); |
|
8 | + parent::__construct($identifier, "div", "side", $content); |
|
9 | 9 | } |
10 | 10 | |
11 | - public function setActive($value=true){ |
|
12 | - if($value){ |
|
11 | + public function setActive($value=true) { |
|
12 | + if ($value) { |
|
13 | 13 | $this->addToPropertyCtrl("class", "active", ["active"]); |
14 | - }else{ |
|
14 | + } else { |
|
15 | 15 | $this->removePropertyValue("class", "active"); |
16 | 16 | } |
17 | 17 | return $this; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $viewVars=$view->viewVars; |
14 | 14 | if (isset($viewVars["q"]) === false) { |
15 | 15 | $controls=array (); |
16 | - }else{ |
|
16 | + } else{ |
|
17 | 17 | $controls=$viewVars["q"]; |
18 | 18 | } |
19 | 19 | $controls[$identifier]=$content; |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | * @param string|array $params |
127 | 127 | * @return Modal |
128 | 128 | */ |
129 | - public function modal($attachTo=NULL, $params=NULL,$paramsParts=NULL) { |
|
130 | - $result= $this->addComponent(new Modal($this->js), $attachTo, $params); |
|
129 | + public function modal($attachTo=NULL, $params=NULL, $paramsParts=NULL) { |
|
130 | + $result=$this->addComponent(new Modal($this->js), $attachTo, $params); |
|
131 | 131 | $result->setParamParts($paramsParts); |
132 | 132 | return $result; |
133 | 133 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | * @return Tab |
139 | 139 | */ |
140 | 140 | public function tab($attachTo=NULL, $params=NULL) { |
141 | - $result= $this->addComponent(new Tab($this->js), $attachTo, $params); |
|
141 | + $result=$this->addComponent(new Tab($this->js), $attachTo, $params); |
|
142 | 142 | return $result; |
143 | 143 | } |
144 | 144 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * @return Shape |
149 | 149 | */ |
150 | 150 | public function shape($attachTo=NULL, $params=NULL) { |
151 | - $result= $this->addComponent(new Shape($this->js), $attachTo, $params); |
|
151 | + $result=$this->addComponent(new Shape($this->js), $attachTo, $params); |
|
152 | 152 | return $result; |
153 | 153 | } |
154 | 154 | } |
155 | 155 | \ No newline at end of file |