@@ -435,13 +435,11 @@ discard block |
||
435 | 435 | { |
436 | 436 | $boundary = $this->getRenderedContentBoundary($content); |
437 | 437 | $content = null; |
438 | - } |
|
439 | - elseif($content instanceof THtmlWriter) |
|
438 | + } elseif($content instanceof THtmlWriter) |
|
440 | 439 | { |
441 | 440 | $boundary = $this->getResponseContentBoundary($content); |
442 | 441 | $content = null; |
443 | - } |
|
444 | - else |
|
442 | + } else |
|
445 | 443 | $boundary = null; |
446 | 444 | |
447 | 445 | $this->callClientFunction('Prado.Element.replace', [$element, $content, $boundary, $self]); |
@@ -488,8 +486,7 @@ discard block |
||
488 | 486 | if($content instanceof TControl) |
489 | 487 | { |
490 | 488 | $boundary = $this->getRenderedContentBoundary($content); |
491 | - } |
|
492 | - elseif($content instanceof THtmlWriter) |
|
489 | + } elseif($content instanceof THtmlWriter) |
|
493 | 490 | { |
494 | 491 | $boundary = $this->getResponseContentBoundary($content); |
495 | 492 | } |
@@ -60,8 +60,7 @@ |
||
60 | 60 | $content = $response->createHtmlWriter(); |
61 | 61 | $content->getWriter()->setBoundary(TActivePageAdapter::CALLBACK_ERROR_HEADER); |
62 | 62 | $content->write($trace); |
63 | - } |
|
64 | - else |
|
63 | + } else |
|
65 | 64 | { |
66 | 65 | error_log("Error happened while processing an existing error:\n" . $exception->__toString()); |
67 | 66 | header('HTTP/1.0 500 Internal Server Error', true, 500); |
@@ -101,8 +101,7 @@ |
||
101 | 101 | if($this->getHasPreRendered()) { |
102 | 102 | $this->renderRepeater($writer); |
103 | 103 | if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(), $writer); |
104 | - } |
|
105 | - else { |
|
104 | + } else { |
|
106 | 105 | $this->getPage()->getAdapter()->registerControlToRender($this, $writer); |
107 | 106 | } |
108 | 107 | } |
@@ -52,8 +52,7 @@ |
||
52 | 52 | $button->attachEventHandler('OnDataBinding', [$this,'dataBindColumn']); |
53 | 53 | $cell->getControls()->add($button); |
54 | 54 | $cell->registerObject('Button', $button); |
55 | - } |
|
56 | - else |
|
55 | + } else |
|
57 | 56 | parent::initializeCell($cell, $columnIndex, $itemType); |
58 | 57 | } |
59 | 58 | } |
60 | 59 | \ No newline at end of file |
@@ -83,8 +83,7 @@ |
||
83 | 83 | if($this->getHasPreRendered()) { |
84 | 84 | $this->renderDataList($writer); |
85 | 85 | if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getContainerID(), $writer); |
86 | - } |
|
87 | - else { |
|
86 | + } else { |
|
88 | 87 | $this->getPage()->getAdapter()->registerControlToRender($this, $writer); |
89 | 88 | } |
90 | 89 | } |
@@ -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 |
@@ -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 |