Completed
Push — namespace2 ( 791eac...5c23fb )
by Fabio
08:41
created
framework/Web/UI/WebControls/TRegularExpressionValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TCheckBox.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -323,8 +323,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLinkButton.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TLiteralColumn.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TReCaptcha.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -246,8 +246,7 @@
 block discarded – undo
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().'; }');
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTemplateColumn.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -197,8 +197,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TMultiView.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -97,8 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTable.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -306,8 +306,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRangeValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.