Passed
Push — php-cs-fixer ( b9836a...b7e6c1 )
by Fabio
14:45
created
framework/Data/TDbConnection.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	public function __sleep()
142 142
 	{
143 143
 //		$this->close(); - DO NOT CLOSE the current connection as serializing doesn't neccessarily mean we don't this connection anymore in the current session
144
-		return array_diff(parent::__sleep(), ["\0Prado\Data\TDbConnection\0_pdo","\0Prado\Data\TDbConnection\0_active"]);
144
+		return array_diff(parent::__sleep(), ["\0Prado\Data\TDbConnection\0_pdo", "\0Prado\Data\TDbConnection\0_active"]);
145 145
 	}
146 146
 
147 147
 	/**
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 		{
189 189
 			try
190 190
 			{
191
-				$this->_pdo = new PDO($this->getConnectionString(),$this->getUsername(),
191
+				$this->_pdo = new PDO($this->getConnectionString(), $this->getUsername(),
192 192
 									$this->getPassword(), $this->_attributes);
193 193
 				// This attribute is only useful for PDO::MySql driver.
194 194
 				// Ignore the warning if a driver doesn't understand this.
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 				$this->_active = true;
198 198
 				$this->setConnectionCharset();
199 199
 			}
200
-			catch(PDOException $e)
200
+			catch (PDOException $e)
201 201
 			{
202 202
 				throw new TDbException('dbconnection_open_failed', $e->getMessage());
203 203
 			}
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
 	 */
222 222
 	protected function setConnectionCharset()
223 223
 	{
224
-		if ($this->_charset === '' || $this->_active === false)
224
+		if($this->_charset === '' || $this->_active === false)
225 225
 			return;
226
-		switch ($this->_pdo->getAttribute(PDO::ATTR_DRIVER_NAME))
226
+		switch($this->_pdo->getAttribute(PDO::ATTR_DRIVER_NAME))
227 227
 		{
228 228
 			case 'mysql':
229 229
 			case 'sqlite':
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	/**
291 291
 	 * @return string the charset used for database connection. Defaults to emtpy string.
292 292
 	 */
293
-	public function getCharset ()
293
+	public function getCharset()
294 294
 	{
295 295
 		return $this->_charset;
296 296
 	}
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	/**
299 299
 	 * @param string $value the charset used for database connection
300 300
 	 */
301
-	public function setCharset ($value)
301
+	public function setCharset($value)
302 302
 	{
303 303
 		$this->_charset = $value;
304 304
 		$this->setConnectionCharset();
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 	 */
372 372
 	public function setTransactionClass($value)
373 373
 	{
374
-		$this->_transactionClass = (string)$value;
374
+		$this->_transactionClass = (string) $value;
375 375
 	}
376 376
 
377 377
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TSlider.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	/**
152 152
 	 * @return boolean wether to display a progress indicator or not. Defaults to true.
153 153
 	 */
154
-	public function getProgressIndicator ()
154
+	public function getProgressIndicator()
155 155
 	{
156 156
 		return $this->getViewState('ProgressIndicator', true);
157 157
 	}
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	/**
160 160
 	 * @param boolean $value wether to display a progress indicator or not. Defaults to true.
161 161
 	 */
162
-	public function setProgressIndicator ($value)
162
+	public function setProgressIndicator($value)
163 163
 	{
164 164
 		$this->setViewState('ProgressIndicator', TPropertyValue::ensureBoolean($value), true);
165 165
 	}
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 	 */
297 297
 	public function loadPostData($key, $values)
298 298
 	{
299
-		$value = (float)$values[$this->getClientID() . '_1'];
299
+		$value = (float) $values[$this->getClientID() . '_1'];
300 300
 		if($this->getValue() !== $value)
301 301
 		{
302 302
 			$this->setValue($value);
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	/**
336 336
 	 * @return string the HTML tag name for slider. Defaults to div.
337 337
 	 */
338
-	public function getTagName ()
338
+	public function getTagName()
339 339
 	{
340 340
 		return "div";
341 341
 	}
@@ -348,9 +348,9 @@  discard block
 block discarded – undo
348 348
 	{
349 349
 		parent::addAttributesToRender($writer);
350 350
 		$writer->addAttribute('id', $this->getClientID());
351
-		if ($this->getCssClass() === '')
351
+		if($this->getCssClass() === '')
352 352
 		{
353
-			$class = ($this->getDirection() == TSliderDirection::Horizontal)?'HorizontalSlider':'VerticalSlider';
353
+			$class = ($this->getDirection() == TSliderDirection::Horizontal) ? 'HorizontalSlider' : 'VerticalSlider';
354 354
 			$writer->addAttribute('class', 'Slider ' . $class);
355 355
 		}
356 356
 
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 		$writer->addAttribute('id', $this->getClientID() . '_track');
367 367
 		$writer->renderBeginTag('div');
368 368
 		// Render the 'Progress Indicator'
369
-		if ($this->getProgressIndicator())
369
+		if($this->getProgressIndicator())
370 370
 		{
371 371
 			$writer->addAttribute('class', 'Progress');
372 372
 			$writer->addAttribute('id', $this->getClientID() . '_progress');
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	 * This method is invoked right before the control rendering, if the control is visible.
404 404
 	 * @param mixed $param event parameter
405 405
 	 */
406
-	public function onPreRender ($param)
406
+	public function onPreRender($param)
407 407
 	{
408 408
 		parent::onPreRender($param);
409 409
 		$this->registerStyleSheet();
@@ -463,16 +463,16 @@  discard block
 block discarded – undo
463 463
 		$options['sliderValue'] = $this->getValue();
464 464
 		$options['disabled'] = !$this->getEnabled();
465 465
 		$values = $this->getValues();
466
-		if (!empty($values))
466
+		if(!empty($values))
467 467
 		{
468 468
 			// Values are provided. Check if min/max are present in them
469
-			if (!in_array($minValue, $values)) $values[] = $minValue;
470
-			if (!in_array($maxValue, $values)) $values[] = $maxValue;
469
+			if(!in_array($minValue, $values)) $values[] = $minValue;
470
+			if(!in_array($maxValue, $values)) $values[] = $maxValue;
471 471
 			// Remove all values outsize the range [min..max]
472
-			foreach ($values as $idx => $value)
472
+			foreach($values as $idx => $value)
473 473
 			{
474
-				if ($value < $minValue) unset($values[$idx]);
475
-				if ($value > $maxValue) unset($values[$idx]);
474
+				if($value < $minValue) unset($values[$idx]);
475
+				if($value > $maxValue) unset($values[$idx]);
476 476
 			}
477 477
 		}
478 478
 		else
@@ -480,15 +480,15 @@  discard block
 block discarded – undo
480 480
 			// Values are not provided, generate automatically using stepsize
481 481
 			$step = $this->getStepSize();
482 482
 			// We want at most self::MAX_STEPS values, so, change the step if necessary
483
-			if (($maxValue - $minValue) / $step > self::MAX_STEPS)
483
+			if(($maxValue - $minValue) / $step > self::MAX_STEPS)
484 484
 			{
485 485
 				$step = ($maxValue - $minValue) / self::MAX_STEPS;
486 486
 			}
487 487
 			$values = [];
488
-			for ($i = $minValue;$i <= $maxValue;$i += $step)
488
+			for($i = $minValue; $i <= $maxValue; $i += $step)
489 489
 				$values[] = $i;
490 490
 			// Add max if it's not in the array because of step
491
-			if (!in_array($maxValue, $values)) $values[] = $maxValue;
491
+			if(!in_array($maxValue, $values)) $values[] = $maxValue;
492 492
 		}
493 493
 		$options['values'] = $values;
494 494
 		if($this->_clientScript !== null)
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 $value 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 $param 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 $param 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/TActiveFileUpload.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 * TActiveControlAdapter. If you override this class, be sure to set the
90 90
 	 * adapter appropriately by, for example, by calling this constructor.
91 91
 	 */
92
-	public function __construct(){
92
+	public function __construct() {
93 93
 		parent::__construct();
94 94
 		$this->setAdapter(new TActiveControlAdapter($this));
95 95
 	}
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
 	public function onFileUpload($param)
116 116
 	{
117
-		if ($this->_flag->getValue() && $this->getPage()->getIsPostBack() && $param == $this->_target->getUniqueID()){
117
+		if($this->_flag->getValue() && $this->getPage()->getIsPostBack() && $param == $this->_target->getUniqueID()) {
118 118
 		  $params = new TActiveFileUploadCallbackParams;
119 119
 		  // save the files so that they will persist past the end of this return.
120
-		  foreach ($this->getFiles() as $file) {
120
+		  foreach($this->getFiles() as $file) {
121 121
 			  $localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()), ''));
122 122
 			  $file->saveAs($localName);
123 123
 			  $file->setLocalName($localName);
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
           	 Options = new Object();
130 130
           	 Options.clientID = '{$this->getClientID()}';
131 131
           	 Options.targetID = '{$this->_target->getUniqueID()}';
132
-          	 Options.errorCode = '" . (int)!$this->getHasAllFiles() . "';
132
+          	 Options.errorCode = '" . (int) !$this->getHasAllFiles() . "';
133 133
           	 Options.callbackToken = '{$this->pushParamsAndGetToken($params)}';
134 134
           	 Options.fileName = '" . TJavaScript::jsonEncode($this->getMultiple() ? array_column($params->files, 'fileName') : $this->getFileName(), JSON_HEX_APOS) . "';
135 135
              Options.fileSize = '" . TJavaScript::jsonEncode($this->getMultiple() ? array_column($params->files, 'fileSize') : $this->getFileSize(), JSON_HEX_APOS) . "';
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 * @return string the path where the uploaded file will be stored temporarily, in namespace format
147 147
 	 * default "Application.runtime.*"
148 148
 	 */
149
-	public function getTempPath(){
149
+	public function getTempPath() {
150 150
 		return $this->getViewState('TempPath', 'Application.runtime.*');
151 151
 	}
152 152
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 * @param string the path where the uploaded file will be stored temporarily in namespace format
155 155
 	 * default "Application.runtime.*"
156 156
 	 */
157
-	public function setTempPath($value){
157
+	public function setTempPath($value) {
158 158
 		$this->setViewState('TempPath', $value, 'Application.runtime.*');
159 159
 	}
160 160
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	 * @return boolean a value indicating whether an automatic callback to the server will occur whenever the user modifies the text in the TTextBox control and then tabs out of the component. Defaults to true.
163 163
 	 * Note: When set to false, you will need to trigger the callback yourself.
164 164
 	 */
165
-	public function getAutoPostBack(){
165
+	public function getAutoPostBack() {
166 166
 		return $this->getViewState('AutoPostBack', true);
167 167
 	}
168 168
 
@@ -170,28 +170,28 @@  discard block
 block discarded – undo
170 170
 	 * @param boolean a value indicating whether an automatic callback to the server will occur whenever the user modifies the text in the TTextBox control and then tabs out of the component. Defaults to true.
171 171
 	 * Note: When set to false, you will need to trigger the callback yourself.
172 172
 	 */
173
-	public function setAutoPostBack($value){
173
+	public function setAutoPostBack($value) {
174 174
 		$this->setViewState('AutoPostBack', TPropertyValue::ensureBoolean($value), true);
175 175
 	}
176 176
 
177 177
 	/**
178 178
 	 * @return string A chuck of javascript that will need to be called if {{@link getAutoPostBack AutoPostBack} is set to false}
179 179
 	 */
180
-	public function getCallbackJavascript(){
180
+	public function getCallbackJavascript() {
181 181
 		return "Prado.WebUI.TActiveFileUpload.fileChanged(\"{$this->getClientID()}\")";
182 182
 	}
183 183
 
184 184
 	/**
185 185
 	 * @throws TInvalidDataValueException if the {@link getTempPath TempPath} is not writable.
186 186
 	 */
187
-	public function onInit($sender){
187
+	public function onInit($sender) {
188 188
 		parent::onInit($sender);
189 189
 
190
-		if (!Prado::getApplication()->getCache())
191
-		  if (!Prado::getApplication()->getSecurityManager())
190
+		if(!Prado::getApplication()->getCache())
191
+		  if(!Prado::getApplication()->getSecurityManager())
192 192
 			throw new Exception('TActiveFileUpload needs either an application level cache or a security manager to work securely');
193 193
 
194
-		if (!is_writable(Prado::getPathOfNamespace($this->getTempPath()))){
194
+		if(!is_writable(Prado::getPathOfNamespace($this->getTempPath()))) {
195 195
 			throw new TInvalidDataValueException("activefileupload_temppath_invalid", $this->getTempPath());
196 196
 		}
197 197
 	}
@@ -203,9 +203,9 @@  discard block
 block discarded – undo
203 203
 	 * This method is mainly used by framework and control developers.
204 204
 	 * @param TCallbackEventParameter $param the event parameter
205 205
 	 */
206
-	public function raiseCallbackEvent($param){
206
+	public function raiseCallbackEvent($param) {
207 207
 		$cp = $param->getCallbackParameter();
208
-		if ($key = $cp->targetID == $this->_target->getUniqueID()){
208
+		if($key = $cp->targetID == $this->_target->getUniqueID()) {
209 209
 
210 210
 			$params = $this->popParamsByToken($cp->callbackToken);
211 211
 	  foreach($params->files as $index => $file)
@@ -234,13 +234,13 @@  discard block
 block discarded – undo
234 234
 
235 235
 	protected function pushParamsAndGetToken(TActiveFileUploadCallbackParams $params)
236 236
 	{
237
-		if ($cache = Prado::getApplication()->getCache())
237
+		if($cache = Prado::getApplication()->getCache())
238 238
 			{
239 239
 				// this is the most secure method, file info can't be forged from client side, no matter what
240 240
 				$token = md5('TActiveFileUpload::Params::' . $this->ClientID . '::' . rand(1000 * 1000, 9999 * 1000));
241 241
 				$cache->set($token, serialize($params), 5 * 60); // expire in 5 minutes - the callback should arrive back in seconds, actually
242 242
 			}
243
-		elseif ($mgr = Prado::getApplication()->getSecurityManager())
243
+		elseif($mgr = Prado::getApplication()->getSecurityManager())
244 244
 			{
245 245
 				// this is a less secure method, file info can be still forged from client side, but only if attacker knows the secret application key
246 246
 				$token = urlencode(base64_encode($mgr->encrypt(serialize($params))));
@@ -253,14 +253,14 @@  discard block
 block discarded – undo
253 253
 
254 254
 	protected function popParamsByToken($token)
255 255
 	{
256
-		if ($cache = Prado::getApplication()->getCache())
256
+		if($cache = Prado::getApplication()->getCache())
257 257
 			{
258 258
 				$v = $cache->get($token);
259 259
 				assert($v != '');
260 260
 				$cache->delete($token); // remove it from cache so it can't be used again and won't take up space either
261 261
 				$params = unserialize($v);
262 262
 			}
263
-		elseif ($mgr = Prado::getApplication()->getSecurityManager())
263
+		elseif($mgr = Prado::getApplication()->getSecurityManager())
264 264
 			{
265 265
 				$v = $mgr->decrypt(base64_decode(urldecode($token)));
266 266
 				$params = unserialize($v);
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 		if(!$this->getPage()->getIsPostBack() && isset($_GET['TActiveFileUpload_InputId']) && isset($_GET['TActiveFileUpload_TargetId']) && $_GET['TActiveFileUpload_InputId'] == $this->getClientID())
284 284
 		{
285 285
 		  $params = new TActiveFileUploadCallbackParams;
286
-		  foreach ($this->getFiles() as $file) {
286
+		  foreach($this->getFiles() as $file) {
287 287
 			$localName = str_replace('\\', '/', tempnam(Prado::getPathOfNamespace($this->getTempPath()), ''));
288 288
 			$file->setLocalName($localName);
289 289
 			// tricky workaround to intercept "uploaded file too big" error: real uploads happens in onFileUpload instead
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
           	 Options = new Object();
296 296
           	 Options.clientID = '{$_GET['TActiveFileUpload_InputId']}';
297 297
           	 Options.targetID = '{$_GET['TActiveFileUpload_TargetId']}';
298
-			       Options.errorCode = '" . (int)!$this->getHasAllFiles() . "';
298
+			       Options.errorCode = '" . (int) !$this->getHasAllFiles() . "';
299 299
           	 Options.callbackToken = '{$this->pushParamsAndGetToken($params)}';
300 300
           	 Options.fileName = '" . TJavaScript::jsonEncode($this->getMultiple() ? array_column($params->files, 'fileName') : $this->getFileName(), JSON_HEX_APOS) . "';
301 301
              Options.fileSize = '" . TJavaScript::jsonEncode($this->getMultiple() ? array_column($params->files, 'fileSize') : $this->getFileSize(), JSON_HEX_APOS) . "';
@@ -343,11 +343,11 @@  discard block
 block discarded – undo
343 343
 	/**
344 344
 	 * Removes localfile on ending of the callback.
345 345
 	 */
346
-	public function onUnload($param){
347
-		if ($this->getPage()->getIsCallback())
346
+	public function onUnload($param) {
347
+		if($this->getPage()->getIsCallback())
348 348
 		{
349 349
 		  foreach($this->getFiles() as $file)
350
-			if($file->getHasFile() && file_exists($file->getLocalName())){
350
+			if($file->getHasFile() && file_exists($file->getLocalName())) {
351 351
 			  unlink($file->getLocalName());
352 352
 		  }
353 353
 		}
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 	/**
358 358
 	 * @return TBaseActiveCallbackControl standard callback control options.
359 359
 	 */
360
-	public function getActiveControl(){
360
+	public function getActiveControl() {
361 361
 		return $this->getAdapter()->getBaseActiveControl();
362 362
 	}
363 363
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	 * Adds ID attribute, and renders the javascript for active component.
374 374
 	 * @param THtmlWriter $writer the writer used for the rendering purpose
375 375
 	 */
376
-	public function addAttributesToRender($writer){
376
+	public function addAttributesToRender($writer) {
377 377
 		parent::addAttributesToRender($writer);
378 378
 		$writer->addAttribute('id', $this->getClientID());
379 379
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 	/**
384 384
 	 * @return string corresponding javascript class name for this control.
385 385
 	 */
386
-	protected function getClientClassName(){
386
+	protected function getClientClassName() {
387 387
 		return 'Prado.WebUI.TActiveFileUpload';
388 388
 	}
389 389
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
 	 * 					completeID => complete client ID,
398 398
 	 * 					errorID => error client ID)
399 399
 	 */
400
-	protected function getClientOptions(){
400
+	protected function getClientOptions() {
401 401
 		$options['ID'] = $this->getClientID();
402 402
 		$options['EventTarget'] = $this->getUniqueID();
403 403
 
@@ -419,9 +419,9 @@  discard block
 block discarded – undo
419 419
 	 * If true, you will not be able to save the uploaded file again.
420 420
 	 * @return boolean true if the file saving is successful
421 421
 	 */
422
-	public function saveAs($fileName, $deleteTempFile = true, $index = 0){
423
-		if (($this->getErrorCode($index) === UPLOAD_ERR_OK) && (file_exists($this->getLocalName($index)))){
424
-			if ($deleteTempFile)
422
+	public function saveAs($fileName, $deleteTempFile = true, $index = 0) {
423
+		if(($this->getErrorCode($index) === UPLOAD_ERR_OK) && (file_exists($this->getLocalName($index)))) {
424
+			if($deleteTempFile)
425 425
 				return rename($this->getLocalName($index), $fileName);
426 426
 			else
427 427
 				return copy($this->getLocalName($index), $fileName);
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
 	 * @return TImage the image displayed when an upload
434 434
 	 * 		completes successfully.
435 435
 	 */
436
-	public function getSuccessImage(){
436
+	public function getSuccessImage() {
437 437
 		$this->ensureChildControls();
438 438
 		return $this->_success;
439 439
 	}
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 	 * @return TImage the image displayed when an upload
443 443
 	 * 		does not complete successfully.
444 444
 	 */
445
-	public function getErrorImage(){
445
+	public function getErrorImage() {
446 446
 		$this->ensureChildControls();
447 447
 		return $this->_error;
448 448
 	}
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 	 * @return TImage the image displayed when an upload
452 452
 	 * 		is in progress.
453 453
 	 */
454
-	public function getBusyImage(){
454
+	public function getBusyImage() {
455 455
 		$this->ensureChildControls();
456 456
 		return $this->_busy;
457 457
 	}
Please login to merge, or discard this patch.