Completed
Branch scrutinizer (4d54e2)
by Fabio
11:55
created
framework/Web/UI/WebControls/TColorPicker.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TColorPicker class file
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.WebControls
10
- */
3
+	 * TColorPicker class file
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @package System.Web.UI.WebControls
10
+	 */
11 11
 
12 12
 /**
13 13
  * TColorPicker class.
Please login to merge, or discard this patch.
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  */
38 38
 class TColorPicker extends TTextBox
39 39
 {
40
-	const SCRIPT_PATH = 'prado/colorpicker';
40
+	const SCRIPT_PATH='prado/colorpicker';
41 41
 
42 42
 	private $_clientSide;
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 */
47 47
 	public function getShowColorPicker()
48 48
 	{
49
-		return $this->getViewState('ShowColorPicker',true);
49
+		return $this->getViewState('ShowColorPicker', true);
50 50
 	}
51 51
 
52 52
 	/**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	 */
56 56
 	public function setShowColorPicker($value)
57 57
 	{
58
-		$this->setViewState('ShowColorPicker',TPropertyValue::ensureBoolean($value),true);
58
+		$this->setViewState('ShowColorPicker', TPropertyValue::ensureBoolean($value), true);
59 59
 	}
60 60
 
61 61
 	/**
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 	public function getClientSide()
129 129
 	{
130 130
 		if($this->_clientSide===null)
131
-			$this->_clientSide = $this->createClientSide();
131
+			$this->_clientSide=$this->createClientSide();
132 132
 		return $this->_clientSide;
133 133
 	}
134 134
 
@@ -146,18 +146,18 @@  discard block
 block discarded – undo
146 146
 	 */
147 147
 	protected function getPostBackOptions()
148 148
 	{
149
-		$options = parent::getPostBackOptions();
150
-		$options['ClassName'] = $this->getCssClass();
151
-		$options['ShowColorPicker'] = $this->getShowColorPicker();
149
+		$options=parent::getPostBackOptions();
150
+		$options['ClassName']=$this->getCssClass();
151
+		$options['ShowColorPicker']=$this->getShowColorPicker();
152 152
 		if($options['ShowColorPicker'])
153 153
 		{
154
-			$mode = $this->getMode();
155
-			if($mode == TColorPickerMode::Full) $options['Mode'] = $mode;
156
-			else if($mode == TColorPickerMode::Simple) $options['Palette'] = 'Tiny';
157
-			$options['OKButtonText'] = $this->getOKButtonText();
158
-			$options['CancelButtonText'] = $this->getCancelButtonText();
154
+			$mode=$this->getMode();
155
+			if($mode==TColorPickerMode::Full) $options['Mode']=$mode;
156
+			else if($mode==TColorPickerMode::Simple) $options['Palette']='Tiny';
157
+			$options['OKButtonText']=$this->getOKButtonText();
158
+			$options['CancelButtonText']=$this->getCancelButtonText();
159 159
 		}
160
-		$options = array_merge($options,$this->getClientSide()->getOptions()->toArray());
160
+		$options=array_merge($options, $this->getClientSide()->getOptions()->toArray());
161 161
 		return $options;
162 162
 	}
163 163
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 */
168 168
 	protected function getAssetUrl($file='')
169 169
 	{
170
-		$base = $this->getPage()->getClientScript()->getPradoScriptAssetUrl();
170
+		$base=$this->getPage()->getClientScript()->getPradoScriptAssetUrl();
171 171
 		return $base.'/'.self::SCRIPT_PATH.'/'.$file;
172 172
 	}
173 173
 
@@ -185,15 +185,15 @@  discard block
 block discarded – undo
185 185
 	 */
186 186
 	protected function publishColorPickerAssets()
187 187
 	{
188
-		$cs = $this->getPage()->getClientScript();
189
-		$key = "prado:".get_class($this);
190
-		$imgs['button.gif'] = $this->getAssetUrl('button.gif');
191
-		$imgs['background.png'] = $this->getAssetUrl('background.png');
192
-		$options = TJavaScript::encode($imgs);
193
-		$code = "Prado.WebUI.TColorPicker.UIImages = {$options};";
188
+		$cs=$this->getPage()->getClientScript();
189
+		$key="prado:".get_class($this);
190
+		$imgs['button.gif']=$this->getAssetUrl('button.gif');
191
+		$imgs['background.png']=$this->getAssetUrl('background.png');
192
+		$options=TJavaScript::encode($imgs);
193
+		$code="Prado.WebUI.TColorPicker.UIImages = {$options};";
194 194
 		$cs->registerEndScript($key, $code);
195 195
 		$cs->registerPradoScript("colorpicker");
196
-		$url = $this->getAssetUrl($this->getColorPickerStyle().'.css');
196
+		$url=$this->getAssetUrl($this->getColorPickerStyle().'.css');
197 197
 		if(!$cs->isStyleSheetFileRegistered($url))
198 198
 			$cs->registerStyleSheetFile($url, $url);
199 199
 	}
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
 	{
209 209
 		parent::renderEndTag($writer);
210 210
 
211
-		$color = $this->getText();
211
+		$color=$this->getText();
212 212
 		$writer->addAttribute('class', 'TColorPicker_button');
213 213
 		$writer->renderBeginTag('span');
214 214
 
215 215
 		$writer->addAttribute('id', $this->getClientID().'_button');
216 216
 		$writer->addAttribute('src', $this->getAssetUrl('button.gif'));
217
-		if($color !== '')
217
+		if($color!=='')
218 218
 			$writer->addAttribute('style', "background-color:{$color};");
219 219
 		$writer->addAttribute('width', '20');
220 220
 		$writer->addAttribute('height', '20');
Please login to merge, or discard this patch.
framework/I18N/TGlobalizationAutoDetect.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TMultiView and TView class file.
4
- *
5
- * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @version $Revision: 1.66 $  $Date: ${DATE} ${TIME} $
10
- * @package System.I18N
11
- */
3
+	 * TMultiView and TView class file.
4
+	 *
5
+	 * @author Wei Zhuo<weizhuo[at]gmail[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @version $Revision: 1.66 $  $Date: ${DATE} ${TIME} $
10
+	 * @package System.I18N
11
+	 */
12 12
 
13 13
 /**
14 14
  * Import the HTTPNeogtiator
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
 		parent::init($xml);
33 33
 
34 34
 		//set the culture according to browser language settings
35
-		$http = new HTTPNegotiator();
36
-		$languages = $http->getLanguages();
35
+		$http=new HTTPNegotiator();
36
+		$languages=$http->getLanguages();
37 37
 		if(count($languages) > 0)
38 38
 		{
39 39
 			$this->_detectedLanguage=$languages[0];
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackClientSide.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	}
200 200
 
201 201
 	/**
202
-	 * @return boolean true to post the inputs of the form on callback, default
202
+	 * @return string true to post the inputs of the form on callback, default
203 203
 	 * is post the inputs on callback.
204 204
 	 */
205 205
 	public function getPostState()
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	}
218 218
 
219 219
 	/**
220
-	 * @return integer callback request timeout.
220
+	 * @return string callback request timeout.
221 221
 	 */
222 222
 	public function getRequestTimeOut()
223 223
 	{
@@ -261,6 +261,7 @@  discard block
 block discarded – undo
261 261
 	 * update. This will automatically set HasPrority to true.
262 262
 	 * @param boolean true enables the callback response to update the
263 263
 	 * viewstate.
264
+	 * @param boolean $value
264 265
 	 */
265 266
 	public function setEnablePageStateUpdate($value)
266 267
 	{
@@ -269,7 +270,7 @@  discard block
 block discarded – undo
269 270
 	}
270 271
 
271 272
 	/**
272
-	 * @return boolean client-side viewstate will be updated on callback
273
+	 * @return boolean|string client-side viewstate will be updated on callback
273 274
 	 * response if true. Default is true.
274 275
 	 */
275 276
 	public function getEnablePageStateUpdate()
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 	 */
265 265
 	public function setEnablePageStateUpdate($value)
266 266
 	{
267
-		$enabled = TPropertyValue::ensureBoolean($value);
267
+		$enabled=TPropertyValue::ensureBoolean($value);
268 268
 		$this->setOption('EnablePageStateUpdate', $enabled);
269 269
 	}
270 270
 
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 	 */
275 275
 	public function getEnablePageStateUpdate()
276 276
 	{
277
-		$option = $this->getOption('EnablePageStateUpdate');
277
+		$option=$this->getOption('EnablePageStateUpdate');
278 278
 		return ($option===null) ? true : $option;
279 279
 	}
280 280
 
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 	public function setPostBackTarget($value)
293 293
 	{
294 294
 		if($value instanceof TControl)
295
-			$value = $value->getUniqueID();
295
+			$value=$value->getUniqueID();
296 296
 		$this->setOption('EventTarget', $value);
297 297
 	}
298 298
 
Please login to merge, or discard this patch.
framework/Util/TClassBehavior.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TClassBehavior class file.
4
- *
5
- * @author Brad Anderson <[email protected]>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2008-2011 Pradosoft
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- */
3
+	 * TClassBehavior class file.
4
+	 *
5
+	 * @author Brad Anderson <[email protected]>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2008-2011 Pradosoft
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 */
10 10
 
11 11
 /**
12 12
  * TClassBehavior is a convenient base class for whole class behaviors.
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TFont.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TFont class file.
4
- *
5
- * @author Qiang Xue <[email protected]>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.WebControls
10
- */
3
+	 * TFont class file.
4
+	 *
5
+	 * @author Qiang Xue <[email protected]>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @package System.Web.UI.WebControls
10
+	 */
11 11
 
12 12
 /**
13 13
  * TFont class
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 	protected function __getZappableSleepProps(&$exprops)
63 63
 	{
64 64
 		parent::__getZappableSleepProps($exprops);
65
-		if ($this->_flags===0)
66
-			$exprops[] = "\0TFont\0_flags";
67
-		if ($this->_name==='')
68
-			$exprops[] = "\0TFont\0_name";
69
-		if ($this->_size==='')
70
-			$exprops[] = "\0TFont\0_size";
65
+		if($this->_flags===0)
66
+			$exprops[]="\0TFont\0_flags";
67
+		if($this->_name==='')
68
+			$exprops[]="\0TFont\0_name";
69
+		if($this->_size==='')
70
+			$exprops[]="\0TFont\0_size";
71 71
 	}
72 72
 
73 73
 	/**
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
 	 */
84 84
 	public function setBold($value)
85 85
 	{
86
-		$this->_flags |= self::IS_SET_BOLD;
86
+		$this->_flags|=self::IS_SET_BOLD;
87 87
 		if(TPropertyValue::ensureBoolean($value))
88
-			$this->_flags |= self::IS_BOLD;
88
+			$this->_flags|=self::IS_BOLD;
89 89
 		else
90
-			$this->_flags &= ~self::IS_BOLD;
90
+			$this->_flags&=~self::IS_BOLD;
91 91
 	}
92 92
 
93 93
 	/**
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
 	 */
104 104
 	public function setItalic($value)
105 105
 	{
106
-		$this->_flags |= self::IS_SET_ITALIC;
106
+		$this->_flags|=self::IS_SET_ITALIC;
107 107
 		if(TPropertyValue::ensureBoolean($value))
108
-			$this->_flags |= self::IS_ITALIC;
108
+			$this->_flags|=self::IS_ITALIC;
109 109
 		else
110
-			$this->_flags &= ~self::IS_ITALIC;
110
+			$this->_flags&=~self::IS_ITALIC;
111 111
 	}
112 112
 
113 113
 	/**
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function setOverline($value)
125 125
 	{
126
-		$this->_flags |= self::IS_SET_OVERLINE;
126
+		$this->_flags|=self::IS_SET_OVERLINE;
127 127
 		if(TPropertyValue::ensureBoolean($value))
128
-			$this->_flags |= self::IS_OVERLINE;
128
+			$this->_flags|=self::IS_OVERLINE;
129 129
 		else
130
-			$this->_flags &= ~self::IS_OVERLINE;
130
+			$this->_flags&=~self::IS_OVERLINE;
131 131
 	}
132 132
 
133 133
 	/**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 */
144 144
 	public function setSize($value)
145 145
 	{
146
-		$this->_flags |= self::IS_SET_SIZE;
146
+		$this->_flags|=self::IS_SET_SIZE;
147 147
 		$this->_size=$value;
148 148
 	}
149 149
 
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function setStrikeout($value)
162 162
 	{
163
-		$this->_flags |= self::IS_SET_STRIKEOUT;
163
+		$this->_flags|=self::IS_SET_STRIKEOUT;
164 164
 		if(TPropertyValue::ensureBoolean($value))
165
-			$this->_flags |= self::IS_STRIKEOUT;
165
+			$this->_flags|=self::IS_STRIKEOUT;
166 166
 		else
167
-			$this->_flags &= ~self::IS_STRIKEOUT;
167
+			$this->_flags&=~self::IS_STRIKEOUT;
168 168
 	}
169 169
 
170 170
 	/**
@@ -180,11 +180,11 @@  discard block
 block discarded – undo
180 180
 	 */
181 181
 	public function setUnderline($value)
182 182
 	{
183
-		$this->_flags |= self::IS_SET_UNDERLINE;
183
+		$this->_flags|=self::IS_SET_UNDERLINE;
184 184
 		if(TPropertyValue::ensureBoolean($value))
185
-			$this->_flags |= self::IS_UNDERLINE;
185
+			$this->_flags|=self::IS_UNDERLINE;
186 186
 		else
187
-			$this->_flags &= ~self::IS_UNDERLINE;
187
+			$this->_flags&=~self::IS_UNDERLINE;
188 188
 	}
189 189
 
190 190
 	/**
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 */
201 201
 	public function setName($value)
202 202
 	{
203
-		$this->_flags |= self::IS_SET_NAME;
203
+		$this->_flags|=self::IS_SET_NAME;
204 204
 		$this->_name=$value;
205 205
 	}
206 206
 
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
 			return '';
284 284
 		$str='';
285 285
 		if($this->_flags & self::IS_SET_BOLD)
286
-			$str.='font-weight:'.(($this->_flags & self::IS_BOLD)?'bold;':'normal;');
286
+			$str.='font-weight:'.(($this->_flags & self::IS_BOLD) ? 'bold;' : 'normal;');
287 287
 		if($this->_flags & self::IS_SET_ITALIC)
288
-			$str.='font-style:'.(($this->_flags & self::IS_ITALIC)?'italic;':'normal;');
288
+			$str.='font-style:'.(($this->_flags & self::IS_ITALIC) ? 'italic;' : 'normal;');
289 289
 		$textDec='';
290 290
 		if($this->_flags & self::IS_UNDERLINE)
291 291
 			$textDec.='underline';
@@ -312,9 +312,9 @@  discard block
 block discarded – undo
312 312
 		if($this->_flags===0)
313 313
 			return;
314 314
 		if($this->_flags & self::IS_SET_BOLD)
315
-			$writer->addStyleAttribute('font-weight',(($this->_flags & self::IS_BOLD)?'bold':'normal'));
315
+			$writer->addStyleAttribute('font-weight', (($this->_flags & self::IS_BOLD) ? 'bold' : 'normal'));
316 316
 		if($this->_flags & self::IS_SET_ITALIC)
317
-			$writer->addStyleAttribute('font-style',(($this->_flags & self::IS_ITALIC)?'italic':'normal'));
317
+			$writer->addStyleAttribute('font-style', (($this->_flags & self::IS_ITALIC) ? 'italic' : 'normal'));
318 318
 		$textDec='';
319 319
 		if($this->_flags & self::IS_UNDERLINE)
320 320
 			$textDec.='underline';
@@ -324,10 +324,10 @@  discard block
 block discarded – undo
324 324
 			$textDec.=' line-through';
325 325
 		$textDec=ltrim($textDec);
326 326
 		if($textDec!=='')
327
-			$writer->addStyleAttribute('text-decoration',$textDec);
327
+			$writer->addStyleAttribute('text-decoration', $textDec);
328 328
 		if($this->_size!=='')
329
-			$writer->addStyleAttribute('font-size',$this->_size);
329
+			$writer->addStyleAttribute('font-size', $this->_size);
330 330
 		if($this->_name!=='')
331
-			$writer->addStyleAttribute('font-family',$this->_name);
331
+			$writer->addStyleAttribute('font-family', $this->_name);
332 332
 	}
333 333
 }
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TTimeTriggeredCallback.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TTimeTriggeredCallback class file.
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	 * TTimeTriggeredCallback class file.
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @package System.Web.UI.ActiveControls
10
+	 */
11 11
 
12 12
 /**
13 13
  * Load active callback control.
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	public function setInterval($value)
45 45
 	{
46
-		$interval = TPropertyValue::ensureFloat($value);
46
+		$interval=TPropertyValue::ensureFloat($value);
47 47
 		if($interval <= 0)
48 48
 			throw new TConfigurationException('callback_interval_be_positive', $this->getID());
49 49
 		$this->setViewState('Interval', $interval, 1);
50
-		if ($this->getActiveControl()->canUpdateClientSide()){
51
-			$client = $this->getPage()->getCallbackClient();
50
+		if($this->getActiveControl()->canUpdateClientSide()) {
51
+			$client=$this->getPage()->getCallbackClient();
52 52
 			$client->callClientFunction('Prado.WebUI.TTimeTriggeredCallback.setTimerInterval', array($this, $interval));
53 53
 		}
54 54
 	}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public function startTimer()
60 60
 	{
61
-		$client = $this->getPage()->getCallbackClient();
61
+		$client=$this->getPage()->getCallbackClient();
62 62
 		$client->callClientFunction('Prado.WebUI.TTimeTriggeredCallback.start', array($this));
63 63
 	}
64 64
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 */
68 68
 	public function stopTimer()
69 69
 	{
70
-		$client = $this->getPage()->getCallbackClient();
70
+		$client=$this->getPage()->getCallbackClient();
71 71
 		$client->callClientFunction('Prado.WebUI.TTimeTriggeredCallback.stop', array($this));
72 72
 	}
73 73
 
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
 	 */
94 94
 	protected function getTriggerOptions()
95 95
 	{
96
-		$options['ID'] = $this->getClientID();
97
-		$options['EventTarget']= $this->getUniqueID();
98
-		$options['Interval'] = $this->getInterval();
96
+		$options['ID']=$this->getClientID();
97
+		$options['EventTarget']=$this->getUniqueID();
98
+		$options['Interval']=$this->getInterval();
99 99
 		return $options;
100 100
 	}
101 101
 
@@ -108,10 +108,10 @@  discard block
 block discarded – undo
108 108
 		parent::render($writer);
109 109
 		$this->getActiveControl()->registerCallbackClientScript(
110 110
 			$this->getClientClassName(), $this->getTriggerOptions());
111
-		if($this->getStartTimerOnLoad()){
112
-			$id = $this->getClientID();
113
-			$code = "Prado.WebUI.TTimeTriggeredCallback.start('{$id}');";
114
-			$cs = $this->getPage()->getClientScript();
111
+		if($this->getStartTimerOnLoad()) {
112
+			$id=$this->getClientID();
113
+			$code="Prado.WebUI.TTimeTriggeredCallback.start('{$id}');";
114
+			$cs=$this->getPage()->getClientScript();
115 115
 			$cs->registerEndScript("{$id}:start", $code);
116 116
 		}
117 117
 	}
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveCheckBoxList.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TActiveCheckBoxList class file.
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	 * TActiveCheckBoxList class file.
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @package System.Web.UI.ActiveControls
10
+	 */
11 11
 
12 12
 /**
13 13
  * Load active control adapter.
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 			&& $this->getPage()->getClientSupportsJavaScript())
117 117
 		{
118 118
 		  $this->getActiveControl()->registerCallbackClientScript(
119
-		    $this->getClientClassName(), $this->getPostBackOptions());
119
+			$this->getClientClassName(), $this->getPostBackOptions());
120 120
 		}
121 121
 	}
122 122
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	protected function createRepeatedControl()
78 78
 	{
79
-		$control = new TActiveCheckBoxListItem;
79
+		$control=new TActiveCheckBoxListItem;
80 80
 		$control->getAdapter()->setBaseActiveControl($this->getActiveControl());
81 81
 		return $control;
82 82
 	}
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
 	 * @param string checkbox id
141 141
 	 * @param string onclick js
142 142
 	 */
143
-	protected function renderInputTag($writer,$clientID,$onclick)
143
+	protected function renderInputTag($writer, $clientID, $onclick)
144 144
 	{
145
-		TCheckBox::renderInputTag($writer,$clientID,$onclick);
145
+		TCheckBox::renderInputTag($writer, $clientID, $onclick);
146 146
 	}
147 147
 }
148 148
 
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveDataGrid.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 	}
69 69
 
70 70
 	/**
71
-	* Creates a new callback control, sets the adapter to
72
-	* TActiveControlAdapter.
73
-	*/
71
+	 * Creates a new callback control, sets the adapter to
72
+	 * TActiveControlAdapter.
73
+	 */
74 74
 	public function __construct() {
75 75
 		parent::__construct();
76 76
 		$this->setAdapter(new TActiveControlAdapter($this));
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	 * @param string $value container tag
112 112
 	 */
113 113
 	public function setSurroundingTag($value) {
114
-    $this->_surroundingTag=TPropertyValue::ensureString($value);
114
+	$this->_surroundingTag=TPropertyValue::ensureString($value);
115 115
 	}
116 116
 
117 117
 	/**
Please login to merge, or discard this patch.
Braces   +34 added lines, -68 removed lines patch added patch discarded remove patch
@@ -145,8 +145,7 @@  discard block
 block discarded – undo
145 145
 				$button->setText($text);
146 146
 				return $button;
147 147
 			}
148
-		}
149
-		else {
148
+		} else {
150 149
 			$button=new TActiveButton;
151 150
 			if(!$enabled)
152 151
 				$button->setEnabled(false);
@@ -180,8 +179,7 @@  discard block
 block discarded – undo
180 179
 		if($this->getHasPreRendered()) {
181 180
 			$this->renderDataGrid($writer);
182 181
 			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(),$writer);
183
-		}
184
-		else {
182
+		} else {
185 183
 			$this->getPage()->getAdapter()->registerControlToRender($this,$writer);
186 184
 		}
187 185
 	}
@@ -248,8 +246,7 @@  discard block
 block discarded – undo
248 246
 				$control->setData($text);
249 247
 			}
250 248
 			$cell->getControls()->add($control);
251
-		}
252
-		else if($this->getAllowSorting()) {
249
+		} else if($this->getAllowSorting()) {
253 250
 				$sortExpression=$this->getSortExpression();
254 251
 				if(($url=$this->getHeaderImageUrl())!=='') {
255 252
 					$button=Prado::createComponent('System.Web.UI.WebControls.TActiveImageButton');
@@ -262,19 +259,16 @@  discard block
 block discarded – undo
262 259
 					}
263 260
 					$button->setCausesValidation(false);
264 261
 					$cell->getControls()->add($button);
265
-				}
266
-				else if($text!=='') {
262
+				} else if($text!=='') {
267 263
 						$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
268 264
 						$button->setText($text);
269 265
 						$button->setCommandName(TDataGrid::CMD_SORT);
270 266
 						$button->setCommandParameter($sortExpression);
271 267
 						$button->setCausesValidation(false);
272 268
 						$cell->getControls()->add($button);
273
-					}
274
-					else
269
+					} else
275 270
 						$cell->setText('&nbsp;');
276
-			}
277
-			else {
271
+			} else {
278 272
 				if(($url=$this->getHeaderImageUrl())!=='') {
279 273
 					$image=Prado::createComponent('System.Web.UI.WebControls.TActiveImage');
280 274
 					$image->setImageUrl($url);
@@ -283,8 +277,7 @@  discard block
 block discarded – undo
283 277
 						$image->setToolTip($text);
284 278
 					}
285 279
 					$cell->getControls()->add($image);
286
-				}
287
-				else if($text!=='')
280
+				} else if($text!=='')
288 281
 						$cell->setText($text);
289 282
 					else
290 283
 						$cell->setText('&nbsp;');
@@ -376,8 +369,7 @@  discard block
 block discarded – undo
376 369
 				$button->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
377 370
 			$cell->getControls()->add($button);
378 371
 			$cell->registerObject('Button',$button);
379
-		}
380
-		else
372
+		} else
381 373
 			parent::initializeCell($cell,$columnIndex,$itemType);
382 374
 	}
383 375
 }
@@ -416,8 +408,7 @@  discard block
 block discarded – undo
416 408
 				$control->setData($text);
417 409
 			}
418 410
 			$cell->getControls()->add($control);
419
-		}
420
-		else if($this->getAllowSorting()) {
411
+		} else if($this->getAllowSorting()) {
421 412
 				$sortExpression=$this->getSortExpression();
422 413
 				if(($url=$this->getHeaderImageUrl())!=='') {
423 414
 					$button=Prado::createComponent('System.Web.UI.WebControls.TActiveImageButton');
@@ -428,27 +419,23 @@  discard block
 block discarded – undo
428 419
 						$button->setAlternateText($text);
429 420
 					$button->setCausesValidation(false);
430 421
 					$cell->getControls()->add($button);
431
-				}
432
-				else if($text!=='') {
422
+				} else if($text!=='') {
433 423
 						$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
434 424
 						$button->setText($text);
435 425
 						$button->setCommandName(TDataGrid::CMD_SORT);
436 426
 						$button->setCommandParameter($sortExpression);
437 427
 						$button->setCausesValidation(false);
438 428
 						$cell->getControls()->add($button);
439
-					}
440
-					else
429
+					} else
441 430
 						$cell->setText('&nbsp;');
442
-			}
443
-			else {
431
+			} else {
444 432
 				if(($url=$this->getHeaderImageUrl())!=='') {
445 433
 					$image=Prado::createComponent('System.Web.UI.WebControls.TActiveImage');
446 434
 					$image->setImageUrl($url);
447 435
 					if($text!=='')
448 436
 						$image->setAlternateText($text);
449 437
 					$cell->getControls()->add($image);
450
-				}
451
-				else if($text!=='')
438
+				} else if($text!=='')
452 439
 						$cell->setText($text);
453 440
 					else
454 441
 						$cell->setText('&nbsp;');
@@ -491,8 +478,7 @@  discard block
 block discarded – undo
491 478
 				$control->setData($text);
492 479
 			}
493 480
 			$cell->getControls()->add($control);
494
-		}
495
-		else if($this->getAllowSorting())
481
+		} else if($this->getAllowSorting())
496 482
 		{
497 483
 			$sortExpression=$this->getSortExpression();
498 484
 			if(($url=$this->getHeaderImageUrl())!=='')
@@ -505,8 +491,7 @@  discard block
 block discarded – undo
505 491
 					$button->setAlternateText($text);
506 492
 				$button->setCausesValidation(false);
507 493
 				$cell->getControls()->add($button);
508
-			}
509
-			else if($text!=='')
494
+			} else if($text!=='')
510 495
 			{
511 496
 				$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
512 497
 				$button->setText($text);
@@ -514,11 +499,9 @@  discard block
 block discarded – undo
514 499
 				$button->setCommandParameter($sortExpression);
515 500
 				$button->setCausesValidation(false);
516 501
 				$cell->getControls()->add($button);
517
-			}
518
-			else
502
+			} else
519 503
 				$cell->setText('&nbsp;');
520
-		}
521
-		else
504
+		} else
522 505
 		{
523 506
 			if(($url=$this->getHeaderImageUrl())!=='')
524 507
 			{
@@ -527,8 +510,7 @@  discard block
 block discarded – undo
527 510
 				if($text!=='')
528 511
 					$image->setAlternateText($text);
529 512
 				$cell->getControls()->add($image);
530
-			}
531
-			else if($text!=='')
513
+			} else if($text!=='')
532 514
 				$cell->setText($text);
533 515
 			else
534 516
 				$cell->setText('&nbsp;');
@@ -574,8 +556,7 @@  discard block
 block discarded – undo
574 556
 			$cell->registerObject('CheckBox',$checkBox);
575 557
 			if($this->getDataField()!=='')
576 558
 				$checkBox->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
577
-		}
578
-		else
559
+		} else
579 560
 			parent::initializeCell($cell,$columnIndex,$itemType);
580 561
 	}
581 562
 
@@ -597,8 +578,7 @@  discard block
 block discarded – undo
597 578
 				$control->setData($text);
598 579
 			}
599 580
 			$cell->getControls()->add($control);
600
-		}
601
-		else if($this->getAllowSorting())
581
+		} else if($this->getAllowSorting())
602 582
 		{
603 583
 			$sortExpression=$this->getSortExpression();
604 584
 			if(($url=$this->getHeaderImageUrl())!=='')
@@ -611,8 +591,7 @@  discard block
 block discarded – undo
611 591
 					$button->setAlternateText($text);
612 592
 				$button->setCausesValidation(false);
613 593
 				$cell->getControls()->add($button);
614
-			}
615
-			else if($text!=='')
594
+			} else if($text!=='')
616 595
 			{
617 596
 				$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
618 597
 				$button->setText($text);
@@ -620,11 +599,9 @@  discard block
 block discarded – undo
620 599
 				$button->setCommandParameter($sortExpression);
621 600
 				$button->setCausesValidation(false);
622 601
 				$cell->getControls()->add($button);
623
-			}
624
-			else
602
+			} else
625 603
 				$cell->setText('&nbsp;');
626
-		}
627
-		else
604
+		} else
628 605
 		{
629 606
 			if(($url=$this->getHeaderImageUrl())!=='')
630 607
 			{
@@ -633,8 +610,7 @@  discard block
 block discarded – undo
633 610
 				if($text!=='')
634 611
 					$image->setAlternateText($text);
635 612
 				$cell->getControls()->add($image);
636
-			}
637
-			else if($text!=='')
613
+			} else if($text!=='')
638 614
 				$cell->setText($text);
639 615
 			else
640 616
 				$cell->setText('&nbsp;');
@@ -676,8 +652,7 @@  discard block
 block discarded – undo
676 652
 				$control->setData($text);
677 653
 			}
678 654
 			$cell->getControls()->add($control);
679
-		}
680
-		else if($this->getAllowSorting())
655
+		} else if($this->getAllowSorting())
681 656
 		{
682 657
 			$sortExpression=$this->getSortExpression();
683 658
 			if(($url=$this->getHeaderImageUrl())!=='')
@@ -690,8 +665,7 @@  discard block
 block discarded – undo
690 665
 					$button->setAlternateText($text);
691 666
 				$button->setCausesValidation(false);
692 667
 				$cell->getControls()->add($button);
693
-			}
694
-			else if($text!=='')
668
+			} else if($text!=='')
695 669
 			{
696 670
 				$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
697 671
 				$button->setText($text);
@@ -699,11 +673,9 @@  discard block
 block discarded – undo
699 673
 				$button->setCommandParameter($sortExpression);
700 674
 				$button->setCausesValidation(false);
701 675
 				$cell->getControls()->add($button);
702
-			}
703
-			else
676
+			} else
704 677
 				$cell->setText('&nbsp;');
705
-		}
706
-		else
678
+		} else
707 679
 		{
708 680
 			if(($url=$this->getHeaderImageUrl())!=='')
709 681
 			{
@@ -712,8 +684,7 @@  discard block
 block discarded – undo
712 684
 				if($text!=='')
713 685
 					$image->setAlternateText($text);
714 686
 				$cell->getControls()->add($image);
715
-			}
716
-			else if($text!=='')
687
+			} else if($text!=='')
717 688
 				$cell->setText($text);
718 689
 			else
719 690
 				$cell->setText('&nbsp;');
@@ -759,8 +730,7 @@  discard block
 block discarded – undo
759 730
 				$control->setData($text);
760 731
 			}
761 732
 			$cell->getControls()->add($control);
762
-		}
763
-		else if($this->getAllowSorting()) {
733
+		} else if($this->getAllowSorting()) {
764 734
 				$sortExpression=$this->getSortExpression();
765 735
 				if(($url=$this->getHeaderImageUrl())!=='') {
766 736
 					$button=Prado::createComponent('System.Web.UI.WebControls.TActiveImageButton');
@@ -773,19 +743,16 @@  discard block
 block discarded – undo
773 743
 					}
774 744
 					$button->setCausesValidation(false);
775 745
 					$cell->getControls()->add($button);
776
-				}
777
-				else if($text!=='') {
746
+				} else if($text!=='') {
778 747
 						$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
779 748
 						$button->setText($text);
780 749
 						$button->setCommandName(TDataGrid::CMD_SORT);
781 750
 						$button->setCommandParameter($sortExpression);
782 751
 						$button->setCausesValidation(false);
783 752
 						$cell->getControls()->add($button);
784
-					}
785
-					else
753
+					} else
786 754
 						$cell->setText('&nbsp;');
787
-			}
788
-			else {
755
+			} else {
789 756
 				if(($url=$this->getHeaderImageUrl())!=='') {
790 757
 					$image=Prado::createComponent('System.Web.UI.WebControls.TActiveImage');
791 758
 					$image->setImageUrl($url);
@@ -794,8 +761,7 @@  discard block
 block discarded – undo
794 761
 						$image->setToolTip($text);
795 762
 					}
796 763
 					$cell->getControls()->add($image);
797
-				}
798
-				else if($text!=='')
764
+				} else if($text!=='')
799 765
 						$cell->setText($text);
800 766
 					else
801 767
 						$cell->setText('&nbsp;');
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 		parent::setDataSource($value);
95 95
 		if($this->getActiveControl()->canUpdateClientSide()) {
96 96
 			$this->renderPager();
97
-			$this->getPage()->getAdapter()->registerControlToRender($this,$this->getResponse()->createHtmlWriter());
97
+			$this->getPage()->getAdapter()->registerControlToRender($this, $this->getResponse()->createHtmlWriter());
98 98
 		}
99 99
 	}
100 100
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 	 * @param string CommandParameter corresponding to the OnCommand event of the button
137 137
 	 * @return mixed the button instance
138 138
 	 */
139
-	protected function createPagerButton($pager,$buttonType,$enabled,$text,$commandName,$commandParameter) {
139
+	protected function createPagerButton($pager, $buttonType, $enabled, $text, $commandName, $commandParameter) {
140 140
 		if($buttonType===TDataGridPagerButtonType::LinkButton) {
141 141
 			if($enabled)
142 142
 				$button=new TActiveLinkButton;
@@ -179,10 +179,10 @@  discard block
 block discarded – undo
179 179
 	public function render($writer) {
180 180
 		if($this->getHasPreRendered()) {
181 181
 			$this->renderDataGrid($writer);
182
-			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(),$writer);
182
+			if($this->getActiveControl()->canUpdateClientSide()) $this->getPage()->getCallbackClient()->replaceContent($this->getSurroundingTagId(), $writer);
183 183
 		}
184 184
 		else {
185
-			$this->getPage()->getAdapter()->registerControlToRender($this,$writer);
185
+			$this->getPage()->getAdapter()->registerControlToRender($this, $writer);
186 186
 		}
187 187
 	}
188 188
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 		foreach($pager as $item) {
197 197
 			if($item->ControlToPaginate==$this->ID) {
198 198
 				$writer=$this->getResponse()->createHtmlWriter();
199
-				$this->getPage()->getAdapter()->registerControlToRender($item,$writer);
199
+				$this->getPage()->getAdapter()->registerControlToRender($item, $writer);
200 200
 			}
201 201
 		}
202 202
 	}
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 * @param THtmlWriter writer for the rendering purpose
209 209
 	 */
210 210
 	private function renderDataGrid($writer) {
211
-	  $writer->addAttribute('id',$this->getSurroundingTagID());
211
+	  $writer->addAttribute('id', $this->getSurroundingTagID());
212 212
 	  $writer->renderBeginTag($this->getSurroundingTag());
213 213
 		parent::render($writer);
214 214
 		$writer->renderEndTag();
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
  * @since 3.1.9
235 235
  */
236 236
 class TActiveBoundColumn extends TBoundColumn {
237
-	protected function initializeHeaderCell($cell,$columnIndex) {
237
+	protected function initializeHeaderCell($cell, $columnIndex) {
238 238
 		$text=$this->getHeaderText();
239 239
 
240 240
 		if(($classPath=$this->getHeaderRenderer())!=='') {
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
  * @since 3.1.9
314 314
  */
315 315
 class TActiveEditCommandColumn extends TEditCommandColumn {
316
-	protected function createButton($commandName,$text,$causesValidation,$validationGroup) {
316
+	protected function createButton($commandName, $text, $causesValidation, $validationGroup) {
317 317
 		if($this->getButtonType()===TButtonColumnType::LinkButton)
318 318
 			$button=Prado::createComponent('System.Web.UI.WebControls.TActiveLinkButton');
319 319
 		else if($this->getButtonType()===TButtonColumnType::PushButton)
@@ -322,9 +322,9 @@  discard block
 block discarded – undo
322 322
 			{
323 323
 				$button=Prado::createComponent('System.Web.UI.WebControls.TActiveImageButton');
324 324
 				$button->setToolTip($text);
325
-				if(strcasecmp($commandName,'Update')===0)
325
+				if(strcasecmp($commandName, 'Update')===0)
326 326
 					$url=$this->getUpdateImageUrl();
327
-				else if(strcasecmp($commandName,'Cancel')===0)
327
+				else if(strcasecmp($commandName, 'Cancel')===0)
328 328
 						$url=$this->getCancelImageUrl();
329 329
 					else
330 330
 						$url=$this->getEditImageUrl();
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
  * @since 3.1.9
356 356
  */
357 357
 class TActiveButtonColumn extends TButtonColumn {
358
-	public function initializeCell($cell,$columnIndex,$itemType) {
358
+	public function initializeCell($cell, $columnIndex, $itemType) {
359 359
 		if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem || $itemType===TListItemType::EditItem) {
360 360
 			$buttonType=$this->getButtonType();
361 361
 			if($buttonType===TButtonColumnType::LinkButton)
@@ -373,12 +373,12 @@  discard block
 block discarded – undo
373 373
 			$button->setCausesValidation($this->getCausesValidation());
374 374
 			$button->setValidationGroup($this->getValidationGroup());
375 375
 			if($this->getDataTextField()!=='' || ($buttonType===TButtonColumnType::ImageButton && $this->getDataImageUrlField()!==''))
376
-				$button->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
376
+				$button->attachEventHandler('OnDataBinding', array($this, 'dataBindColumn'));
377 377
 			$cell->getControls()->add($button);
378
-			$cell->registerObject('Button',$button);
378
+			$cell->registerObject('Button', $button);
379 379
 		}
380 380
 		else
381
-			parent::initializeCell($cell,$columnIndex,$itemType);
381
+			parent::initializeCell($cell, $columnIndex, $itemType);
382 382
 	}
383 383
 }
384 384
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
  * @since 3.1.9
403 403
  */
404 404
 class TActiveTemplateColumn extends TTemplateColumn {
405
-	protected function initializeHeaderCell($cell,$columnIndex) {
405
+	protected function initializeHeaderCell($cell, $columnIndex) {
406 406
 		$text=$this->getHeaderText();
407 407
 
408 408
 		if(($classPath=$this->getHeaderRenderer())!=='') {
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 class TActiveHyperLinkColumn extends THyperLinkColumn
474 474
 {
475 475
 
476
-	protected function initializeHeaderCell($cell,$columnIndex)
476
+	protected function initializeHeaderCell($cell, $columnIndex)
477 477
 	{
478 478
 		$text=$this->getHeaderText();
479 479
 
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
 	 * @param integer the index to the Columns property that the cell resides in.
563 563
 	 * @param string the type of cell (Header,Footer,Item,AlternatingItem,EditItem,SelectedItem)
564 564
 	 */
565
-	public function initializeCell($cell,$columnIndex,$itemType)
565
+	public function initializeCell($cell, $columnIndex, $itemType)
566 566
 	{
567 567
 		if($itemType===TListItemType::Item || $itemType===TListItemType::AlternatingItem || $itemType===TListItemType::SelectedItem || $itemType===TListItemType::EditItem)
568 568
 		{
@@ -571,15 +571,15 @@  discard block
 block discarded – undo
571 571
 				$checkBox->setEnabled(false);
572 572
 			$cell->setHorizontalAlign('Center');
573 573
 			$cell->getControls()->add($checkBox);
574
-			$cell->registerObject('CheckBox',$checkBox);
574
+			$cell->registerObject('CheckBox', $checkBox);
575 575
 			if($this->getDataField()!=='')
576
-				$checkBox->attachEventHandler('OnDataBinding',array($this,'dataBindColumn'));
576
+				$checkBox->attachEventHandler('OnDataBinding', array($this, 'dataBindColumn'));
577 577
 		}
578 578
 		else
579
-			parent::initializeCell($cell,$columnIndex,$itemType);
579
+			parent::initializeCell($cell, $columnIndex, $itemType);
580 580
 	}
581 581
 
582
-	protected function initializeHeaderCell($cell,$columnIndex)
582
+	protected function initializeHeaderCell($cell, $columnIndex)
583 583
 	{
584 584
 		$text=$this->getHeaderText();
585 585
 
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
  */
659 659
 class TActiveDropDownListColumn extends TDropDownListColumn
660 660
 {
661
-	protected function initializeHeaderCell($cell,$columnIndex)
661
+	protected function initializeHeaderCell($cell, $columnIndex)
662 662
 	{
663 663
 		$text=$this->getHeaderText();
664 664
 
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
  * @since 3.1.9
746 746
  */
747 747
 class TActiveLiteralColumn extends TLiteralColumn {
748
-	protected function initializeHeaderCell($cell,$columnIndex) {
748
+	protected function initializeHeaderCell($cell, $columnIndex) {
749 749
 		$text=$this->getHeaderText();
750 750
 
751 751
 		if(($classPath=$this->getHeaderRenderer())!=='') {
@@ -821,8 +821,8 @@  discard block
 block discarded – undo
821 821
 	 */
822 822
 	public function getClientSide()
823 823
 	{
824
-		if($this->_callbackoptions === null)
825
-			$this->_callbackoptions = new TCallbackOptions;
824
+		if($this->_callbackoptions===null)
825
+			$this->_callbackoptions=new TCallbackOptions;
826 826
 		return $this->_callbackoptions->getClientSide();
827 827
 	}
828 828
 }
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TCallbackOptions.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TCallbackOptions component class file.
4
- *
5
- * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
- * @link https://github.com/pradosoft/prado
7
- * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
- * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
- * @package System.Web.UI.ActiveControls
10
- */
3
+	 * TCallbackOptions component class file.
4
+	 *
5
+	 * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
6
+	 * @link https://github.com/pradosoft/prado
7
+	 * @copyright Copyright &copy; 2005-2015 The PRADO Group
8
+	 * @license https://github.com/pradosoft/prado/blob/master/COPYRIGHT
9
+	 * @package System.Web.UI.ActiveControls
10
+	 */
11 11
 
12 12
 /**
13 13
  * TCallbackOptions class.
Please login to merge, or discard this 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.