Completed
Push — prado4-sauce ( 31ba42...77d75b )
by Fabio
16:20 queued 08:27
created
framework/TService.php 1 patch
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.
framework/Web/UI/ActiveControls/TActiveControlAdapter.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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
 	}
79 79
 
80 80
  	/**
81
-	 * Publish the ajax script
82
-	 */
81
+ 	 * Publish the ajax script
82
+ 	 */
83 83
 	public function onPreRender($param)
84 84
 	{
85 85
 		parent::onPreRender($param);
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
 		if($type===null)
74 74
 		{
75 75
 			if($this->getControl() instanceof ICallbackEventHandler)
76
-				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
76
+				$this->_activeControlType='Prado\\Web\UI\\ActiveControls\\TBaseActiveCallbackControl';
77 77
 			else
78
-				$this->_activeControlType = 'Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
78
+				$this->_activeControlType='Prado\\Web\UI\\ActiveControls\\TBaseActiveControl';
79 79
 		}
80 80
 		else
81
-			$this->_activeControlType = $type;
81
+			$this->_activeControlType=$type;
82 82
 	}
83 83
 
84 84
  	/**
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
 	{
119 119
 		if($this->_baseActiveControl===null)
120 120
 		{
121
-			$type = $this->_activeControlType;
122
-			$this->_baseActiveControl = new $type($this->getControl());
121
+			$type=$this->_activeControlType;
122
+			$this->_baseActiveControl=new $type($this->getControl());
123 123
 		}
124 124
 		return $this->_baseActiveControl;
125 125
 	}
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 	{
132 132
 		if($this->getPage()->getIsCallback())
133 133
 		{
134
-			$target = $this->getPage()->getCallbackEventTarget();
134
+			$target=$this->getPage()->getCallbackEventTarget();
135 135
 			if($target instanceof ICallbackEventHandler)
136 136
 			{
137
-				$client = $target->getActiveControl()->getClientSide();
137
+				$client=$target->getActiveControl()->getClientSide();
138 138
 				return $client->getEnablePageStateUpdate();
139 139
 			}
140 140
 		}
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 	{
149 149
 		if($this->getIsTrackingPageState())
150 150
 		{
151
-		  $stateTrackerClass = $this->_stateTrackerClass;
152
-			$this->_stateTracker = new $stateTrackerClass($this->getControl());
151
+		  $stateTrackerClass=$this->_stateTrackerClass;
152
+			$this->_stateTracker=new $stateTrackerClass($this->getControl());
153 153
 			$this->_stateTracker->trackChanges();
154 154
 		}
155 155
 		parent::onLoad($param);
@@ -182,6 +182,6 @@  discard block
 block discarded – undo
182 182
 	 */
183 183
 	public function setStateTracker($value)
184 184
 	{
185
-		$this->_stateTrackerClass = TPropertyValue::ensureString($value);
185
+		$this->_stateTrackerClass=TPropertyValue::ensureString($value);
186 186
 	}
187 187
 }
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.
framework/Web/UI/ActiveControls/TActiveDropDownList.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	 * Javascript client class for this control.
72 72
 	 * This method overrides the parent implementation.
73
-	 * @return null no javascript class name.
73
+	 * @return string no javascript class name.
74 74
 	 */
75 75
 	protected function getClientClassName()
76 76
 	{
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	protected function createListItemCollection()
84 84
 	{
85
-		$collection  = new TActiveListItemCollection;
85
+		$collection=new TActiveListItemCollection;
86 86
 		$collection->setControl($this);
87 87
 		return $collection;
88 88
 	}
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
 	protected function addAttributesToRender($writer)
103 103
 	{
104 104
 		parent::addAttributesToRender($writer);
105
-		$writer->addAttribute('id',$this->getClientID());
106
-		if ($this->getAutoPostBack())
105
+		$writer->addAttribute('id', $this->getClientID());
106
+		if($this->getAutoPostBack())
107 107
 			$this->getActiveControl()->registerCallbackClientScript(
108 108
 				$this->getClientClassName(), $this->getPostBackOptions());
109 109
 	}
Please login to merge, or discard this patch.
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.
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.
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,'Prado\\Web\\UI\\WebControls\\TValidationDataType'),TValidationDataType::String);
61
+		$this->setViewState('DataType', TPropertyValue::ensureEnum($value, 'Prado\\Web\\UI\\WebControls\\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 = new TSimpleDateFormatter($dateFormat);
102
+					$formatter=new 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.
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/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   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,20 +70,20 @@  discard block
 block discarded – undo
70 70
 		if($this->canUpdateClientSide())
71 71
 		{
72 72
 			$this->updateListItems();
73
-			$n = $this->getControl()->getItemCount();
73
+			$n=$this->getControl()->getItemCount();
74 74
 
75 75
 			$promptValue=$this->getControl()->getPromptValue();
76 76
 			if($promptValue==='')
77 77
 				$promptValue=$this->getControl()->getPromptText();
78 78
 
79
-			$list = array();
79
+			$list=array();
80 80
 			foreach($indices as $index)
81 81
 			{
82
-				$index = intval($index);
82
+				$index=intval($index);
83 83
 				if($promptValue!=='')
84 84
 					$index++;
85 85
 				if($index >= 0 && $index <= $n)
86
-					$list[] = $index;
86
+					$list[]=$index;
87 87
 			}
88 88
 			if(count($list) > 0)
89 89
 				$this->getPage()->getCallbackClient()->select(
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
 		if($this->canUpdateClientSide())
115 115
 		{
116 116
 			$this->updateListItems();
117
-			$list = array();
117
+			$list=array();
118 118
 			foreach($values as $value)
119
-				$list[] = $value;
119
+				$list[]=$value;
120 120
 			if(count($list) > 0)
121 121
 				$this->getPage()->getCallbackClient()->select(
122 122
 					$this->getControl(), 'Values', $list);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	{
150 150
 		if($this->canUpdateClientSide())
151 151
 		{
152
-			$items = $this->getControl()->getItems();
152
+			$items=$this->getControl()->getItems();
153 153
 			if($items instanceof TActiveListItemCollection
154 154
 				&& $items->getListHasChanged())
155 155
 			{
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.
framework/Web/UI/WebControls/TTableCell.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
 	/**
91 91
 	 * Sets the horizontal alignment of the contents within the table item.
92
-     * Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center'
92
+	 * Valid values include 'NotSet', 'Justify', 'Left', 'Right', 'Center'
93 93
 	 * @param string the horizontal alignment
94 94
 	 */
95 95
 	public function setHorizontalAlign($value)
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
 	/**
112 112
 	 * Sets the vertical alignment of the contents within the table item.
113
-     * Valid values include 'NotSet','Top','Bottom','Middle'
113
+	 * Valid values include 'NotSet','Top','Bottom','Middle'
114 114
 	 * @param string the horizontal alignment
115 115
 	 */
116 116
 	public function setVerticalAlign($value)
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 */
152 152
 	public function getText()
153 153
 	{
154
-		return $this->getViewState('Text','');
154
+		return $this->getViewState('Text', '');
155 155
 	}
156 156
 
157 157
 	/**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 */
162 162
 	public function setText($value)
163 163
 	{
164
-		$this->setViewState('Text',$value,'');
164
+		$this->setViewState('Text', $value, '');
165 165
 	}
166 166
 
167 167
 	/**
@@ -197,10 +197,10 @@  discard block
 block discarded – undo
197 197
 	protected function addAttributesToRender($writer)
198 198
 	{
199 199
 		parent::addAttributesToRender($writer);
200
-		if(($colspan=$this->getColumnSpan())>0)
201
-			$writer->addAttribute('colspan',"$colspan");
202
-		if(($rowspan=$this->getRowSpan())>0)
203
-			$writer->addAttribute('rowspan',"$rowspan");
200
+		if(($colspan=$this->getColumnSpan()) > 0)
201
+			$writer->addAttribute('colspan', "$colspan");
202
+		if(($rowspan=$this->getRowSpan()) > 0)
203
+			$writer->addAttribute('rowspan', "$rowspan");
204 204
 	}
205 205
 
206 206
 	/**
Please login to merge, or discard this patch.