Completed
Push — prado-3.3 ( f4da81...5dd4b5 )
by Fabio
09:03
created
framework/Web/UI/WebControls/TDataListItemRenderer.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	public function getHasStyle()
47 47
 	{
48
-		return $this->getViewState('Style',null)!==null;
48
+		return $this->getViewState('Style', null)!==null;
49 49
 	}
50 50
 
51 51
 	/**
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
 	 */
54 54
 	public function getStyle()
55 55
 	{
56
-		if($style=$this->getViewState('Style',null))
56
+		if($style=$this->getViewState('Style', null))
57 57
 			return $style;
58 58
 		else
59 59
 		{
60 60
 			$style=$this->createStyle();
61
-			$this->setViewState('Style',$style,null);
61
+			$this->setViewState('Style', $style, null);
62 62
 			return $style;
63 63
 		}
64 64
 	}
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
 	 * @param TEventParameter event parameter
79 79
 	 * @return boolean whether the event bubbling should stop here.
80 80
 	 */
81
-	public function bubbleEvent($sender,$param)
81
+	public function bubbleEvent($sender, $param)
82 82
 	{
83 83
 		if($param instanceof TCommandEventParameter)
84 84
 		{
85
-			$this->raiseBubbleEvent($this,new TDataListCommandEventParameter($this,$sender,$param));
85
+			$this->raiseBubbleEvent($this, new TDataListCommandEventParameter($this, $sender, $param));
86 86
 			return true;
87 87
 		}
88 88
 		else
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	protected function addAttributesToRender($writer)
111 111
 	{
112
-		if($style=$this->getViewState('Style',null))
112
+		if($style=$this->getViewState('Style', null))
113 113
 			$style->addAttributesToRender($writer);
114 114
 	}
115 115
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,8 +189,7 @@  discard block
 block discarded – undo
189 189
 				return file_put_contents($fileName,file_get_contents($this->_localName))!==false;
190 190
 			else
191 191
 				return false;
192
-		}
193
-		else
192
+		} else
194 193
 			return false;
195 194
 	}
196 195
 
@@ -211,8 +210,7 @@  discard block
 block discarded – undo
211 210
 			$this->_errorCode=$_FILES[$key]['error'];
212 211
 			$this->_localName=$_FILES[$key]['tmp_name'];
213 212
 			return $this->_dataChanged=true;
214
-		}
215
-		else
213
+		} else
216 214
 			return false;
217 215
 	}
218 216
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TFont.php 1 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/WebControls/THtmlElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	 */
38 38
 	public function getTagName()
39 39
 	{
40
-		return ($this->_tagName !== null) ? $this->_tagName : ($this->_tagName = $this->getDefaultTagName());
40
+		return ($this->_tagName!==null) ? $this->_tagName : ($this->_tagName=$this->getDefaultTagName());
41 41
 	}
42 42
 
43 43
 	/**
@@ -61,6 +61,6 @@  discard block
 block discarded – undo
61 61
 	 * @return boolean true if TagName has deviated from the default.
62 62
 	 */
63 63
 	public function getIsMutated() {
64
-		return $this->_tagName !== null && $this->_tagName != $this->getDefaultTagName();
64
+		return $this->_tagName!==null && $this->_tagName!=$this->getDefaultTagName();
65 65
 	}
66 66
 }
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THead.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 	 */
81 81
 	public function getTitle()
82 82
 	{
83
-		return $this->getViewState('Title','');
83
+		return $this->getViewState('Title', '');
84 84
 	}
85 85
 
86 86
 	/**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function setTitle($value)
93 93
 	{
94
-		$this->setViewState('Title',$value,'');
94
+		$this->setViewState('Title', $value, '');
95 95
 	}
96 96
 
97 97
 	/**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 */
100 100
 	public function getBaseUrl()
101 101
 	{
102
-		return $this->getViewState('BaseUrl','');
102
+		return $this->getViewState('BaseUrl', '');
103 103
 	}
104 104
 
105 105
 	/**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 */
108 108
 	public function setBaseUrl($url)
109 109
 	{
110
-		$this->setViewState('BaseUrl',$url,'');
110
+		$this->setViewState('BaseUrl', $url, '');
111 111
 	}
112 112
 
113 113
 	/**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 */
116 116
 	public function getShortcutIcon()
117 117
 	{
118
-		return $this->getViewState('ShortcutIcon','');
118
+		return $this->getViewState('ShortcutIcon', '');
119 119
 	}
120 120
 
121 121
 	/**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 */
124 124
 	public function setShortcutIcon($url)
125 125
 	{
126
-		$this->setViewState('ShortcutIcon',$url,'');
126
+		$this->setViewState('ShortcutIcon', $url, '');
127 127
 	}
128 128
 
129 129
 	/**
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 	 */
132 132
 	public function getMetaTags()
133 133
 	{
134
-		if(($metaTags=$this->getViewState('MetaTags',null))===null)
134
+		if(($metaTags=$this->getViewState('MetaTags', null))===null)
135 135
 		{
136 136
 			$metaTags=new TMetaTagCollection;
137
-			$this->setViewState('MetaTags',$metaTags,null);
137
+			$this->setViewState('MetaTags', $metaTags, null);
138 138
 		}
139 139
 		return $metaTags;
140 140
 	}
@@ -297,14 +297,14 @@  discard block
 block discarded – undo
297 297
 	public function render($writer)
298 298
 	{
299 299
 		if($this->_id!=='')
300
-			$writer->addAttribute('id',$this->_id);
300
+			$writer->addAttribute('id', $this->_id);
301 301
 		if($this->_name!=='')
302
-			$writer->addAttribute('name',$this->_name);
302
+			$writer->addAttribute('name', $this->_name);
303 303
 		if($this->_httpEquiv!=='')
304
-			$writer->addAttribute('http-equiv',$this->_httpEquiv);
304
+			$writer->addAttribute('http-equiv', $this->_httpEquiv);
305 305
 		if($this->_scheme!=='')
306
-			$writer->addAttribute('scheme',$this->_scheme);
307
-		$writer->addAttribute('content',$this->_content);
306
+			$writer->addAttribute('scheme', $this->_scheme);
307
+		$writer->addAttribute('content', $this->_content);
308 308
 		$writer->renderBeginTag('meta');
309 309
 		$writer->renderEndTag();
310 310
 	}
@@ -331,10 +331,10 @@  discard block
 block discarded – undo
331 331
 	 * @param mixed new item
332 332
 	 * @throws TInvalidDataTypeException if the item to be inserted is not a {@link TMetaTag}
333 333
 	 */
334
-	public function insertAt($index,$item)
334
+	public function insertAt($index, $item)
335 335
 	{
336 336
 		if($item instanceof TMetaTag)
337
-			parent::insertAt($index,$item);
337
+			parent::insertAt($index, $item);
338 338
 		else
339 339
 			throw new TInvalidDataTypeException('metatagcollection_metatag_invalid');
340 340
 	}
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 	 */
364 364
 	public function findMetaTagByID($id)
365 365
 	{
366
-		if(($index=$this->findIndexByID($id))>=0)
366
+		if(($index=$this->findIndexByID($id)) >= 0)
367 367
 			return $this->itemAt($index);
368 368
 		else
369 369
 			return null;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TContentPlaceHolder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 	{
40 40
 		if(($id=$this->getID())==='')
41 41
 			throw new TConfigurationException('contentplaceholder_id_required');
42
-		$this->getTemplateControl()->registerContentPlaceHolder($id,$this);
42
+		$this->getTemplateControl()->registerContentPlaceHolder($id, $this);
43 43
 		$parent->getControls()->add($this);
44 44
 	}
45 45
 }
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTextProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	public function addParsedObject($object)
44 44
 	{
45 45
 		if(is_string($object))
46
-			$object=html_entity_decode($object,ENT_QUOTES,'UTF-8');
46
+			$object=html_entity_decode($object, ENT_QUOTES, 'UTF-8');
47 47
 		parent::addParsedObject($object);
48 48
 	}
49 49
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	public function getText()
54 54
 	{
55
-		return $this->getViewState('Text','');
55
+		return $this->getViewState('Text', '');
56 56
 	}
57 57
 
58 58
 	/**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 */
61 61
 	public function setText($value)
62 62
 	{
63
-		$this->setViewState('Text',$value);
63
+		$this->setViewState('Text', $value);
64 64
 	}
65 65
 
66 66
 	/**
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 	{
74 74
 		if(($text=$this->getText())==='' && $this->getHasControls())
75 75
 		{
76
-			$htmlWriter = Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
76
+			$htmlWriter=Prado::createComponent($this->GetResponse()->getHtmlWriterType(), new TTextWriter());
77 77
 			parent::renderContents($htmlWriter);
78 78
 			$text=$htmlWriter->flush();
79 79
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TColorPicker.php 1 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/Web/UI/WebControls/TTableHeaderCell.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 	{
43 43
 		parent::addAttributesToRender($writer);
44 44
 		if(($scope=$this->getScope())!==TTableHeaderScope::NotSet)
45
-			$writer->addAttribute('scope',$scope===TTableHeaderScope::Row?'row':'col');
45
+			$writer->addAttribute('scope', $scope===TTableHeaderScope::Row ? 'row' : 'col');
46 46
 		if(($text=$this->getAbbreviatedText())!=='')
47
-			$writer->addAttribute('abbr',$text);
47
+			$writer->addAttribute('abbr', $text);
48 48
 		if(($text=$this->getCategoryText())!=='')
49
-			$writer->addAttribute('axis',$text);
49
+			$writer->addAttribute('axis', $text);
50 50
 	}
51 51
 
52 52
 	/**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function getScope()
56 56
 	{
57
-		return $this->getViewState('Scope',TTableHeaderScope::NotSet);
57
+		return $this->getViewState('Scope', TTableHeaderScope::NotSet);
58 58
 	}
59 59
 
60 60
 	/**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 */
63 63
 	public function setScope($value)
64 64
 	{
65
-		$this->setViewState('Scope',TPropertyValue::ensureEnum($value,'TTableHeaderScope'),TTableHeaderScope::NotSet);
65
+		$this->setViewState('Scope', TPropertyValue::ensureEnum($value, 'TTableHeaderScope'), TTableHeaderScope::NotSet);
66 66
 	}
67 67
 
68 68
 	/**
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	 */
71 71
 	public function getAbbreviatedText()
72 72
 	{
73
-		return $this->getViewState('AbbreviatedText','');
73
+		return $this->getViewState('AbbreviatedText', '');
74 74
 	}
75 75
 
76 76
 	/**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 */
79 79
 	public function setAbbreviatedText($value)
80 80
 	{
81
-		$this->setViewState('AbbreviatedText',$value,'');
81
+		$this->setViewState('AbbreviatedText', $value, '');
82 82
 	}
83 83
 
84 84
 	/**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	public function getCategoryText()
88 88
 	{
89
-		return $this->getViewState('CategoryText','');
89
+		return $this->getViewState('CategoryText', '');
90 90
 	}
91 91
 
92 92
 	/**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	 */
95 95
 	public function setCategoryText($value)
96 96
 	{
97
-		$this->setViewState('CategoryText',$value,'');
97
+		$this->setViewState('CategoryText', $value, '');
98 98
 	}
99 99
 }
100 100
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TWebControlDecorator.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 * @var boolean tells if the decoration uses state in its templates.  If there are no templates
66 66
 	 * in the instance of the decoration this variable is unused.
67 67
 	 */
68
-	private $_usestate = false;
68
+	private $_usestate=false;
69 69
 
70 70
 	/**
71 71
 	 * @var TWebControl the control to decorate
@@ -86,19 +86,19 @@  discard block
 block discarded – undo
86 86
 	/**
87 87
 	 * @var string the text that goes before the open tag
88 88
 	 */
89
-	private $_pretagtext = '';
89
+	private $_pretagtext='';
90 90
 	/**
91 91
 	 * @var string the text that goes after the open tag
92 92
 	 */
93
-	private $_precontentstext = '';
93
+	private $_precontentstext='';
94 94
 	/**
95 95
 	 * @var string the text that goes before the close tag
96 96
 	 */
97
-	private $_postcontentstext = '';
97
+	private $_postcontentstext='';
98 98
 	/**
99 99
 	 * @var string the text that goes after the close tag
100 100
 	 */
101
-	private $_posttagtext = '';
101
+	private $_posttagtext='';
102 102
 
103 103
 
104 104
 
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
 	 * @param TWebControl The control that is to be decorated.
126 126
 	 * @param boolean whether decoration is just around the inner content
127 127
 	 */
128
-	public function __construct($control, $onlyinternal = false) {
129
-		$this->_control = $control;
130
-		$this->_internalonly = $onlyinternal;
128
+	public function __construct($control, $onlyinternal=false) {
129
+		$this->_control=$control;
130
+		$this->_internalonly=$onlyinternal;
131 131
 	}
132 132
 
133 133
 	/**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 */
145 145
 	public function setUseState($value)
146 146
 	{
147
-		$this->_usestate = TPropertyValue::ensureBoolean($value);
147
+		$this->_usestate=TPropertyValue::ensureBoolean($value);
148 148
 	}
149 149
 
150 150
 	/**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 */
160 160
 	public function setPreTagText($value) {
161 161
 		if(!$this->_internalonly && !$this->_control->getIsSkinApplied())
162
-			$this->_pretagtext = TPropertyValue::ensureString($value);
162
+			$this->_pretagtext=TPropertyValue::ensureString($value);
163 163
 	}
164 164
 
165 165
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 	 */
176 176
 	public function setPreContentsText($value) {
177 177
 		if(!$this->_control->getIsSkinApplied())
178
-			$this->_precontentstext = TPropertyValue::ensureString($value);
178
+			$this->_precontentstext=TPropertyValue::ensureString($value);
179 179
 	}
180 180
 
181 181
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 */
192 192
 	public function setPostContentsText($value) {
193 193
 		if(!$this->_control->getIsSkinApplied())
194
-			$this->_postcontentstext = TPropertyValue::ensureString($value);
194
+			$this->_postcontentstext=TPropertyValue::ensureString($value);
195 195
 	}
196 196
 
197 197
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 */
208 208
 	public function setPostTagText($value) {
209 209
 		if(!$this->_internalonly && !$this->_control->getIsSkinApplied())
210
-			$this->_posttagtext = TPropertyValue::ensureString($value);
210
+			$this->_posttagtext=TPropertyValue::ensureString($value);
211 211
 	}
212 212
 
213 213
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	 */
224 224
 	public function setPreTagTemplate($value) {
225 225
 		if(!$this->_internalonly && !$this->_control->getIsSkinApplied())
226
-			$this->_pretagtemplate = $value;
226
+			$this->_pretagtemplate=$value;
227 227
 	}
228 228
 
229 229
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 	 */
240 240
 	public function setPreContentsTemplate($value) {
241 241
 		if(!$this->_control->getIsSkinApplied())
242
-			$this->_precontentstemplate = $value;
242
+			$this->_precontentstemplate=$value;
243 243
 	}
244 244
 
245 245
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 */
256 256
 	public function setPostContentsTemplate($value) {
257 257
 		if(!$this->_control->getIsSkinApplied())
258
-			$this->_postcontentstemplate = $value;
258
+			$this->_postcontentstemplate=$value;
259 259
 	}
260 260
 
261 261
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 	 */
272 272
 	public function setPostTagTemplate($value) {
273 273
 		if(!$this->_internalonly && !$this->_control->getIsSkinApplied())
274
-			$this->_posttagtemplate = $value;
274
+			$this->_posttagtemplate=$value;
275 275
 	}
276 276
 
277 277
 	/**
@@ -280,15 +280,15 @@  discard block
 block discarded – undo
280 280
 	 * This call attaches the ensureTemplateDecoration to the TPage onSaveStateComplete so
281 281
 	 * these controls don't have page states.  This is as close to not influencing the page as possible.
282 282
 	 */
283
-	public function instantiate($outercontrol = null) {
283
+	public function instantiate($outercontrol=null) {
284 284
 		if($this->getPreTagTemplate() || $this->getPreContentsTemplate() ||
285 285
 			$this->getPostContentsTemplate() || $this->getPostTagTemplate()) {
286 286
 
287
-			$this->_outercontrol = $outercontrol;
287
+			$this->_outercontrol=$outercontrol;
288 288
 			if($this->getUseState())
289 289
 				$this->ensureTemplateDecoration();
290 290
 			else
291
-				$this->_control->getPage()->onSaveStateComplete[] = array($this, 'ensureTemplateDecoration');
291
+				$this->_control->getPage()->onSaveStateComplete[]=array($this, 'ensureTemplateDecoration');
292 292
 		}
293 293
 	}
294 294
 
@@ -303,26 +303,26 @@  discard block
 block discarded – undo
303 303
 	 */
304 304
 	public function ensureTemplateDecoration($sender=null, $param=null) {
305 305
 
306
-		$control = $this->_control;
307
-		$outercontrol = $this->_outercontrol;
308
-		if($outercontrol === null)
309
-			$outercontrol = $control;
306
+		$control=$this->_control;
307
+		$outercontrol=$this->_outercontrol;
308
+		if($outercontrol===null)
309
+			$outercontrol=$control;
310 310
 
311 311
 		if($this->_addedTemplateDecoration)
312 312
 			return $this->_addedTemplateDecoration;
313 313
 
314
-		$this->_addedTemplateDecoration = true;
314
+		$this->_addedTemplateDecoration=true;
315 315
 
316 316
 		if($this->getPreContentsTemplate())
317 317
 		{
318
-			$precontents = Prado::createComponent('TCompositeControl');
318
+			$precontents=Prado::createComponent('TCompositeControl');
319 319
 			$this->getPreContentsTemplate()->instantiateIn($precontents);
320 320
 			$control->getControls()->insertAt(0, $precontents);
321 321
 		}
322 322
 
323 323
 		if($this->getPostContentsTemplate())
324 324
 		{
325
-			$postcontents = Prado::createComponent('TCompositeControl');
325
+			$postcontents=Prado::createComponent('TCompositeControl');
326 326
 			$this->getPostContentsTemplate()->instantiateIn($postcontents);
327 327
 			$control->getControls()->add($postcontents);
328 328
 		}
@@ -333,14 +333,14 @@  discard block
 block discarded – undo
333 333
 
334 334
 		if($this->getPreTagTemplate())
335 335
 		{
336
-			$pretag = Prado::createComponent('TCompositeControl');
336
+			$pretag=Prado::createComponent('TCompositeControl');
337 337
 			$this->getPreTagTemplate()->instantiateIn($pretag);
338 338
 			$outercontrol->getParent()->getControls()->insertBefore($outercontrol, $pretag);
339 339
 		}
340 340
 
341 341
 		if($this->getPostTagTemplate())
342 342
 		{
343
-			$posttag = Prado::createComponent('TCompositeControl');
343
+			$posttag=Prado::createComponent('TCompositeControl');
344 344
 			$this->getPostTagTemplate()->instantiateIn($posttag);
345 345
 			$outercontrol->getParent()->getControls()->insertAfter($outercontrol, $posttag);
346 346
 		}
Please login to merge, or discard this patch.