@@ -197,8 +197,9 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | public function setBasic($very=false) { |
| 200 | - if ($very) |
|
| 201 | - $this->addToPropertyCtrl("class", "very", array ("very" )); |
|
| 200 | + if ($very) { |
|
| 201 | + $this->addToPropertyCtrl("class", "very", array ("very" )); |
|
| 202 | + } |
|
| 202 | 203 | return $this->addToPropertyCtrl("class", "basic", array ("basic" )); |
| 203 | 204 | } |
| 204 | 205 | |
@@ -263,7 +264,7 @@ discard block |
||
| 263 | 264 | if(\sizeof($this->_compileParts)<3){ |
| 264 | 265 | $this->_template="%content%"; |
| 265 | 266 | $this->refresh(); |
| 266 | - }else{ |
|
| 267 | + } else{ |
|
| 267 | 268 | if ($this->propertyContains("class", "sortable")) { |
| 268 | 269 | $this->addEvent("execute", "$('#" . $this->identifier . "').tablesort();"); |
| 269 | 270 | } |
@@ -286,8 +287,9 @@ discard block |
||
| 286 | 287 | $result= $this->getBody()->_addRow($result); |
| 287 | 288 | } |
| 288 | 289 | if(isset($this->_afterCompileEvents["onNewRow"])){ |
| 289 | - if(\is_callable($this->_afterCompileEvents["onNewRow"])) |
|
| 290 | - $this->_afterCompileEvents["onNewRow"]($result,$object); |
|
| 290 | + if(\is_callable($this->_afterCompileEvents["onNewRow"])) { |
|
| 291 | + $this->_afterCompileEvents["onNewRow"]($result,$object); |
|
| 292 | + } |
|
| 291 | 293 | } |
| 292 | 294 | return $result; |
| 293 | 295 | } |
@@ -308,8 +310,9 @@ discard block |
||
| 308 | 310 | |
| 309 | 311 | public function run(JsUtils $js){ |
| 310 | 312 | $result= parent::run($js); |
| 311 | - if(isset($this->_footer)) |
|
| 312 | - $this->_footer->run($js); |
|
| 313 | + if(isset($this->_footer)) { |
|
| 314 | + $this->_footer->run($js); |
|
| 315 | + } |
|
| 313 | 316 | return $result; |
| 314 | 317 | } |
| 315 | 318 | |