@@ -58,8 +58,7 @@ |
||
58 | 58 | if ($this->sourcepath === NULL) |
59 | 59 | { |
60 | 60 | $this->sourcepath = $sourcepath; |
61 | - } |
|
62 | - else |
|
61 | + } else |
|
63 | 62 | { |
64 | 63 | $this->sourcepath->append($sourcepath); |
65 | 64 | } |
@@ -323,8 +323,7 @@ discard block |
||
323 | 323 | $writer->addAttributes($attributes); |
324 | 324 | if($value!==null) |
325 | 325 | $attributes->add('value',$value); |
326 | - } |
|
327 | - else |
|
326 | + } else |
|
328 | 327 | $onclick=''; |
329 | 328 | if($needspan=$this->getSpanNeeded()) |
330 | 329 | { |
@@ -338,14 +337,12 @@ discard block |
||
338 | 337 | { |
339 | 338 | $this->renderLabel($writer,$clientID,$text); |
340 | 339 | $this->renderInputTag($writer,$clientID,$onclick); |
341 | - } |
|
342 | - else |
|
340 | + } else |
|
343 | 341 | { |
344 | 342 | $this->renderInputTag($writer,$clientID,$onclick); |
345 | 343 | $this->renderLabel($writer,$clientID,$text); |
346 | 344 | } |
347 | - } |
|
348 | - else |
|
345 | + } else |
|
349 | 346 | $this->renderInputTag($writer,$clientID,$onclick); |
350 | 347 | if($needspan) |
351 | 348 | $writer->renderEndTag(); |
@@ -98,8 +98,7 @@ |
||
98 | 98 | { |
99 | 99 | $this->renderLinkButtonHref($writer); |
100 | 100 | $this->renderClientControlScript($writer); |
101 | - } |
|
102 | - else if($this->getEnabled()) // in this case, parent will not render 'disabled' |
|
101 | + } else if($this->getEnabled()) // in this case, parent will not render 'disabled' |
|
103 | 102 | $writer->addAttribute('disabled','disabled'); |
104 | 103 | } |
105 | 104 |
@@ -58,8 +58,7 @@ |
||
58 | 58 | if ($this->sourcepath === NULL) |
59 | 59 | { |
60 | 60 | $this->sourcepath = $sourcepath; |
61 | - } |
|
62 | - else |
|
61 | + } else |
|
63 | 62 | { |
64 | 63 | $this->sourcepath->append($sourcepath); |
65 | 64 | } |
@@ -246,8 +246,7 @@ |
||
246 | 246 | $writer->write($html); |
247 | 247 | |
248 | 248 | $cs->registerEndScript('ReCaptcha::EventScript', 'jQuery(document).ready(function() { '.$readyscript.'; } );'); |
249 | - } |
|
250 | - else |
|
249 | + } else |
|
251 | 250 | { |
252 | 251 | $options = $this->getClientSideOptions(); |
253 | 252 | $options['callback'] = new TJavaScriptLiteral('function() { '.$readyscript.'; '.$this->getCallbackScript().'; }'); |
@@ -197,8 +197,7 @@ discard block |
||
197 | 197 | $classPath=$this->getItemRenderer(); |
198 | 198 | $template=$this->_itemTemplate; |
199 | 199 | } |
200 | - } |
|
201 | - else |
|
200 | + } else |
|
202 | 201 | { |
203 | 202 | $template=$this->_itemTemplate; |
204 | 203 | $classPath=$this->getItemRenderer(); |
@@ -214,13 +213,11 @@ discard block |
||
214 | 213 | } |
215 | 214 | if($control instanceof IDataRenderer) |
216 | 215 | $control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); |
217 | - } |
|
218 | - else if($template!==null) |
|
216 | + } else if($template!==null) |
|
219 | 217 | $template->instantiateIn($cell); |
220 | 218 | else if($itemType!==TListItemType::EditItem) |
221 | 219 | $cell->setText(' '); |
222 | - } |
|
223 | - else if($itemType===TListItemType::Header) |
|
220 | + } else if($itemType===TListItemType::Header) |
|
224 | 221 | { |
225 | 222 | if(($classPath=$this->getHeaderRenderer())!=='') |
226 | 223 | $this->initializeHeaderCell($cell,$columnIndex); |
@@ -228,8 +225,7 @@ discard block |
||
228 | 225 | $this->_headerTemplate->instantiateIn($cell); |
229 | 226 | else |
230 | 227 | $this->initializeHeaderCell($cell,$columnIndex); |
231 | - } |
|
232 | - else if($itemType===TListItemType::Footer) |
|
228 | + } else if($itemType===TListItemType::Footer) |
|
233 | 229 | { |
234 | 230 | if(($classPath=$this->getFooterRenderer())!=='') |
235 | 231 | $this->initializeFooterCell($cell,$columnIndex); |
@@ -97,8 +97,7 @@ discard block |
||
97 | 97 | $this->_cachedActiveViewIndex=-1; |
98 | 98 | if($index>=0) |
99 | 99 | $this->activateView($views->itemAt($index),true); |
100 | - } |
|
101 | - else |
|
100 | + } else |
|
102 | 101 | throw new TInvalidDataValueException('multiview_activeviewindex_invalid',$index); |
103 | 102 | } |
104 | 103 | |
@@ -153,8 +152,7 @@ discard block |
||
153 | 152 | $view->onActivate(null); |
154 | 153 | $this->onActiveViewChanged(null); |
155 | 154 | } |
156 | - } |
|
157 | - else if($v->getActive()) |
|
155 | + } else if($v->getActive()) |
|
158 | 156 | { |
159 | 157 | $v->setActive(false); |
160 | 158 | if($triggerEvent) |
@@ -232,8 +230,7 @@ discard block |
||
232 | 230 | { |
233 | 231 | $this->setActiveView($view); |
234 | 232 | return true; |
235 | - } |
|
236 | - else |
|
233 | + } else |
|
237 | 234 | throw new TInvalidDataValueException('multiview_viewid_invalid', $viewID); |
238 | 235 | case self::CMD_SWITCHVIEWINDEX: |
239 | 236 | $index=TPropertyValue::ensureInteger($param->getCommandParameter()); |
@@ -306,8 +306,7 @@ discard block |
||
306 | 306 | { |
307 | 307 | if($index===0 && $currentSection===TTableRowSection::Header) |
308 | 308 | $writer->renderBeginTag('thead'); |
309 | - } |
|
310 | - else |
|
309 | + } else |
|
311 | 310 | { |
312 | 311 | if($currentSection===TTableRowSection::Header) |
313 | 312 | { |
@@ -318,8 +317,7 @@ discard block |
||
318 | 317 | else |
319 | 318 | $writer->renderBeginTag('tfoot'); |
320 | 319 | $currentSection=$section; |
321 | - } |
|
322 | - else if($currentSection===TTableRowSection::Body) |
|
320 | + } else if($currentSection===TTableRowSection::Body) |
|
323 | 321 | { |
324 | 322 | $writer->renderEndTag(); |
325 | 323 | if($section===TTableRowSection::Footer) |
@@ -327,16 +325,14 @@ discard block |
||
327 | 325 | else |
328 | 326 | throw new TConfigurationException('table_tablesection_outoforder'); |
329 | 327 | $currentSection=$section; |
330 | - } |
|
331 | - else // Footer |
|
328 | + } else // Footer |
|
332 | 329 | throw new TConfigurationException('table_tablesection_outoforder'); |
333 | 330 | } |
334 | 331 | $row->renderControl($writer); |
335 | 332 | $writer->writeLine(); |
336 | 333 | } |
337 | 334 | $writer->renderEndTag(); |
338 | - } |
|
339 | - else |
|
335 | + } else |
|
340 | 336 | { |
341 | 337 | $writer->writeLine(); |
342 | 338 | foreach($this->getControls() as $row) |
@@ -58,8 +58,7 @@ |
||
58 | 58 | if ($this->sourcepath === NULL) |
59 | 59 | { |
60 | 60 | $this->sourcepath = $sourcepath; |
61 | - } |
|
62 | - else |
|
61 | + } else |
|
63 | 62 | { |
64 | 63 | $this->sourcepath->append($sourcepath); |
65 | 64 | } |