Completed
Push — prado4-sauce ( 31ba42...77d75b )
by Fabio
16:20 queued 08:27
created
framework/Web/UI/THtmlWriter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
 	public function setWriter($writer)
90 90
 	{
91
-		$this->_writer = $writer;
91
+		$this->_writer=$writer;
92 92
 	}
93 93
 	/**
94 94
 	 * Adds a list of attributes to be rendered.
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 * @param string name of the attribute
106 106
 	 * @param string value of the attribute
107 107
 	 */
108
-	public function addAttribute($name,$value)
108
+	public function addAttribute($name, $value)
109 109
 	{
110 110
 		$this->_attributes[THttpUtility::htmlStrip($name)]=THttpUtility::htmlEncode($value);
111 111
 	}
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @param string stylesheet attribute name
135 135
 	 * @param string stylesheet attribute value
136 136
 	 */
137
-	public function addStyleAttribute($name,$value)
137
+	public function addStyleAttribute($name, $value)
138 138
 	{
139 139
 		$this->_styles[THttpUtility::htmlStrip($name)]=THttpUtility::htmlEncode($value);
140 140
 	}
@@ -203,12 +203,12 @@  discard block
 block discarded – undo
203 203
 		if(isset(self::$_simpleTags[$tagName]))
204 204
 		{
205 205
 			$str.=' />';
206
-			$this->_openTags[] = '';
206
+			$this->_openTags[]='';
207 207
 		}
208 208
 		else
209 209
 		{
210 210
 			$str.='>';
211
-			$this->_openTags[] = $tagName;
211
+			$this->_openTags[]=$tagName;
212 212
 		}
213 213
 		$this->_writer->write($str);
214 214
 		$this->_attributes=array();
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiResizable.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -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
 		return $options;
110 110
 	}
111 111
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	{
118 118
 		parent::addAttributesToRender($writer);
119 119
 
120
-		$writer->addAttribute('id',$this->getClientID());
120
+		$writer->addAttribute('id', $this->getClientID());
121 121
 		$options=TJavascript::encode($this->getPostBackOptions());
122 122
 		$cs=$this->getPage()->getClientScript();
123 123
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 * Raises the OnCreate event
139 139
 	 * @param object $params event parameters
140 140
 	 */
141
-	public function onCreate ($params)
141
+	public function onCreate($params)
142 142
 	{
143 143
 		$this->raiseEvent('OnCreate', $this, $params);
144 144
 	}
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * Raises the OnResize event
148 148
 	 * @param object $params event parameters
149 149
 	 */
150
-	public function onResize ($params)
150
+	public function onResize($params)
151 151
 	{
152 152
 		$this->raiseEvent('OnResize', $this, $params);
153 153
 	}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * Raises the OnStart event
157 157
 	 * @param object $params event parameters
158 158
 	 */
159
-	public function onStart ($params)
159
+	public function onStart($params)
160 160
 	{
161 161
 		$this->raiseEvent('OnStart', $this, $params);
162 162
 	}
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * Raises the OnStop event
166 166
 	 * @param object $params event parameters
167 167
 	 */
168
-	public function onStop ($params)
168
+	public function onStop($params)
169 169
 	{
170 170
 		$this->raiseEvent('OnStop', $this, $params);
171 171
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDraggable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	public function getOptions()
74 74
 	{
75
-		if (($options=$this->getViewState('JuiOptions'))===null)
75
+		if(($options=$this->getViewState('JuiOptions'))===null)
76 76
 		{
77 77
 		  $options=new TJuiControlOptions($this);
78 78
 		  $this->setViewState('JuiOptions', $options);
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	{
115 115
 		parent::addAttributesToRender($writer);
116 116
 
117
-		$writer->addAttribute('id',$this->getClientID());
117
+		$writer->addAttribute('id', $this->getClientID());
118 118
 		$options=TJavascript::encode($this->getPostBackOptions());
119 119
 		$cs=$this->getPage()->getClientScript();
120 120
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 	 * Raises the OnCreate event
136 136
 	 * @param object $params event parameters
137 137
 	 */
138
-	public function onCreate ($params)
138
+	public function onCreate($params)
139 139
 	{
140 140
 		$this->raiseEvent('OnCreate', $this, $params);
141 141
 	}
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * Raises the OnDrag event
145 145
 	 * @param object $params event parameters
146 146
 	 */
147
-	public function onDrag ($params)
147
+	public function onDrag($params)
148 148
 	{
149 149
 		$this->raiseEvent('OnDrag', $this, $params);
150 150
 	}
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 	 * Raises the OnStart event
154 154
 	 * @param object $params event parameters
155 155
 	 */
156
-	public function onStart ($params)
156
+	public function onStart($params)
157 157
 	{
158 158
 		$this->raiseEvent('OnStart', $this, $params);
159 159
 	}
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 	 * Raises the OnStop event
163 163
 	 * @param object $params event parameters
164 164
 	 */
165
-	public function onStop ($params)
165
+	public function onStop($params)
166 166
 	{
167 167
 		$this->raiseEvent('OnStop', $this, $params);
168 168
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDroppable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 	 */
93 93
 	public function getOptions()
94 94
 	{
95
-		if (($options=$this->getViewState('JuiOptions'))===null)
95
+		if(($options=$this->getViewState('JuiOptions'))===null)
96 96
 		{
97 97
 		  $options=new TJuiControlOptions($this);
98 98
 		  $this->setViewState('JuiOptions', $options);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	{
135 135
 		parent::addAttributesToRender($writer);
136 136
 
137
-		$writer->addAttribute('id',$this->getClientID());
137
+		$writer->addAttribute('id', $this->getClientID());
138 138
 		$options=TJavascript::encode($this->getPostBackOptions());
139 139
 		$cs=$this->getPage()->getClientScript();
140 140
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	 * Raises the OnActivate event
156 156
 	 * @param object $params event parameters
157 157
 	 */
158
-	public function onActivate ($params)
158
+	public function onActivate($params)
159 159
 	{
160 160
 		$this->raiseEvent('OnActivate', $this, $params);
161 161
 	}
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 * Raises the OnCreate event
165 165
 	 * @param object $params event parameters
166 166
 	 */
167
-	public function onCreate ($params)
167
+	public function onCreate($params)
168 168
 	{
169 169
 		$this->raiseEvent('OnCreate', $this, $params);
170 170
 	}
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * Raises the OnDeactivate event
174 174
 	 * @param object $params event parameters
175 175
 	 */
176
-	public function onDeactivate ($params)
176
+	public function onDeactivate($params)
177 177
 	{
178 178
 		$this->raiseEvent('OnDeactivate', $this, $params);
179 179
 	}
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 	 * Raises the OnDrop event
183 183
 	 * @param object $params event parameters
184 184
 	 */
185
-	public function onDrop ($params)
185
+	public function onDrop($params)
186 186
 	{
187 187
 		$this->raiseEvent('OnDrop', $this, $params);
188 188
 	}
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 * Raises the OnOut event
192 192
 	 * @param object $params event parameters
193 193
 	 */
194
-	public function OnOut ($params)
194
+	public function OnOut($params)
195 195
 	{
196 196
 		$this->raiseEvent('OnOut', $this, $params);
197 197
 	}
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 	 * Raises the OnOver event
201 201
 	 * @param object $params event parameters
202 202
 	 */
203
-	public function OnOver ($params)
203
+	public function OnOver($params)
204 204
 	{
205 205
 		$this->raiseEvent('OnOver', $this, $params);
206 206
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiProgressbar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	 */
69 69
 	public function getOptions()
70 70
 	{
71
-		if (($options=$this->getViewState('JuiOptions'))===null)
71
+		if(($options=$this->getViewState('JuiOptions'))===null)
72 72
 		{
73 73
 		  $options=new TJuiControlOptions($this);
74 74
 		  $this->setViewState('JuiOptions', $options);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 	{
111 111
 		parent::addAttributesToRender($writer);
112 112
 
113
-		$writer->addAttribute('id',$this->getClientID());
113
+		$writer->addAttribute('id', $this->getClientID());
114 114
 		$options=TJavascript::encode($this->getPostBackOptions());
115 115
 		$cs=$this->getPage()->getClientScript();
116 116
 		$code="jQuery('#".$this->getWidgetID()."').".$this->getWidget()."(".$options.");";
Please login to merge, or discard this patch.
framework/Web/UI/TTemplateControlInheritable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 */	
44 44
 	public function createChildControls()
45 45
 	{
46
-		if(null === ($_template = $this->getTemplate())) {
46
+		if(null===($_template=$this->getTemplate())) {
47 47
 			return $this->doCreateChildControlsFor(get_class($this));
48 48
 		}
49 49
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	 */
67 67
 	public function doCreateChildControlsFor($parentClass)
68 68
 	{
69
-		if(false !== ($_parentClass = get_parent_class($parentClass)) && 'TTemplateControl' != $_parentClass) {
69
+		if(false!==($_parentClass=get_parent_class($parentClass)) && 'TTemplateControl'!=$_parentClass) {
70 70
 			$this->doCreateChildControlsFor($_parentClass);
71 71
 		}
72 72
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 */
83 83
 	public function doTemplateForClass($parentClass)
84 84
 	{
85
-		if(null !== ($_template = $this->getService()->getTemplateManager()->getTemplateByClassName($parentClass))) {
85
+		if(null!==($_template=$this->getService()->getTemplateManager()->getTemplateByClassName($parentClass))) {
86 86
 			foreach($_template->getDirective() as $_name => $_value) {
87 87
 				if(!is_string($_value)) {
88 88
 					throw new TConfigurationException('templatecontrol_directive_invalid', get_class(this), $_name);
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 	 */
106 106
 	public function getIsSourceTemplateControl()
107 107
 	{
108
-		if(null !== ($_template = $this->getTemplate())) {
108
+		if(null!==($_template=$this->getTemplate())) {
109 109
 			return $_template->getIsSourceTemplate();
110 110
 		}
111 111
 
112
-		return ($_template = $this->getService()->getTemplateManager()->getTemplateByClassName(get_parent_class($this)))
112
+		return ($_template=$this->getService()->getTemplateManager()->getTemplateByClassName(get_parent_class($this)))
113 113
 			? $_template->getIsSourceTemplate()
114 114
 			: false;
115 115
 	}
Please login to merge, or discard this patch.
framework/Web/UI/TPageStatePersister.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 */
51 51
 	public function save($state)
52 52
 	{
53
-		$this->_page->setClientState(TPageStateFormatter::serialize($this->_page,$state));
53
+		$this->_page->setClientState(TPageStateFormatter::serialize($this->_page, $state));
54 54
 	}
55 55
 
56 56
 	/**
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
 	 */
61 61
 	public function load()
62 62
 	{
63
-		if(($data=TPageStateFormatter::unserialize($this->_page,$this->_page->getRequestClientState()))!==null)
63
+		if(($data=TPageStateFormatter::unserialize($this->_page, $this->_page->getRequestClientState()))!==null)
64 64
 			return $data;
65 65
 		else
66
-			throw new THttpException(400,'pagestatepersister_pagestate_corrupted');
66
+			throw new THttpException(400, 'pagestatepersister_pagestate_corrupted');
67 67
 	}
68 68
 }
69 69
 
Please login to merge, or discard this patch.
framework/Web/TCacheHttpSession.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
 		if($this->_cacheModuleID==='')
56 56
 			throw new TConfigurationException('cachesession_cachemoduleid_required');
57 57
 		else if(($cache=$this->getApplication()->getModule($this->_cacheModuleID))===null)
58
-			throw new TConfigurationException('cachesession_cachemodule_inexistent',$this->_cacheModuleID);
58
+			throw new TConfigurationException('cachesession_cachemodule_inexistent', $this->_cacheModuleID);
59 59
 		else if($cache instanceof ICache)
60 60
 			$this->_cache=$cache;
61 61
 		else
62
-			throw new TConfigurationException('cachesession_cachemodule_invalid',$this->_cacheModuleID);
62
+			throw new TConfigurationException('cachesession_cachemodule_invalid', $this->_cacheModuleID);
63 63
 		$this->setUseCustomStorage(true);
64 64
 		parent::init($config);
65 65
     }
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
 	 * @param string session data
105 105
 	 * @return boolean whether session write is successful
106 106
 	 */
107
-	public function _write($id,$data)
107
+	public function _write($id, $data)
108 108
 	{
109
-		return $this->_cache->set($this->calculateKey($id),$data,$this->getTimeout());
109
+		return $this->_cache->set($this->calculateKey($id), $data, $this->getTimeout());
110 110
 	}
111 111
 
112 112
 	/**
Please login to merge, or discard this patch.
framework/Web/THttpUtility.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class THttpUtility
20 20
 {
21
-	private static $_encodeTable=array('<'=>'&lt;','>'=>'&gt;','"'=>'&quot;');
22
-	private static $_decodeTable=array('&lt;'=>'<','&gt;'=>'>','&quot;'=>'"');
23
-	private static $_stripTable=array('&lt;'=>'','&gt;'=>'','&quot;'=>'');
21
+	private static $_encodeTable=array('<'=>'&lt;', '>'=>'&gt;', '"'=>'&quot;');
22
+	private static $_decodeTable=array('&lt;'=>'<', '&gt;'=>'>', '&quot;'=>'"');
23
+	private static $_stripTable=array('&lt;'=>'', '&gt;'=>'', '&quot;'=>'');
24 24
 
25 25
 	/**
26 26
 	 * HTML-encodes a string.
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 */
33 33
 	public static function htmlEncode($s)
34 34
 	{
35
-		return strtr($s,self::$_encodeTable);
35
+		return strtr($s, self::$_encodeTable);
36 36
 	}
37 37
 
38 38
 	/**
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	public static function htmlDecode($s)
45 45
 	{
46
-		return strtr($s,self::$_decodeTable);
46
+		return strtr($s, self::$_decodeTable);
47 47
 	}
48 48
 
49 49
 	/**
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public static function htmlStrip($s)
56 56
 	{
57
-		return strtr($s,self::$_stripTable);
57
+		return strtr($s, self::$_stripTable);
58 58
 	}
59 59
 }
60 60
 
Please login to merge, or discard this patch.