Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
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 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
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.
framework/Web/UI/WebControls/TButtonColumn.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -241,8 +241,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataListItemRenderer.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,8 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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
@@ -102,8 +102,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRepeaterItem.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,8 +110,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRegularExpressionValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.