Completed
Push — autoload ( 4808d1...dcd67f )
by Fabio
60:18 queued 50:52
created
framework/Web/UI/ActiveControls/TActiveClientScript.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	protected function renderCustomScriptFile($writer)
43 43
 	{
44
-		if(($scriptUrl = $this->getScriptUrl())!=='')
44
+		if(($scriptUrl=$this->getScriptUrl())!=='')
45 45
 		{
46 46
 			if($this->getPage()->getIsCallback())
47 47
 			{
48
-				$cs = $this->getPage()->getClientScript();
48
+				$cs=$this->getPage()->getClientScript();
49 49
 				$uniqueid=$this->ClientID.'_custom';
50 50
 				if(!$cs->isScriptFileRegistered($uniqueid))
51 51
 					$cs->registerScriptFile($uniqueid, $scriptUrl);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 		{
66 66
 			if($this->getPage()->getIsCallback())
67 67
 			{
68
-				$extWriter= $this->getPage()->getResponse()->createHtmlWriter();
68
+				$extWriter=$this->getPage()->getResponse()->createHtmlWriter();
69 69
 				$extWriter->write("/*<![CDATA[*/\n");
70 70
 				$this->renderChildren($extWriter);
71 71
 				$extWriter->write("\n/*]]>*/");
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveRepeater.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		parent::setDataSource($value);
58 58
 		if($this->getActiveControl()->canUpdateClientSide()) {
59 59
 			$this->renderPager();
60
-			$this->getPage()->getAdapter()->registerControlToRender($this,$this->getResponse()->createHtmlWriter());
60
+			$this->getPage()->getAdapter()->registerControlToRender($this, $this->getResponse()->createHtmlWriter());
61 61
 		}
62 62
 	}
63 63
 
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
 	public function render($writer) {
95 95
 		if($this->getHasPreRendered()) {
96 96
 			$this->renderRepeater($writer);
97
-			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(),$writer);
97
+			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(), $writer);
98 98
 		}
99 99
 		else {
100
-			$this->getPage()->getAdapter()->registerControlToRender($this,$writer);
100
+			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
101 101
 		}
102 102
 	}
103 103
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		foreach($pager as $item) {
112 112
 			if($item->ControlToPaginate==$this->ID) {
113 113
 				$writer=$this->getResponse()->createHtmlWriter();
114
-				$this->getPage()->getAdapter()->registerControlToRender($item,$writer);
114
+				$this->getPage()->getAdapter()->registerControlToRender($item, $writer);
115 115
 			}
116 116
 		}
117 117
 	}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 * @param THtmlWriter writer for the rendering purpose
124 124
 	 */
125 125
 	private function renderRepeater($writer) {
126
-		$writer->addAttribute('id',$this->getSurroundingTagID());
126
+		$writer->addAttribute('id', $this->getSurroundingTagID());
127 127
 		$writer->renderBeginTag($this->getSurroundingTag());
128 128
 		parent::render($writer);
129 129
 		$writer->renderEndTag();
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TBaseActiveControl.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function __construct($control)
44 44
 	{
45
-		$this->_control = $control;
46
-		$this->_options = new TMap;
45
+		$this->_control=$control;
46
+		$this->_options=new TMap;
47 47
 	}
48 48
 
49 49
 	/**
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
 	 * @param mixed default value.
55 55
 	 * @return mixed options value.
56 56
 	 */
57
-	protected function setOption($name,$value,$default=null)
57
+	protected function setOption($name, $value, $default=null)
58 58
 	{
59
-		$value = ($value===null) ? $default : $value;
59
+		$value=($value===null) ? $default : $value;
60 60
 		if($value!==null)
61
-			$this->_options->add($name,$value);
61
+			$this->_options->add($name, $value);
62 62
 	}
63 63
 
64 64
 	/**
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 	 * @param mixed default value.
69 69
 	 * @return mixed options value.
70 70
 	 */
71
-	protected function getOption($name,$default=null)
71
+	protected function getOption($name, $default=null)
72 72
 	{
73
-		$item = $this->_options->itemAt($name);
73
+		$item=$this->_options->itemAt($name);
74 74
 		return ($item===null) ? $default : $item;
75 75
 	}
76 76
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	public function canUpdateClientSide($bDontRequireVisibility=false)
126 126
 	{
127 127
 		return 	$this->getControl()->getHasChildInitialized()
128
-				&& $this->getPage()->getIsLoadingPostData() == false
128
+				&& $this->getPage()->getIsLoadingPostData()==false
129 129
 				&& $this->getPage()->getIsCallback()
130 130
 				&& $this->getEnableUpdate()
131 131
 				&& ($bDontRequireVisibility || $this->getControl()->getVisible());
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
 	 */
167 167
 	public function getClientSide()
168 168
 	{
169
-		if(($client = $this->getOption('ClientSide'))===null)
169
+		if(($client=$this->getOption('ClientSide'))===null)
170 170
 		{
171
-			$client = $this->createClientSide();
171
+			$client=$this->createClientSide();
172 172
 			$this->setOption('ClientSide', $client);
173 173
 		}
174 174
 		return $client;
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 	 */
181 181
 	public function setClientSide($client)
182 182
 	{
183
-		if( $this->getOption('ClientSide')===null)
183
+		if($this->getOption('ClientSide')===null)
184 184
 			$this->setOption('ClientSide', $client);
185 185
 		else
186 186
 			throw new TConfigurationException(
@@ -227,11 +227,11 @@  discard block
 block discarded – undo
227 227
 	{
228 228
 		if(($id=$this->getCallbackOptions())!=='')
229 229
 		{
230
-			if(($pos=strrpos($id,'.'))!==false)
230
+			if(($pos=strrpos($id, '.'))!==false)
231 231
 			{
232
-				$control=$this->getControl()->getSubProperty(substr($id,0,$pos));
233
-				$newid=substr($id,$pos+1);
234
-				if ($control!==null)
232
+				$control=$this->getControl()->getSubProperty(substr($id, 0, $pos));
233
+				$newid=substr($id, $pos + 1);
234
+				if($control!==null)
235 235
 					$control=$control->$newid;
236 236
 			}
237 237
 			else
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 	 */
257 257
 	public function getCausesValidation()
258 258
 	{
259
-		return $this->getOption('CausesValidation',true);
259
+		return $this->getOption('CausesValidation', true);
260 260
 	}
261 261
 
262 262
 	/**
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	 */
266 266
 	public function setCausesValidation($value)
267 267
 	{
268
-		$this->setOption('CausesValidation',TPropertyValue::ensureBoolean($value),true);
268
+		$this->setOption('CausesValidation', TPropertyValue::ensureBoolean($value), true);
269 269
 	}
270 270
 
271 271
 	/**
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 	 */
275 275
 	public function getValidationGroup()
276 276
 	{
277
-		return $this->getOption('ValidationGroup','');
277
+		return $this->getOption('ValidationGroup', '');
278 278
 	}
279 279
 
280 280
 	/**
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 */
284 284
 	public function setValidationGroup($value)
285 285
 	{
286
-		$this->setOption('ValidationGroup',$value,'');
286
+		$this->setOption('ValidationGroup', $value, '');
287 287
 	}
288 288
 
289 289
 	/**
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 		if($this->getCausesValidation())
296 296
 		{
297 297
 			$group=$this->getValidationGroup();
298
-			return $this->getPage()->getValidators($group)->getCount()>0;
298
+			return $this->getPage()->getValidators($group)->getCount() > 0;
299 299
 		}
300 300
 		else
301 301
 			return false;
@@ -323,15 +323,15 @@  discard block
 block discarded – undo
323 323
 	 */
324 324
 	protected function getClientSideOptions()
325 325
 	{
326
-		$default = $this->getDefaultClientSideOptions();
327
-		$options = array_merge($default,$this->getClientSide()->getOptions()->toArray());
328
-		$validate = $this->getCausesValidation();
329
-		$options['CausesValidation']= $validate ? '' : false;
326
+		$default=$this->getDefaultClientSideOptions();
327
+		$options=array_merge($default, $this->getClientSide()->getOptions()->toArray());
328
+		$validate=$this->getCausesValidation();
329
+		$options['CausesValidation']=$validate ? '' : false;
330 330
 		$options['ValidationGroup']=$this->getValidationGroup();
331
-		$options['CallbackParameter'] = $this->getCallbackParameter();
331
+		$options['CallbackParameter']=$this->getCallbackParameter();
332 332
 		// needed for TCallback
333 333
 		if(!isset($options['EventTarget']))
334
-			$options['EventTarget'] = $this->getControl()->getUniqueID();
334
+			$options['EventTarget']=$this->getControl()->getUniqueID();
335 335
 		return $options;
336 336
 	}
337 337
 
@@ -344,13 +344,13 @@  discard block
 block discarded – undo
344 344
 	 * @param string client side javascript class name.
345 345
 	 * @param array additional callback options.
346 346
 	 */
347
-	public function registerCallbackClientScript($class,$options=null)
347
+	public function registerCallbackClientScript($class, $options=null)
348 348
 	{
349
-		$cs = $this->getPage()->getClientScript();
349
+		$cs=$this->getPage()->getClientScript();
350 350
 		if(is_array($options))
351
-			$options = array_merge($this->getClientSideOptions(),$options);
351
+			$options=array_merge($this->getClientSideOptions(), $options);
352 352
 		else
353
-			$options = $this->getClientSideOptions();
353
+			$options=$this->getClientSideOptions();
354 354
 
355 355
 		//remove true as default to save bytes
356 356
 		if($options['CausesValidation']===true)
@@ -379,8 +379,8 @@  discard block
 block discarded – undo
379 379
 	 */
380 380
 	public function getJavascript()
381 381
 	{
382
-		$client = $this->getPage()->getClientScript();
383
-		return $client->getCallbackReference($this->getControl(),$this->getClientSideOptions());
382
+		$client=$this->getPage()->getClientScript();
383
+		return $client->getCallbackReference($this->getControl(), $this->getClientSideOptions());
384 384
 	}
385 385
 
386 386
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TDropContainer.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -129,9 +129,9 @@  discard block
 block discarded – undo
129 129
 	 *
130 130
 	 * @param object $dropControlId
131 131
 	 */
132
-	public function onDrop ($dropParams)
132
+	public function onDrop($dropParams)
133 133
 	{
134
-		$this->raiseEvent('OnDrop', $this, new TDropContainerEventParameter ($dropParams));
134
+		$this->raiseEvent('OnDrop', $this, new TDropContainerEventParameter($dropParams));
135 135
 
136 136
 	}
137 137
 
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
 	 */
154 154
 	protected function getPostBackOptions()
155 155
 	{
156
-		$options['ID'] = $this->getClientID();
157
-		$options['EventTarget'] = $this->getUniqueID();
156
+		$options['ID']=$this->getClientID();
157
+		$options['EventTarget']=$this->getUniqueID();
158 158
 
159
-		$options['accept'] = $this->getAcceptCssClass();
160
-		$options['hoverclass'] = $this->getHoverCssClass();
159
+		$options['accept']=$this->getAcceptCssClass();
160
+		$options['hoverclass']=$this->getHoverCssClass();
161 161
 		return $options;
162 162
 	}
163 163
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 	protected function addAttributesToRender($writer)
190 190
 	{
191 191
 		parent::addAttributesToRender($writer);
192
-		$writer->addAttribute('id',$this->getClientID());
192
+		$writer->addAttribute('id', $this->getClientID());
193 193
 
194 194
 		$this->getPage()->getClientScript()->registerPradoScript('dragdrop');
195 195
 		$this->getActiveControl()->registerCallbackClientScript(
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
 	 * child controls. This container will be a TActivePanel, in order to allow user
203 203
 	 * to update its content on callback.
204 204
 	 */
205
-	public function createChildControls ()
205
+	public function createChildControls()
206 206
 	{
207
-		if ($this->_container===null)
207
+		if($this->_container===null)
208 208
 		{
209 209
 			$this->_container=Prado::CreateComponent('System.Web.UI.ActiveControls.TActivePanel');
210 210
 			$this->_container->setId($this->getId(false).'_content');
@@ -230,17 +230,17 @@  discard block
 block discarded – undo
230 230
 	 * is defered until OnPreRender event is raised.
231 231
 	 * @param THtmlWriter html writer
232 232
 	 */
233
-	public function render ($writer)
233
+	public function render($writer)
234 234
 	{
235 235
 		if($this->getHasPreRendered())
236 236
 		{
237 237
 			parent::render($writer);
238 238
 			if($this->getActiveControl()->canUpdateClientSide())
239
-				$this->getPage()->getCallbackClient()->replaceContent($this->_container,$writer);
239
+				$this->getPage()->getCallbackClient()->replaceContent($this->_container, $writer);
240 240
 		}
241 241
 		else
242 242
 		{
243
-			$this->getPage()->getAdapter()->registerControlToRender($this->_container,$writer);
243
+			$this->getPage()->getAdapter()->registerControlToRender($this->_container, $writer);
244 244
 		}
245 245
 	}
246 246
 
@@ -272,28 +272,28 @@  discard block
 block discarded – undo
272 272
 
273 273
 	public function __construct($dropParams)
274 274
 	{
275
-		$this->_dragElementId = $dropParams->DragElementID;
276
-		$this->_screenX = $dropParams->ScreenX;
277
-		$this->_screenY = $dropParams->ScreenY;
278
-		$this->_offsetX = isset($dropParams->OffsetX) ? $dropParams->OffsetX : false;
279
-		$this->_offsetY = isset($dropParams->OffsetY) ? $dropParams->OffsetY : false;
280
-		$this->_clientX = $dropParams->ClientX;
281
-		$this->_clientY = $dropParams->ClientY;
282
-		$this->_shiftKey = TPropertyValue::ensureBoolean($dropParams->ShiftKey);
283
-		$this->_ctrlKey = TPropertyValue::ensureBoolean($dropParams->CtrlKey);
284
-		$this->_altKey = TPropertyValue::ensureBoolean($dropParams->AltKey);
275
+		$this->_dragElementId=$dropParams->DragElementID;
276
+		$this->_screenX=$dropParams->ScreenX;
277
+		$this->_screenY=$dropParams->ScreenY;
278
+		$this->_offsetX=isset($dropParams->OffsetX) ? $dropParams->OffsetX : false;
279
+		$this->_offsetY=isset($dropParams->OffsetY) ? $dropParams->OffsetY : false;
280
+		$this->_clientX=$dropParams->ClientX;
281
+		$this->_clientY=$dropParams->ClientY;
282
+		$this->_shiftKey=TPropertyValue::ensureBoolean($dropParams->ShiftKey);
283
+		$this->_ctrlKey=TPropertyValue::ensureBoolean($dropParams->CtrlKey);
284
+		$this->_altKey=TPropertyValue::ensureBoolean($dropParams->AltKey);
285 285
 	}
286 286
 
287
-	public function getDragElementId()			{ return $this->_dragElementId; }
288
-	public function getScreenX()				{ return $this->_screenX; }
289
-	public function getScreenY()				{ return $this->_screenY; }
290
-	public function getOffsetX()				{ return $this->_offsetX; }
291
-	public function geOffsetY()					{ return $this->_offsetY; }
292
-	public function getClientX()				{ return $this->_clientX; }
293
-	public function getClientY()				{ return $this->_clientY; }
294
-	public function getShiftKey()				{ return $this->_shiftKey; }
295
-	public function getCtrlKey()				{ return $this->_ctrlKey; }
296
-	public function getAltKey()					{ return $this->_altKey; }
287
+	public function getDragElementId() { return $this->_dragElementId; }
288
+	public function getScreenX() { return $this->_screenX; }
289
+	public function getScreenY() { return $this->_screenY; }
290
+	public function getOffsetX() { return $this->_offsetX; }
291
+	public function geOffsetY() { return $this->_offsetY; }
292
+	public function getClientX() { return $this->_clientX; }
293
+	public function getClientY() { return $this->_clientY; }
294
+	public function getShiftKey() { return $this->_shiftKey; }
295
+	public function getCtrlKey() { return $this->_ctrlKey; }
296
+	public function getAltKey() { return $this->_altKey; }
297 297
 
298 298
 	/**
299 299
 	 * GetDroppedControl
@@ -301,15 +301,15 @@  discard block
 block discarded – undo
301 301
 	 * Compatibility method to get the dropped control
302 302
 	 * @return TControl dropped control, or null if not found
303 303
 	 */
304
-	 public function getDroppedControl ()
304
+	 public function getDroppedControl()
305 305
 	 {
306 306
 		 $control=null;
307 307
 		 $service=prado::getApplication()->getService();
308
-		 if ($service instanceof TPageService)
308
+		 if($service instanceof TPageService)
309 309
 		 {
310 310
 			// Find the control
311 311
 			// Warning, this will not work if you have a '_' in your control Id !
312
-			$dropControlId=str_replace(TControl::CLIENT_ID_SEPARATOR,TControl::ID_SEPARATOR,$this->_dragElementId);
312
+			$dropControlId=str_replace(TControl::CLIENT_ID_SEPARATOR, TControl::ID_SEPARATOR, $this->_dragElementId);
313 313
 			$control=$service->getRequestedPage()->findControl($dropControlId);
314 314
 		 }
315 315
 		 return $control;
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TDraggable.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 * Set the handle id or css class
33 33
 	 * @param string
34 34
 	 */
35
-	public function setHandle ($value)
35
+	public function setHandle($value)
36 36
 	{
37 37
 		$this->setViewState('DragHandle', TPropertyValue::ensureString($value), null);
38 38
 	}
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Get the handle id or css class
42 42
 	 * @return string
43 43
 	 */
44
-	public function getHandle ()
44
+	public function getHandle()
45 45
 	{
46 46
 		return $this->getViewState('DragHandle', null);
47 47
 	}
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	public function setRevert($value)
73 73
 	{
74
-		if (strcasecmp($value,'true')==0 || $value===true)
74
+		if(strcasecmp($value, 'true')==0 || $value===true)
75 75
 			$value=TDraggableRevertOptions::Revert;
76
-		elseif (strcasecmp($value,'false')==0 || $value===false)
76
+		elseif(strcasecmp($value, 'false')==0 || $value===false)
77 77
 			$value=TDraggableRevertOptions::None;
78 78
 		$this->setViewState('Revert', TPropertyValue::ensureEnum($value, 'TDraggableRevertOptions'), true);
79 79
 	}
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 *
91 91
 	 * @return TDraggableGhostingOption to clone the element
92 92
 	 */
93
-	public function getGhosting ()
93
+	public function getGhosting()
94 94
 	{
95 95
 		return $this->getViewState('Ghosting', TDraggableGhostingOptions::None);
96 96
 	}
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
 	 *  o "False" or "None" means no Ghosting options
108 108
 	 *
109 109
 	 */
110
-	public function setGhosting ($value)
110
+	public function setGhosting($value)
111 111
 	{
112
-		if (strcasecmp($value,'true')==0 || $value===true)
112
+		if(strcasecmp($value, 'true')==0 || $value===true)
113 113
 			$value=TDraggableGhostingOptions::Ghosting;
114
-		elseif (strcasecmp($value,'false')==0 || $value===false)
114
+		elseif(strcasecmp($value, 'false')==0 || $value===false)
115 115
 			$value=TDraggableGhostingOptions::None;
116 116
 		$this->setViewState('Ghosting', TPropertyValue::ensureEnum($value, 'TDraggableGhostingOptions'), TDraggableGhostingOptions::None);
117 117
 	}
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
 		parent::addAttributesToRender($writer);
155 155
 
156 156
 		$cs=$this->getPage()->getClientScript();
157
-		if ($this->getGhosting()==TDraggableGhostingOptions::SuperGhosting)
157
+		if($this->getGhosting()==TDraggableGhostingOptions::SuperGhosting)
158 158
 			$cs->registerPradoScript('dragdropextra');
159 159
 		else
160 160
 			$cs->registerPradoScript('dragdrop');
161
-		$writer->addAttribute('id',$this->getClientID());
161
+		$writer->addAttribute('id', $this->getClientID());
162 162
 		$options=TJavascript::encode($this->getPostBackOptions());
163 163
 		$class=$this->getClientClassName();
164 164
 		$code="new {$class}('{$this->getClientId()}', {$options}) ";
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * This method overrides the parent implementation.
171 171
 	 * @return string the javascript class name
172 172
 	 */
173
-	protected function getClientClassName ()
173
+	protected function getClientClassName()
174 174
 	{
175 175
 		return 'Draggable';
176 176
 	}
@@ -181,17 +181,17 @@  discard block
 block discarded – undo
181 181
 	 */
182 182
 	protected function getPostBackOptions()
183 183
 	{
184
-		$options['ID'] = $this->getClientID();
184
+		$options['ID']=$this->getClientID();
185 185
 
186
-		if (($handle=$this->getHandle())!== null) $options['handle']=$handle;
187
-		if (($revert=$this->getRevert())===TDraggableRevertOptions::None)
186
+		if(($handle=$this->getHandle())!==null) $options['handle']=$handle;
187
+		if(($revert=$this->getRevert())===TDraggableRevertOptions::None)
188 188
 			$options['revert']=false;
189
-		elseif ($revert==TDraggableRevertOptions::Revert)
189
+		elseif($revert==TDraggableRevertOptions::Revert)
190 190
 			$options['revert']=true;
191 191
 		else
192 192
 			$options['revert']=strtolower($revert);
193
-		if (($constraint=$this->getConstraint())!==TDraggableConstraint::None) $options['constraint']=strtolower($constraint);
194
-		switch ($this->getGhosting())
193
+		if(($constraint=$this->getConstraint())!==TDraggableConstraint::None) $options['constraint']=strtolower($constraint);
194
+		switch($this->getGhosting())
195 195
 		{
196 196
 			case TDraggableGhostingOptions::SuperGhosting:
197 197
 				$options['superghosting']=true;
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	public function getClientSide()
37 37
 	{
38 38
 		if($this->_clientSide===null)
39
-			$this->_clientSide = $this->createClientSide();
39
+			$this->_clientSide=$this->createClientSide();
40 40
 		return $this->_clientSide;
41 41
 	}
42 42
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TTriggeredCallback.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	 */
45 45
 	protected function getTargetControl()
46 46
 	{
47
-		$id = $this->getControlID();
47
+		$id=$this->getControlID();
48 48
 		if(($control=$this->findControl($id)) instanceof TControl)
49 49
 			return $control->getClientID();
50 50
 		if($id==='')
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
 	 */
61 61
 	protected function getTriggerOptions()
62 62
 	{
63
-		$options['ID'] = $this->getClientID();
64
-		$options['EventTarget'] = $this->getUniqueID();
65
-		$options['ControlID'] = $this->getTargetControl();
63
+		$options['ID']=$this->getClientID();
64
+		$options['EventTarget']=$this->getUniqueID();
65
+		$options['ControlID']=$this->getTargetControl();
66 66
 		return $options;
67 67
 	}
68 68
 }
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActivePanel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * @param THtmlWriter the writer used for the rendering purpose
61 61
 	 */
62 62
 	protected function addAttributesToRender($writer) {
63
-	    $writer->addAttribute('id',$this->getClientID());
63
+	    $writer->addAttribute('id', $this->getClientID());
64 64
 	    parent::addAttributesToRender($writer);
65 65
 	}
66 66
 
@@ -77,17 +77,17 @@  discard block
 block discarded – undo
77 77
 		{
78 78
 			parent::render($writer);
79 79
 			if($this->getActiveControl()->canUpdateClientSide())
80
-				$this->getPage()->getCallbackClient()->replaceContent($this,$writer);
80
+				$this->getPage()->getCallbackClient()->replaceContent($this, $writer);
81 81
 		}
82 82
 		else
83 83
 		{
84
-			$this->getPage()->getAdapter()->registerControlToRender($this,$writer);
85
-			if ($this->getHasControls())
84
+			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
85
+			if($this->getHasControls())
86 86
 			{
87 87
 				// If we update a TActivePanel on callback,
88 88
 				// We shouldn't update all childs, because the whole content will be replaced by
89 89
 				// the parent
90
-				foreach ($this->findControlsByType('IActiveControl', false) as $control)
90
+				foreach($this->findControlsByType('IActiveControl', false) as $control)
91 91
 				{
92 92
 						$control->getActiveControl()->setEnableUpdate(false);
93 93
 				}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDropDownList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	protected function createListItemCollection()
84 84
 	{
85
-		$collection  = new TActiveListItemCollection;
85
+		$collection=new TActiveListItemCollection;
86 86
 		$collection->setControl($this);
87 87
 		return $collection;
88 88
 	}
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	protected function addAttributesToRender($writer)
103 103
 	{
104 104
 		parent::addAttributesToRender($writer);
105
-		$writer->addAttribute('id',$this->getClientID());
106
-		if ($this->getAutoPostBack())
105
+		$writer->addAttribute('id', $this->getClientID());
106
+		if($this->getAutoPostBack())
107 107
 			$this->getActiveControl()->registerCallbackClientScript(
108 108
 				$this->getClientClassName(), $this->getPostBackOptions());
109 109
 	}
Please login to merge, or discard this patch.