Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/UI/ActiveControls/TActiveRadioButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 	protected function renderInputTag($writer, $clientID, $onclick)
136 136
 	{
137 137
 		parent::renderInputTag($writer, $clientID, $onclick);
138
-		if ($this->getAutoPostBack())
138
+		if($this->getAutoPostBack())
139 139
 			$this->getActiveControl()->registerCallbackClientScript(
140 140
 				$this->getClientClassName(), $this->getPostBackOptions());
141 141
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDatePicker.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	/**
88 88
 	 * @return TBaseActiveCallbackControl standard callback control options.
89 89
 	 */
90
-	public function getActiveControl(){
90
+	public function getActiveControl() {
91 91
 		return $this->getAdapter()->getBaseActiveControl();
92 92
 	}
93 93
 
@@ -95,15 +95,15 @@  discard block
 block discarded – undo
95 95
 	 * Client-side Text property can only be updated after the OnLoad stage.
96 96
 	 * @param string text content for the textbox
97 97
 	 */
98
-	public function setText($value){
98
+	public function setText($value) {
99 99
 		if(parent::getText() === $value)
100 100
 			return;
101 101
 
102 102
 		parent::setText($value);
103
-		if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()){
103
+		if($this->getActiveControl()->canUpdateClientSide() && $this->getHasLoadedPostData()) {
104 104
 			$cb = $this->getPage()->getCallbackClient();
105 105
 			$cb->setValue($this, $value);
106
-			if ($this->getInputMode() == TDatePickerInputMode::DropDownList)
106
+			if($this->getInputMode() == TDatePickerInputMode::DropDownList)
107 107
 			{
108 108
 				$dt = new \DateTime;
109 109
 				$dt->setTimeStamp($this->getTimeStampFromText());
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 	 * This method is mainly used by framework and control developers.
123 123
 	 * @param TCallbackEventParameter the event parameter
124 124
 	 */
125
-	public function raiseCallbackEvent($param){
125
+	public function raiseCallbackEvent($param) {
126 126
 		$this->onCallback($param);
127 127
 	}
128 128
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 * handler can be invoked.
134 134
 	 * @param TCallbackEventParameter event parameter to be passed to the event handlers
135 135
 	 */
136
-	public function onCallback($param){
136
+	public function onCallback($param) {
137 137
 		$this->raiseEvent('OnCallback', $this, $param);
138 138
 	}
139 139
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveCheckBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 	protected function renderInputTag($writer, $clientID, $onclick)
141 141
 	{
142 142
 		parent::renderInputTag($writer, $clientID, $onclick);
143
-		if ($this->getAutoPostBack())
143
+		if($this->getAutoPostBack())
144 144
 			$this->getActiveControl()->registerCallbackClientScript(
145 145
 				$this->getClientClassName(), $this->getPostBackOptions());
146 146
 	}
Please login to merge, or discard this patch.
framework/Web/UI/TThemeManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * @param string|null $class Theme class name in namespace format
103 103
 	 */
104 104
 	public function setThemeClass($class) {
105
-		$this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string)$class;
105
+		$this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string) $class;
106 106
 	}
107 107
 
108 108
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiResizable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function getOptions()
81 81
 	{
82
-		if (($options = $this->getViewState('JuiOptions')) === null)
82
+		if(($options = $this->getViewState('JuiOptions')) === null)
83 83
 		{
84 84
 		  $options = new TJuiControlOptions($this);
85 85
 		  $this->setViewState('JuiOptions', $options);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * Raises the OnCreate event
144 144
 	 * @param object $params event parameters
145 145
 	 */
146
-	public function onCreate ($params)
146
+	public function onCreate($params)
147 147
 	{
148 148
 		$this->raiseEvent('OnCreate', $this, $params);
149 149
 	}
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 * Raises the OnResize event
153 153
 	 * @param object $params event parameters
154 154
 	 */
155
-	public function onResize ($params)
155
+	public function onResize($params)
156 156
 	{
157 157
 		$this->raiseEvent('OnResize', $this, $params);
158 158
 	}
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * Raises the OnStart event
162 162
 	 * @param object $params event parameters
163 163
 	 */
164
-	public function onStart ($params)
164
+	public function onStart($params)
165 165
 	{
166 166
 		$this->raiseEvent('OnStart', $this, $params);
167 167
 	}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * Raises the OnStop event
171 171
 	 * @param object $params event parameters
172 172
 	 */
173
-	public function onStop ($params)
173
+	public function onStop($params)
174 174
 	{
175 175
 		$this->raiseEvent('OnStop', $this, $params);
176 176
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDatePicker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 */
79 79
 	public function getOptions()
80 80
 	{
81
-		if (($options = $this->getViewState('JuiOptions')) === null)
81
+		if(($options = $this->getViewState('JuiOptions')) === null)
82 82
 		{
83 83
 		  $options = new TJuiControlOptions($this);
84 84
 		  $this->setViewState('JuiOptions', $options);
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	protected function getTimeStampFromText()
277 277
 	{
278 278
 		$pattern = $this->getDateFormat();
279
-		$pattern = str_replace(['MMMM', 'MMM'], ['MM','MM'], $pattern);
279
+		$pattern = str_replace(['MMMM', 'MMM'], ['MM', 'MM'], $pattern);
280 280
 		$formatter = new TSimpleDateFormatter($pattern);
281 281
 		return $formatter->parse($this->getText());
282 282
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSlider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 	 */
84 84
 	public function getOptions()
85 85
 	{
86
-		if (($options = $this->getViewState('JuiOptions')) === null)
86
+		if(($options = $this->getViewState('JuiOptions')) === null)
87 87
 		{
88 88
 		  $options = new TJuiControlOptions($this);
89 89
 		  $this->setViewState('JuiOptions', $options);
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSelectable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	public function getOptions()
83 83
 	{
84
-		if (($options = $this->getViewState('JuiOptions')) === null)
84
+		if(($options = $this->getViewState('JuiOptions')) === null)
85 85
 		{
86 86
 		  $options = new TJuiControlOptions($this);
87 87
 		  $this->setViewState('JuiOptions', $options);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * Raises the OnCreate event
150 150
 	 * @param object $params event parameters
151 151
 	 */
152
-	public function onCreate ($params)
152
+	public function onCreate($params)
153 153
 	{
154 154
 		$this->raiseEvent('OnCreate', $this, $params);
155 155
 	}
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * Raises the OnSelected event
159 159
 	 * @param object $params event parameters
160 160
 	 */
161
-	public function onSelected ($params)
161
+	public function onSelected($params)
162 162
 	{
163 163
 		$this->raiseEvent('OnSelected', $this, $params);
164 164
 	}
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * Raises the OnSelecting event
168 168
 	 * @param object $params event parameters
169 169
 	 */
170
-	public function onSelecting ($params)
170
+	public function onSelecting($params)
171 171
 	{
172 172
 		$this->raiseEvent('OnSelecting', $this, $params);
173 173
 	}
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 * Raises the OnStart event
177 177
 	 * @param object $params event parameters
178 178
 	 */
179
-	public function onStart ($params)
179
+	public function onStart($params)
180 180
 	{
181 181
 		$this->raiseEvent('OnStart', $this, $params);
182 182
 	}
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * Raises the OnStop event
186 186
 	 * @param object $params event parameters
187 187
 	 */
188
-	public function onStop ($params)
188
+	public function onStop($params)
189 189
 	{
190 190
 		$this->raiseEvent('OnStop', $this, $params);
191 191
 	}
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	 * Raises the OnUnselected event
195 195
 	 * @param object $params event parameters
196 196
 	 */
197
-	public function onUnselected ($params)
197
+	public function onUnselected($params)
198 198
 	{
199 199
 		$this->raiseEvent('OnUnselected', $this, $params);
200 200
 	}
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 * Raises the OnUnselecting event
204 204
 	 * @param object $params event parameters
205 205
 	 */
206
-	public function onUnselecting ($params)
206
+	public function onUnselecting($params)
207 207
 	{
208 208
 		$this->raiseEvent('OnUnselecting', $this, $params);
209 209
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDialogButton.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		return [
67 67
 			'text' => $this->getText(),
68 68
 			'click' => new TJavaScriptLiteral("function(){new Prado.Callback('" . $this->getUniqueID() . "', 'onClick');}"
69
-			)] ;
69
+			)];
70 70
 	}
71 71
 
72 72
 	/**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 * Raises the OnClick event
90 90
 	 * @param object $params event parameters
91 91
 	 */
92
-	public function onClick ($params)
92
+	public function onClick($params)
93 93
 	{
94 94
 		$this->raiseEvent('OnClick', $this, $params);
95 95
 	}
Please login to merge, or discard this patch.