@@ -72,8 +72,7 @@ |
||
| 72 | 72 | $this->renderMultiView($writer); |
| 73 | 73 | if($this->getActiveControl()->canUpdateClientSide()) |
| 74 | 74 | $this->getPage()->getCallbackClient()->replaceContent($this->getContainerID(), $writer); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | $this->getPage()->getAdapter()->registerControlToRender($this, $writer); |
| 78 | 77 | } |
| 79 | 78 | |
@@ -243,14 +243,12 @@ |
||
| 243 | 243 | { |
| 244 | 244 | $parameter = new TJuiAutoCompleteEventParameter($this->getResponse(), $token[0]); |
| 245 | 245 | $this->onSuggest($parameter); |
| 246 | - } |
|
| 247 | - elseif($token[1] === '__TJuiAutoComplete_onSuggestionSelected__') |
|
| 246 | + } elseif($token[1] === '__TJuiAutoComplete_onSuggestionSelected__') |
|
| 248 | 247 | { |
| 249 | 248 | $parameter = new TJuiAutoCompleteEventParameter($this->getResponse(), null, $token[0]); |
| 250 | 249 | $this->onSuggestionSelected($parameter); |
| 251 | 250 | } |
| 252 | - } |
|
| 253 | - elseif($this->getAutoPostBack()) |
|
| 251 | + } elseif($this->getAutoPostBack()) |
|
| 254 | 252 | parent::raiseCallbackEvent($param); |
| 255 | 253 | } |
| 256 | 254 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function getOptions() |
| 133 | 133 | { |
| 134 | - if (($options = $this->getViewState('JuiOptions')) === null) |
|
| 134 | + if(($options = $this->getViewState('JuiOptions')) === null) |
|
| 135 | 135 | { |
| 136 | 136 | $options = new TJuiControlOptions($this); |
| 137 | 137 | $this->setViewState('JuiOptions', $options); |
@@ -381,7 +381,7 @@ discard block |
||
| 381 | 381 | { |
| 382 | 382 | $items->itemAt($i)->render($writer); |
| 383 | 383 | $item = $writer->flush(); |
| 384 | - $data[] = [ 'id' => $i, 'label' => $item]; |
|
| 384 | + $data[] = ['id' => $i, 'label' => $item]; |
|
| 385 | 385 | } |
| 386 | 386 | |
| 387 | 387 | $this->getResponse()->getAdapter()->setResponseData($data); |
@@ -64,8 +64,7 @@ |
||
| 64 | 64 | { |
| 65 | 65 | parent::insertAt($index, $item); |
| 66 | 66 | $this->_o->addedControl($item); |
| 67 | - } |
|
| 68 | - elseif(is_string($item) || ($item instanceof IRenderable)) |
|
| 67 | + } elseif(is_string($item) || ($item instanceof IRenderable)) |
|
| 69 | 68 | parent::insertAt($index, $item); |
| 70 | 69 | else |
| 71 | 70 | throw new TInvalidDataTypeException('controlcollection_control_required'); |
@@ -51,8 +51,7 @@ |
||
| 51 | 51 | { |
| 52 | 52 | $this->raiseBubbleEvent($this, new TDataGridCommandEventParameter($this, $sender, $param)); |
| 53 | 53 | return true; |
| 54 | - } |
|
| 55 | - else |
|
| 54 | + } else |
|
| 56 | 55 | return false; |
| 57 | 56 | } |
| 58 | 57 | |
@@ -241,8 +241,7 @@ |
||
| 241 | 241 | $button->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']); |
| 242 | 242 | $cell->getControls()->add($button); |
| 243 | 243 | $cell->registerObject('Button', $button); |
| 244 | - } |
|
| 245 | - else |
|
| 244 | + } else |
|
| 246 | 245 | parent::initializeCell($cell, $columnIndex, $itemType); |
| 247 | 246 | } |
| 248 | 247 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $button->setCausesValidation($this->getCausesValidation()); |
| 50 | 50 | $button->setValidationGroup($this->getValidationGroup()); |
| 51 | 51 | if($this->getDataTextField() !== '' || ($buttonType === TButtonColumnType::ImageButton && $this->getDataImageUrlField() !== '')) |
| 52 | - $button->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']); |
|
| 52 | + $button->attachEventHandler('OnDataBinding', [$this, 'dataBindColumn']); |
|
| 53 | 53 | $cell->getControls()->add($button); |
| 54 | 54 | $cell->registerObject('Button', $button); |
| 55 | 55 | } |
@@ -83,8 +83,7 @@ discard block |
||
| 83 | 83 | { |
| 84 | 84 | $this->raiseBubbleEvent($this, new TDataListCommandEventParameter($this, $sender, $param)); |
| 85 | 85 | return true; |
| 86 | - } |
|
| 87 | - else |
|
| 86 | + } else |
|
| 88 | 87 | return false; |
| 89 | 88 | } |
| 90 | 89 | |
@@ -129,8 +128,7 @@ discard block |
||
| 129 | 128 | $this->renderBeginTag($writer); |
| 130 | 129 | $this->renderContents($writer); |
| 131 | 130 | $this->renderEndTag($writer); |
| 132 | - } |
|
| 133 | - else |
|
| 131 | + } else |
|
| 134 | 132 | $this->renderContents($writer); |
| 135 | 133 | } |
| 136 | 134 | |
@@ -102,8 +102,7 @@ |
||
| 102 | 102 | { |
| 103 | 103 | $this->renderLinkButtonHref($writer); |
| 104 | 104 | $this->renderClientControlScript($writer); |
| 105 | - } |
|
| 106 | - elseif($this->getEnabled()) // in this case, parent will not render 'disabled' |
|
| 105 | + } elseif($this->getEnabled()) // in this case, parent will not render 'disabled' |
|
| 107 | 106 | $writer->addAttribute('disabled', 'disabled'); |
| 108 | 107 | } |
| 109 | 108 | |
@@ -110,8 +110,7 @@ |
||
| 110 | 110 | { |
| 111 | 111 | $this->raiseBubbleEvent($this, new TRepeaterCommandEventParameter($this, $sender, $param)); |
| 112 | 112 | return true; |
| 113 | - } |
|
| 114 | - else |
|
| 113 | + } else |
|
| 115 | 114 | return false; |
| 116 | 115 | } |
| 117 | 116 | } |
| 118 | 117 | \ No newline at end of file |
@@ -85,8 +85,7 @@ |
||
| 85 | 85 | { |
| 86 | 86 | $mods = $this->getPatternModifiers(); |
| 87 | 87 | return preg_match("/^$expression\$/{$mods}", $value); |
| 88 | - } |
|
| 89 | - else |
|
| 88 | + } else |
|
| 90 | 89 | return true; |
| 91 | 90 | } |
| 92 | 91 | |