Completed
Push — prado-3.3 ( f4da81...5dd4b5 )
by Fabio
09:03
created
framework/Web/UI/ActiveControls/TActiveImageButton.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
 
114 114
 	/**
115 115
 	 * @param string button caption
116
+	 * @param string $value
116 117
 	 */
117 118
 	public function setButtonText($value)
118 119
 	{
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public function setAlternateText($value)
60 60
 	{
61
-		if(parent::getAlternateText() === $value)
61
+		if(parent::getAlternateText()===$value)
62 62
 			return;
63 63
 
64 64
 		parent::setAlternateText($value);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 */
76 76
 	public function setImageAlign($value)
77 77
 	{
78
-		if(parent::getImageAlign() === $value)
78
+		if(parent::getImageAlign()===$value)
79 79
 			return;
80 80
 
81 81
 		parent::setImageAlign($value);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 */
89 89
 	public function setImageUrl($value)
90 90
 	{
91
-		if(parent::getImageUrl() === $value)
91
+		if(parent::getImageUrl()===$value)
92 92
 			return;
93 93
 
94 94
 		parent::setImageUrl($value);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 */
102 102
 	public function setDescriptionUrl($value)
103 103
 	{
104
-		if(parent::getDescriptionUrl() === $value)
104
+		if(parent::getDescriptionUrl()===$value)
105 105
 			return;
106 106
 
107 107
 		parent::setDescriptionUrl($value);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	protected function addAttributesToRender($writer)
152 152
 	{
153 153
 		parent::addAttributesToRender($writer);
154
-		$writer->addAttribute('id',$this->getClientID());
154
+		$writer->addAttribute('id', $this->getClientID());
155 155
 		$this->getActiveControl()->registerCallbackClientScript(
156 156
 			$this->getClientClassName(), $this->getPostBackOptions());
157 157
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSelectable.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -317,6 +317,9 @@
 block discarded – undo
317 317
 {
318 318
 	private $_template;
319 319
 
320
+	/**
321
+	 * @param string $template
322
+	 */
320 323
 	public function __construct($template)
321 324
 	{
322 325
 		$this->_template = $template;
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	 */
66 66
 	public function getWidgetID()
67 67
 	{
68
-	  return $this->getClientID() . '_0';
68
+	  return $this->getClientID().'_0';
69 69
 	}
70 70
 
71 71
 	/**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 */
75 75
 	public function getOptions()
76 76
 	{
77
-		if (($options=$this->getViewState('JuiOptions'))===null)
77
+		if(($options=$this->getViewState('JuiOptions'))===null)
78 78
 		{
79 79
 		  $options=new TJuiControlOptions($this);
80 80
 		  $this->setViewState('JuiOptions', $options);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
 	protected function getPostBackOptions()
107 107
 	{
108
-		$options = $this->getOptions()->toArray();
108
+		$options=$this->getOptions()->toArray();
109 109
 		// overload the "OnStop" event to add information about the current selected items
110 110
 		if(isset($options['stop']))
111 111
 		{
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	protected function addAttributesToRender($writer)
122 122
 	{
123 123
 		parent::addAttributesToRender($writer);
124
-		$writer->addAttribute('id',$this->getClientID());
124
+		$writer->addAttribute('id', $this->getClientID());
125 125
 		$options=TJavascript::encode($this->getPostBackOptions());
126 126
 		$cs=$this->getPage()->getClientScript();
127 127
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 	 * Raises the OnCreate event
143 143
 	 * @param object $params event parameters
144 144
 	 */
145
-	public function onCreate ($params)
145
+	public function onCreate($params)
146 146
 	{
147 147
 		$this->raiseEvent('OnCreate', $this, $params);
148 148
 	}
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 * Raises the OnSelected event
152 152
 	 * @param object $params event parameters
153 153
 	 */
154
-	public function onSelected ($params)
154
+	public function onSelected($params)
155 155
 	{
156 156
 		$this->raiseEvent('OnSelected', $this, $params);
157 157
 	}
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 * Raises the OnSelecting event
161 161
 	 * @param object $params event parameters
162 162
 	 */
163
-	public function onSelecting ($params)
163
+	public function onSelecting($params)
164 164
 	{
165 165
 		$this->raiseEvent('OnSelecting', $this, $params);
166 166
 	}
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 	 * Raises the OnStart event
170 170
 	 * @param object $params event parameters
171 171
 	 */
172
-	public function onStart ($params)
172
+	public function onStart($params)
173 173
 	{
174 174
 		$this->raiseEvent('OnStart', $this, $params);
175 175
 	}
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 	 * Raises the OnStop event
179 179
 	 * @param object $params event parameters
180 180
 	 */
181
-	public function onStop ($params)
181
+	public function onStop($params)
182 182
 	{
183 183
 		$this->raiseEvent('OnStop', $this, $params);
184 184
 	}
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * Raises the OnUnselected event
188 188
 	 * @param object $params event parameters
189 189
 	 */
190
-	public function onUnselected ($params)
190
+	public function onUnselected($params)
191 191
 	{
192 192
 		$this->raiseEvent('OnUnselected', $this, $params);
193 193
 	}
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 * Raises the OnUnselecting event
197 197
 	 * @param object $params event parameters
198 198
 	 */
199
-	public function onUnselecting ($params)
199
+	public function onUnselecting($params)
200 200
 	{
201 201
 		$this->raiseEvent('OnUnselecting', $this, $params);
202 202
 	}
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 	public function getSelectables()
232 232
 	{
233 233
 		if($this->_repeater===null)
234
-			$this->_repeater = $this->createRepeater();
234
+			$this->_repeater=$this->createRepeater();
235 235
 		return $this->_repeater;
236 236
 	}
237 237
 
@@ -240,10 +240,10 @@  discard block
 block discarded – undo
240 240
 	 */
241 241
 	protected function createRepeater()
242 242
 	{
243
-		$repeater = Prado::createComponent('System.Web.UI.WebControls.TRepeater');
243
+		$repeater=Prado::createComponent('System.Web.UI.WebControls.TRepeater');
244 244
 		$repeater->setHeaderTemplate(new TJuiSelectableTemplate('<ul id="'.$this->getWidgetID().'">'));
245 245
 		$repeater->setFooterTemplate(new TJuiSelectableTemplate('</ul>'));
246
-		$repeater->setItemTemplate(new TTemplate('<li id="<%# $this->ItemIndex %>"><%# $this->DataItem %></li>',null));
246
+		$repeater->setItemTemplate(new TTemplate('<li id="<%# $this->ItemIndex %>"><%# $this->DataItem %></li>', null));
247 247
 		$repeater->setEmptyTemplate(new TJuiSelectableTemplate('<ul></ul>'));
248 248
 		$this->getControls()->add($repeater);
249 249
 		return $repeater;
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 
267 267
 	public function __construct($template)
268 268
 	{
269
-		$this->_template = $template;
269
+		$this->_template=$template;
270 270
 	}
271 271
 	/**
272 272
 	 * Instantiates the template.
Please login to merge, or discard this patch.
framework/Web/UI/TForm.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
 
114 114
 	/**
115 115
 	 * @param string button caption
116
+	 * @param string $value
116 117
 	 */
117 118
 	public function setButtonText($value)
118 119
 	{
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
 		if ($this->sourcepath === NULL)
59 59
 		{
60 60
 			$this->sourcepath = $sourcepath;
61
-		}
62
-		else
61
+		} else
63 62
 		{
64 63
 			$this->sourcepath->append($sourcepath);
65 64
 		}
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	protected function addAttributesToRender($writer)
45 45
 	{
46
-		$writer->addAttribute('id',$this->getClientID());
47
-		$writer->addAttribute('method',$this->getMethod());
46
+		$writer->addAttribute('id', $this->getClientID());
47
+		$writer->addAttribute('method', $this->getMethod());
48 48
 		$uri=$this->getRequest()->getRequestURI();
49
-		$writer->addAttribute('action',str_replace('&','&amp;',str_replace('&amp;','&',$uri)));
49
+		$writer->addAttribute('action', str_replace('&', '&amp;', str_replace('&amp;', '&', $uri)));
50 50
 		if(($enctype=$this->getEnctype())!=='')
51
-			$writer->addAttribute('enctype',$enctype);
51
+			$writer->addAttribute('enctype', $enctype);
52 52
 
53 53
 		$attributes=$this->getAttributes();
54 54
 		$attributes->remove('action');
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 			if(($button=$this->findControl($butt))!==null)
60 60
 				$this->getPage()->getClientScript()->registerDefaultButton($this, $button);
61 61
 			else
62
-				throw new TInvalidDataValueException('form_defaultbutton_invalid',$butt);
62
+				throw new TInvalidDataValueException('form_defaultbutton_invalid', $butt);
63 63
 		}
64 64
 	}
65 65
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	public function getDefaultButton()
110 110
 	{
111
-		return $this->getViewState('DefaultButton','');
111
+		return $this->getViewState('DefaultButton', '');
112 112
 	}
113 113
 
114 114
 	/**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 */
120 120
 	public function setDefaultButton($value)
121 121
 	{
122
-		$this->setViewState('DefaultButton',$value,'');
122
+		$this->setViewState('DefaultButton', $value, '');
123 123
 	}
124 124
 
125 125
 	/**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 */
128 128
 	public function getMethod()
129 129
 	{
130
-		return $this->getViewState('Method','post');
130
+		return $this->getViewState('Method', 'post');
131 131
 	}
132 132
 
133 133
 	/**
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 */
136 136
 	public function setMethod($value)
137 137
 	{
138
-		$this->setViewState('Method',TPropertyValue::ensureEnum($value,'post','get'),'post');
138
+		$this->setViewState('Method', TPropertyValue::ensureEnum($value, 'post', 'get'), 'post');
139 139
 	}
140 140
 
141 141
 	/**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 */
144 144
 	public function getEnctype()
145 145
 	{
146
-		return $this->getViewState('Enctype','');
146
+		return $this->getViewState('Enctype', '');
147 147
 	}
148 148
 
149 149
 	/**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 */
156 156
 	public function setEnctype($value)
157 157
 	{
158
-		$this->setViewState('Enctype',$value,'');
158
+		$this->setViewState('Enctype', $value, '');
159 159
 	}
160 160
 
161 161
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataTypeValidator.php 4 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -113,6 +113,7 @@
 block discarded – undo
113 113
 
114 114
 	/**
115 115
 	 * @param string button caption
116
+	 * @param string $value
116 117
 	 */
117 118
 	public function setButtonText($value)
118 119
 	{
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
 	}
125 125
 
126 126
 	/**
127
-     * Sets the date format for a date validation
128
-     * @param string the date format value
129
-     */
127
+	 * Sets the date format for a date validation
128
+	 * @param string the date format value
129
+	 */
130 130
 	public function setDateFormat($value)
131 131
 	{
132 132
 		$this->setViewState('DateFormat', $value, '');
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 	 */
50 50
 	public function getDataType()
51 51
 	{
52
-		return $this->getViewState('DataType','String');
52
+		return $this->getViewState('DataType', 'String');
53 53
 	}
54 54
 
55 55
 	/**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 */
59 59
 	public function setDataType($value)
60 60
 	{
61
-		$this->setViewState('DataType',TPropertyValue::ensureEnum($value,'TValidationDataType'),TValidationDataType::String);
61
+		$this->setViewState('DataType', TPropertyValue::ensureEnum($value, 'TValidationDataType'), TValidationDataType::String);
62 62
 	}
63 63
 
64 64
 	/**
@@ -92,14 +92,14 @@  discard block
 block discarded – undo
92 92
 		switch($this->getDataType())
93 93
 		{
94 94
 			case TValidationDataType::Integer:
95
-				return preg_match('/^[-+]?[0-9]+$/',trim($value));
95
+				return preg_match('/^[-+]?[0-9]+$/', trim($value));
96 96
 			case TValidationDataType::Float:
97
-				return preg_match('/^[-+]?([0-9]*\.)?[0-9]+([eE][-+]?[0-9]+)?$/',trim($value));
97
+				return preg_match('/^[-+]?([0-9]*\.)?[0-9]+([eE][-+]?[0-9]+)?$/', trim($value));
98 98
 			case TValidationDataType::Date:
99
-				$dateFormat = $this->getDateFormat();
99
+				$dateFormat=$this->getDateFormat();
100 100
 				if(strlen($dateFormat))
101 101
 				{
102
-					$formatter = Prado::createComponent('System.Util.TSimpleDateFormatter',$dateFormat);
102
+					$formatter=Prado::createComponent('System.Util.TSimpleDateFormatter', $dateFormat);
103 103
 					return $formatter->isValidDate($value);
104 104
 				}
105 105
 				else
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 */
115 115
 	protected function getClientScriptOptions()
116 116
 	{
117
-		$options = parent::getClientScriptOptions();
117
+		$options=parent::getClientScriptOptions();
118 118
 		$options['DataType']=$this->getDataType();
119 119
 		if(($dateFormat=$this->getDateFormat())!=='')
120 120
 			$options['DateFormat']=$dateFormat;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
 				{
71 71
 					$domain=substr($value,$pos+1);
72 72
 					return $domain===''?false:checkdnsrr($domain,'MX');
73
-				}
74
-				else
73
+				} else
75 74
 					return false;
76 75
 			}
77 76
 		}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDropDownList.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
 	/**
214 214
 	 * Returns the value to be validated.
215 215
 	 * This methid is required by IValidatable interface.
216
-	 * @return mixed the value of the property to be validated.
216
+	 * @return string the value of the property to be validated.
217 217
 	 */
218 218
 	public function getValidationPropertyValue()
219 219
 	{
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,14 +463,14 @@
 block discarded – undo
463 463
 	 */
464 464
 	public function getIsValid()
465 465
 	{
466
-	    return $this->_isValid;
466
+		return $this->_isValid;
467 467
 	}
468 468
 	/**
469 469
 	 * @param bool wether this control is valid.
470 470
 	 */
471 471
 	public function setIsValid($value)
472 472
 	{
473
-	    $this->_isValid=TPropertyValue::ensureBoolean($value);
473
+		$this->_isValid=TPropertyValue::ensureBoolean($value);
474 474
 	}
475 475
 
476 476
 	/**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	protected function addAttributesToRender($writer)
54 54
 	{
55
-		$writer->addAttribute('name',$this->getUniqueID());
55
+		$writer->addAttribute('name', $this->getUniqueID());
56 56
 		parent::addAttributesToRender($writer);
57 57
 	}
58 58
 
@@ -73,15 +73,15 @@  discard block
 block discarded – undo
73 73
 	 * @param array the input data collection
74 74
 	 * @return boolean whether the data of the component has been changed
75 75
 	 */
76
-	public function loadPostData($key,$values)
76
+	public function loadPostData($key, $values)
77 77
 	{
78 78
 		if(!$this->getEnabled(true))
79 79
 			return false;
80 80
 		$this->ensureDataBound();
81
-		$selection=isset($values[$key])?$values[$key]:null;
81
+		$selection=isset($values[$key]) ? $values[$key] : null;
82 82
 		if($selection!==null)
83 83
 		{
84
-			$index=$this->getItems()->findIndexByValue($selection,false);
84
+			$index=$this->getItems()->findIndexByValue($selection, false);
85 85
 			if($this->getSelectedIndex()!==$index)
86 86
 			{
87 87
 				$this->setSelectedIndex($index);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THiddenField.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
 	/**
214 214
 	 * Returns the value to be validated.
215 215
 	 * This methid is required by IValidatable interface.
216
-	 * @return mixed the value of the property to be validated.
216
+	 * @return string the value of the property to be validated.
217 217
 	 */
218 218
 	public function getValidationPropertyValue()
219 219
 	{
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -463,14 +463,14 @@
 block discarded – undo
463 463
 	 */
464 464
 	public function getIsValid()
465 465
 	{
466
-	    return $this->_isValid;
466
+		return $this->_isValid;
467 467
 	}
468 468
 	/**
469 469
 	 * @param bool wether this control is valid.
470 470
 	 */
471 471
 	public function setIsValid($value)
472 472
 	{
473
-	    $this->_isValid=TPropertyValue::ensureBoolean($value);
473
+		$this->_isValid=TPropertyValue::ensureBoolean($value);
474 474
 	}
475 475
 
476 476
 	/**
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,18 +53,18 @@  discard block
 block discarded – undo
53 53
 	{
54 54
 		$uniqueID=$this->getUniqueID();
55 55
 		$this->getPage()->ensureRenderInForm($this);
56
-		$writer->addAttribute('type','hidden');
56
+		$writer->addAttribute('type', 'hidden');
57 57
 		if($uniqueID!=='')
58
-			$writer->addAttribute('name',$uniqueID);
58
+			$writer->addAttribute('name', $uniqueID);
59 59
 		if($this->getID()!=='')
60
-			$writer->addAttribute('id',$this->getClientID());
60
+			$writer->addAttribute('id', $this->getClientID());
61 61
 		if(($value=$this->getValue())!=='')
62
-			$writer->addAttribute('value',$value);
62
+			$writer->addAttribute('value', $value);
63 63
 
64 64
 		if($this->getHasAttributes())
65 65
 		{
66 66
 			foreach($this->getAttributes() as $name=>$value)
67
-				$writer->addAttribute($name,$value);
67
+				$writer->addAttribute($name, $value);
68 68
 		}
69 69
 
70 70
 		$writer->renderBeginTag('input');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 * @param array the input data collection
79 79
 	 * @return boolean whether the data of the component has been changed
80 80
 	 */
81
-	public function loadPostData($key,$values)
81
+	public function loadPostData($key, $values)
82 82
 	{
83 83
 		$value=$values[$key];
84 84
 		if($value===$this->getValue())
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	 */
147 147
 	public function onValueChanged($param)
148 148
 	{
149
-		$this->raiseEvent('OnValueChanged',$this,$param);
149
+		$this->raiseEvent('OnValueChanged', $this, $param);
150 150
 	}
151 151
 
152 152
 	/**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 */
155 155
 	public function getValue()
156 156
 	{
157
-		return $this->getViewState('Value','');
157
+		return $this->getViewState('Value', '');
158 158
 	}
159 159
 
160 160
 	/**
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 */
164 164
 	public function setValue($value)
165 165
 	{
166
-		$this->setViewState('Value',$value,'');
166
+		$this->setViewState('Value', $value, '');
167 167
 	}
168 168
 
169 169
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/THtmlArea.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -422,6 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
 	/**
424 424
 	 * Parse additional options set in the Options property.
425
+	 * @param string $string
425 426
 	 * @return array additional custom options
426 427
 	 */
427 428
 	protected function parseEditorOptions($string)
@@ -446,6 +447,7 @@  discard block
 block discarded – undo
446 447
 	}
447 448
 
448 449
 	/**
450
+	 * @param string $culture
449 451
 	 * @return string localized editor interface language extension.
450 452
 	 */
451 453
 	protected function getLanguageSuffix($culture)
Please login to merge, or discard this patch.
Spacing   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	/**
80 80
 	 * @var array list of locale => language file pairs.
81 81
 	 */
82
-	private static $_langs = array(
82
+	private static $_langs=array(
83 83
 			'ar' => 'ar',
84 84
 			'az' => 'az',
85 85
 			'be' => 'be',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	/**
165 165
 	 * @var array list of default plugins to load, override using getAvailablePlugins();
166 166
 	 */
167
-	private static $_plugins = array(
167
+	private static $_plugins=array(
168 168
 		'advhr',
169 169
 		'advimage',
170 170
 		'advlink',
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	/**
209 209
 	 * @var array default themes to load
210 210
 	 */
211
-	private static $_themes = array(
211
+	private static $_themes=array(
212 212
 		'simple',
213 213
 		'advanced'
214 214
 	);
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 	 */
257 257
 	public function getEnableVisualEdit()
258 258
 	{
259
-		return $this->getViewState('EnableVisualEdit',true);
259
+		return $this->getViewState('EnableVisualEdit', true);
260 260
 	}
261 261
 
262 262
 	/**
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	 */
266 266
 	public function setEnableVisualEdit($value)
267 267
 	{
268
-		$this->setViewState('EnableVisualEdit',TPropertyValue::ensureBoolean($value),true);
268
+		$this->setViewState('EnableVisualEdit', TPropertyValue::ensureBoolean($value), true);
269 269
 	}
270 270
 
271 271
 	/**
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	{
349 349
 		if($this->getEnableVisualEdit() && $this->getEnabled(true))
350 350
 		{
351
-			$writer->addAttribute('id',$this->getClientID());
351
+			$writer->addAttribute('id', $this->getClientID());
352 352
 			$this->registerEditorClientScript($writer);
353 353
 		}
354 354
 
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 
387 387
 	protected function loadJavascriptLibrary()
388 388
 	{
389
-		$scripts = $this->getPage()->getClientScript();
389
+		$scripts=$this->getPage()->getClientScript();
390 390
 		$scripts->registerPradoScript('htmlarea');
391 391
 		$scripts->registerScriptFile('prado:THtmlArea', $this->getScriptUrl());
392 392
 	}
@@ -397,16 +397,16 @@  discard block
 block discarded – undo
397 397
 	protected function registerEditorClientScript($writer)
398 398
 	{
399 399
 		$this->loadJavascriptLibrary();
400
-		$scripts = $this->getPage()->getClientScript();
401
-		$options = array(
400
+		$scripts=$this->getPage()->getClientScript();
401
+		$options=array(
402 402
 			'EditorOptions' => $this->getEditorOptions()
403 403
 		);
404 404
 		if($this->getEnableCompression())
405
-			$options['CompressionOptions'] = $this->getCompressionOptions();
405
+			$options['CompressionOptions']=$this->getCompressionOptions();
406 406
 
407
-		$options = TJavaScript::encode($options,true,true);
408
-		$script = "new {$this->getClientClassName()}($options)";
409
-		$scripts->registerEndScript('prado:THtmlArea'.$this->ClientID,$script);
407
+		$options=TJavaScript::encode($options, true, true);
408
+		$script="new {$this->getClientClassName()}($options)";
409
+		$scripts->registerEndScript('prado:THtmlArea'.$this->ClientID, $script);
410 410
 	}
411 411
 
412 412
 	/**
@@ -426,22 +426,22 @@  discard block
 block discarded – undo
426 426
 	 */
427 427
 	protected function getScriptDeploymentPath()
428 428
 	{
429
-		$tarfile = Prado::getPathOfNamespace('System.3rdParty.TinyMCE.tiny_mce', '.tar');
430
-		$md5sum = Prado::getPathOfNamespace('System.3rdParty.TinyMCE.tiny_mce', '.md5');
429
+		$tarfile=Prado::getPathOfNamespace('System.3rdParty.TinyMCE.tiny_mce', '.tar');
430
+		$md5sum=Prado::getPathOfNamespace('System.3rdParty.TinyMCE.tiny_mce', '.md5');
431 431
 		if($tarfile===null || $md5sum===null)
432 432
 			throw new TConfigurationException('htmlarea_tarfile_invalid');
433
-		$url = $this->getApplication()->getAssetManager()->publishTarFile($tarfile, $md5sum);
433
+		$url=$this->getApplication()->getAssetManager()->publishTarFile($tarfile, $md5sum);
434 434
 		$this->copyCustomPlugins($url);
435 435
 		return $url;
436 436
 	}
437 437
 
438 438
 	protected function copyCustomPlugins($url)
439 439
 	{
440
-		if($plugins = $this->getCustomPluginPath())
440
+		if($plugins=$this->getCustomPluginPath())
441 441
 		{
442
-			$assets = $this->getApplication()->getAssetManager();
443
-			$path = is_dir($plugins) ? $plugins : Prado::getPathOfNameSpace($plugins);
444
-			$dest = $assets->getBasePath().'/'.basename($url).'/tiny_mce/plugins/';
442
+			$assets=$this->getApplication()->getAssetManager();
443
+			$path=is_dir($plugins) ? $plugins : Prado::getPathOfNameSpace($plugins);
444
+			$dest=$assets->getBasePath().'/'.basename($url).'/tiny_mce/plugins/';
445 445
 			if(!is_dir($dest) || $this->getApplication()->getMode()!==TApplicationMode::Performance)
446 446
 				$assets->copyDirectory($path, $dest);
447 447
 		}
@@ -453,26 +453,26 @@  discard block
 block discarded – undo
453 453
 	 */
454 454
 	protected function getEditorOptions()
455 455
 	{
456
-		$options['mode'] = 'exact';
457
-		$options['elements'] = $this->getClientID();
458
-		$options['language'] = $this->getLanguageSuffix($this->getCulture());
459
-		$options['theme'] = 'advanced';
456
+		$options['mode']='exact';
457
+		$options['elements']=$this->getClientID();
458
+		$options['language']=$this->getLanguageSuffix($this->getCulture());
459
+		$options['theme']='advanced';
460 460
 
461 461
 		//make it basic advanced to fit into 1 line of buttons.
462 462
 		//$options['theme_advanced_buttons1'] = 'bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright, justifyfull,separator,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,charmap,separator,code,help';
463 463
 		//$options['theme_advanced_buttons2'] = ' ';
464
-		$options['theme_advanced_buttons1'] = 'formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup';
465
-		$options['theme_advanced_buttons2'] = 'justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,image,charmap,separator,removeformat,code,help';
466
-		$options['theme_advanced_buttons3'] = '';
467
-
468
-		$options['theme_advanced_toolbar_location'] = 'top';
469
-		$options['theme_advanced_toolbar_align'] = 'left';
470
-		$options['theme_advanced_path_location'] = 'bottom';
471
-		$options['extended_valid_elements'] = 'a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]';
464
+		$options['theme_advanced_buttons1']='formatselect,fontselect,fontsizeselect,separator,bold,italic,underline,strikethrough,sub,sup';
465
+		$options['theme_advanced_buttons2']='justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,separator,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,image,charmap,separator,removeformat,code,help';
466
+		$options['theme_advanced_buttons3']='';
467
+
468
+		$options['theme_advanced_toolbar_location']='top';
469
+		$options['theme_advanced_toolbar_align']='left';
470
+		$options['theme_advanced_path_location']='bottom';
471
+		$options['extended_valid_elements']='a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]';
472 472
 		if($this->getReadOnly())
473
-			$options['readonly'] = true;
473
+			$options['readonly']=true;
474 474
 
475
-		$options = array_merge($options, $this->parseEditorOptions($this->getOptions()));
475
+		$options=array_merge($options, $this->parseEditorOptions($this->getOptions()));
476 476
 		return $options;
477 477
 	}
478 478
 
@@ -482,20 +482,20 @@  discard block
 block discarded – undo
482 482
 	 */
483 483
 	protected function parseEditorOptions($string)
484 484
 	{
485
-		$options = array();
486
-		$substrings = preg_split('/,\s*\n|\n/', trim($string));
485
+		$options=array();
486
+		$substrings=preg_split('/,\s*\n|\n/', trim($string));
487 487
 		foreach($substrings as $bits)
488 488
 		{
489
-			$option = explode(":",$bits,2);
489
+			$option=explode(":", $bits, 2);
490 490
 
491
-			if(count($option) == 2)
491
+			if(count($option)==2)
492 492
 			{
493
-				$value=trim(trim($option[1]),"'\"");
494
-				if (($s=strtolower($value))==='false')
493
+				$value=trim(trim($option[1]), "'\"");
494
+				if(($s=strtolower($value))==='false')
495 495
 					$value=false;
496
-				elseif ($s==='true')
496
+				elseif($s==='true')
497 497
 					$value=true;
498
-				$options[trim($option[0])] = $value;
498
+				$options[trim($option[0])]=$value;
499 499
 			}
500 500
 		}
501 501
 		return $options;
@@ -506,12 +506,12 @@  discard block
 block discarded – undo
506 506
 	 */
507 507
 	protected function getLanguageSuffix($culture)
508 508
 	{
509
-		$app = $this->getApplication()->getGlobalization();
509
+		$app=$this->getApplication()->getGlobalization();
510 510
 		if(empty($culture) && ($app!==null))
511
-			$culture = $app->getCulture();
512
-		$variants = array();
511
+			$culture=$app->getCulture();
512
+		$variants=array();
513 513
 		if($app!==null)
514
-			$variants = $app->getCultureVariants($culture);
514
+			$variants=$app->getCultureVariants($culture);
515 515
 
516 516
 		foreach($variants as $variant)
517 517
 		{
Please login to merge, or discard this patch.
framework/Web/UI/ActiveControls/TActiveListControlAdapter.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -120,11 +120,11 @@  discard block
 block discarded – undo
120 120
 		}
121 121
 	}
122 122
 
123
-    /**
124
-     * Clears all existing selections on the client side.
125
-     */
126
-    public function clearSelection()
127
-    {
123
+	/**
124
+	 * Clears all existing selections on the client side.
125
+	 */
126
+	public function clearSelection()
127
+	{
128 128
 		if($this->canUpdateClientSide())
129 129
 		{
130 130
 			$this->updateListItems();
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 				$this->getPage()->getCallbackClient()->select($this->getControl(), 'Clear');
138 138
 			}
139 139
 		}
140
-    }
140
+	}
141 141
 
142 142
 	/**
143 143
 	 * Update the client-side list options.
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -67,20 +67,20 @@  discard block
 block discarded – undo
67 67
 		if($this->canUpdateClientSide())
68 68
 		{
69 69
 			$this->updateListItems();
70
-			$n = $this->getControl()->getItemCount();
70
+			$n=$this->getControl()->getItemCount();
71 71
 
72 72
 			$promptValue=$this->getControl()->getPromptValue();
73 73
 			if($promptValue==='')
74 74
 				$promptValue=$this->getControl()->getPromptText();
75 75
 
76
-			$list = array();
76
+			$list=array();
77 77
 			foreach($indices as $index)
78 78
 			{
79
-				$index = intval($index);
79
+				$index=intval($index);
80 80
 				if($promptValue!=='')
81 81
 					$index++;
82 82
 				if($index >= 0 && $index <= $n)
83
-					$list[] = $index;
83
+					$list[]=$index;
84 84
 			}
85 85
 			if(count($list) > 0)
86 86
 				$this->getPage()->getCallbackClient()->select(
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 		if($this->canUpdateClientSide())
112 112
 		{
113 113
 			$this->updateListItems();
114
-			$list = array();
114
+			$list=array();
115 115
 			foreach($values as $value)
116
-				$list[] = $value;
116
+				$list[]=$value;
117 117
 			if(count($list) > 0)
118 118
 				$this->getPage()->getCallbackClient()->select(
119 119
 					$this->getControl(), 'Values', $list);
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 	{
147 147
 		if($this->canUpdateClientSide())
148 148
 		{
149
-			$items = $this->getControl()->getItems();
149
+			$items=$this->getControl()->getItems();
150 150
 			if($items instanceof TActiveListItemCollection
151 151
 				&& $items->getListHasChanged())
152 152
 			{
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 	 */
198 198
 	public function setControl(IActiveControl $control)
199 199
 	{
200
-		$this->_control = $control;
200
+		$this->_control=$control;
201 201
 	}
202 202
 
203 203
 	/**
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	 */
222 222
 	public function updateClientSide()
223 223
 	{
224
-		$client = $this->getControl()->getPage()->getCallbackClient();
224
+		$client=$this->getControl()->getPage()->getCallbackClient();
225 225
 		$client->setListItems($this->getControl(), $this);
226 226
 		$this->_hasChanged=false;
227 227
 	}
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	{
239 239
 		parent::insertAt($index, $value);
240 240
 		if($this->canUpdateClientSide())
241
-			$this->_hasChanged = true;
241
+			$this->_hasChanged=true;
242 242
 	}
243 243
 
244 244
 	/**
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	{
250 250
 		parent::removeAt($index);
251 251
 		if($this->canUpdateClientSide())
252
-			$this->_hasChanged = true;
252
+			$this->_hasChanged=true;
253 253
 	}
254 254
 }
255 255
 
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TKeyboard.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -173,15 +173,15 @@
 block discarded – undo
173 173
 	{
174 174
 		if(($forControl=$this->getForControl())==='')
175 175
 			throw new TConfigurationException('keyboard_forcontrol_required');
176
-	    if(($target=$this->findControl($forControl))===null)
177
-	        throw new TConfigurationException('keyboard_forcontrol_invalid',$forControl);
176
+		if(($target=$this->findControl($forControl))===null)
177
+			throw new TConfigurationException('keyboard_forcontrol_invalid',$forControl);
178 178
 
179
-	    $options['ID'] = $this->getClientID();
180
-	    $options['ForControl'] = $target->getClientID();
181
-	    $options['AutoHide'] = $this->getAutoHide();
182
-	    $options['CssClass'] = $this->getKeyboardCssClass();
179
+		$options['ID'] = $this->getClientID();
180
+		$options['ForControl'] = $target->getClientID();
181
+		$options['AutoHide'] = $this->getAutoHide();
182
+		$options['CssClass'] = $this->getKeyboardCssClass();
183 183
 
184
-	    return $options;
184
+		return $options;
185 185
 	}
186 186
 }
187 187
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function getForControl()
44 44
 	{
45
-		return $this->getViewState('ForControl','');
45
+		return $this->getViewState('ForControl', '');
46 46
 	}
47 47
 
48 48
 	/**
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	{
132 132
 		parent::addAttributesToRender($writer);
133 133
 		if($this->getPage()->getClientSupportsJavaScript())
134
-			$writer->addAttribute('id',$this->getClientID());
134
+			$writer->addAttribute('id', $this->getClientID());
135 135
 	}
136 136
 
137 137
 	/**
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	{
144 144
 		if(($url=$this->getCssUrl())==='')
145 145
 			$url=$this->getApplication()->getAssetManager()->publishFilePath(dirname(__FILE__).DIRECTORY_SEPARATOR.'assets'.DIRECTORY_SEPARATOR.'keyboard.css');
146
-		$this->getPage()->getClientScript()->registerStyleSheetFile($url,$url);
146
+		$this->getPage()->getClientScript()->registerStyleSheetFile($url, $url);
147 147
 	}
148 148
 
149 149
 	/**
@@ -174,12 +174,12 @@  discard block
 block discarded – undo
174 174
 		if(($forControl=$this->getForControl())==='')
175 175
 			throw new TConfigurationException('keyboard_forcontrol_required');
176 176
 	    if(($target=$this->findControl($forControl))===null)
177
-	        throw new TConfigurationException('keyboard_forcontrol_invalid',$forControl);
177
+	        throw new TConfigurationException('keyboard_forcontrol_invalid', $forControl);
178 178
 
179
-	    $options['ID'] = $this->getClientID();
180
-	    $options['ForControl'] = $target->getClientID();
181
-	    $options['AutoHide'] = $this->getAutoHide();
182
-	    $options['CssClass'] = $this->getKeyboardCssClass();
179
+	    $options['ID']=$this->getClientID();
180
+	    $options['ForControl']=$target->getClientID();
181
+	    $options['AutoHide']=$this->getAutoHide();
182
+	    $options['CssClass']=$this->getKeyboardCssClass();
183 183
 
184 184
 	    return $options;
185 185
 	}
Please login to merge, or discard this patch.