Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/UI/ActiveControls/TCallbackClientScript.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -435,13 +435,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackErrorHandler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveRepeater.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveButtonColumn.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDataList.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@
 block discarded – undo
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
   }
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveMultiView.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,8 +72,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiAutoComplete.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -243,14 +243,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
framework/Web/UI/TControlCollection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGridPager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.