Passed
Branch php-cs-fixer (b9836a)
by Fabio
15:02
created
framework/Web/UI/TTheme.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 						elseif($skin[0] !== -1)
153 153
 							throw new TConfigurationException('theme_control_nested', $skin[1], dirname($themePath));
154 154
 						$type = $skin[1];
155
-						$id = isset($skin[2]['skinid'])?$skin[2]['skinid']:0;
155
+						$id = isset($skin[2]['skinid']) ? $skin[2]['skinid'] : 0;
156 156
 						unset($skin[2]['skinid']);
157 157
 						if(isset($this->_skins[$type][$id]))
158 158
 							throw new TConfigurationException('theme_skinid_duplicated', $type, $id, dirname($themePath));
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 			sort($this->_cssFiles);
172 172
 			sort($this->_jsFiles);
173 173
 			if($cache !== null)
174
-				$cache->set(self::THEME_CACHE_PREFIX . $themePath, [$this->_skins,$this->_cssFiles,$this->_jsFiles,time()]);
174
+				$cache->set(self::THEME_CACHE_PREFIX . $themePath, [$this->_skins, $this->_cssFiles, $this->_jsFiles, time()]);
175 175
 		}
176 176
 	}
177 177
 
Please login to merge, or discard this patch.
framework/Web/UI/TThemeManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * @param string|null $class Theme class name in namespace format
103 103
 	 */
104 104
 	public function setThemeClass($class) {
105
-		$this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string)$class;
105
+		$this->_themeClass = $class === null ? self::DEFAULT_THEMECLASS : (string) $class;
106 106
 	}
107 107
 
108 108
 	/**
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiResizable.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 	 */
80 80
 	public function getOptions()
81 81
 	{
82
-		if (($options = $this->getViewState('JuiOptions')) === null)
82
+		if(($options = $this->getViewState('JuiOptions')) === null)
83 83
 		{
84 84
 		  $options = new TJuiControlOptions($this);
85 85
 		  $this->setViewState('JuiOptions', $options);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 	 * Raises the OnCreate event
144 144
 	 * @param object $params event parameters
145 145
 	 */
146
-	public function onCreate ($params)
146
+	public function onCreate($params)
147 147
 	{
148 148
 		$this->raiseEvent('OnCreate', $this, $params);
149 149
 	}
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 * Raises the OnResize event
153 153
 	 * @param object $params event parameters
154 154
 	 */
155
-	public function onResize ($params)
155
+	public function onResize($params)
156 156
 	{
157 157
 		$this->raiseEvent('OnResize', $this, $params);
158 158
 	}
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * Raises the OnStart event
162 162
 	 * @param object $params event parameters
163 163
 	 */
164
-	public function onStart ($params)
164
+	public function onStart($params)
165 165
 	{
166 166
 		$this->raiseEvent('OnStart', $this, $params);
167 167
 	}
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 	 * Raises the OnStop event
171 171
 	 * @param object $params event parameters
172 172
 	 */
173
-	public function onStop ($params)
173
+	public function onStop($params)
174 174
 	{
175 175
 		$this->raiseEvent('OnStop', $this, $params);
176 176
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiAutoComplete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 */
132 132
 	public function getOptions()
133 133
 	{
134
-		if (($options = $this->getViewState('JuiOptions')) === null)
134
+		if(($options = $this->getViewState('JuiOptions')) === null)
135 135
 		{
136 136
 		  $options = new TJuiControlOptions($this);
137 137
 		  $this->setViewState('JuiOptions', $options);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 			{
382 382
 				$items->itemAt($i)->render($writer);
383 383
 				$item = $writer->flush();
384
-				$data[] = [ 'id' => $i, 'label' => $item];
384
+				$data[] = ['id' => $i, 'label' => $item];
385 385
 			}
386 386
 
387 387
 			$this->getResponse()->getAdapter()->setResponseData($data);
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDatePicker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 */
79 79
 	public function getOptions()
80 80
 	{
81
-		if (($options = $this->getViewState('JuiOptions')) === null)
81
+		if(($options = $this->getViewState('JuiOptions')) === null)
82 82
 		{
83 83
 		  $options = new TJuiControlOptions($this);
84 84
 		  $this->setViewState('JuiOptions', $options);
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	protected function getTimeStampFromText()
277 277
 	{
278 278
 		$pattern = $this->getDateFormat();
279
-		$pattern = str_replace(['MMMM', 'MMM'], ['MM','MM'], $pattern);
279
+		$pattern = str_replace(['MMMM', 'MMM'], ['MM', 'MM'], $pattern);
280 280
 		$formatter = new TSimpleDateFormatter($pattern);
281 281
 		return $formatter->parse($this->getText());
282 282
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSlider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 	 */
84 84
 	public function getOptions()
85 85
 	{
86
-		if (($options = $this->getViewState('JuiOptions')) === null)
86
+		if(($options = $this->getViewState('JuiOptions')) === null)
87 87
 		{
88 88
 		  $options = new TJuiControlOptions($this);
89 89
 		  $this->setViewState('JuiOptions', $options);
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSelectable.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 */
82 82
 	public function getOptions()
83 83
 	{
84
-		if (($options = $this->getViewState('JuiOptions')) === null)
84
+		if(($options = $this->getViewState('JuiOptions')) === null)
85 85
 		{
86 86
 		  $options = new TJuiControlOptions($this);
87 87
 		  $this->setViewState('JuiOptions', $options);
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * Raises the OnCreate event
150 150
 	 * @param object $params event parameters
151 151
 	 */
152
-	public function onCreate ($params)
152
+	public function onCreate($params)
153 153
 	{
154 154
 		$this->raiseEvent('OnCreate', $this, $params);
155 155
 	}
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * Raises the OnSelected event
159 159
 	 * @param object $params event parameters
160 160
 	 */
161
-	public function onSelected ($params)
161
+	public function onSelected($params)
162 162
 	{
163 163
 		$this->raiseEvent('OnSelected', $this, $params);
164 164
 	}
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 	 * Raises the OnSelecting event
168 168
 	 * @param object $params event parameters
169 169
 	 */
170
-	public function onSelecting ($params)
170
+	public function onSelecting($params)
171 171
 	{
172 172
 		$this->raiseEvent('OnSelecting', $this, $params);
173 173
 	}
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
 	 * Raises the OnStart event
177 177
 	 * @param object $params event parameters
178 178
 	 */
179
-	public function onStart ($params)
179
+	public function onStart($params)
180 180
 	{
181 181
 		$this->raiseEvent('OnStart', $this, $params);
182 182
 	}
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * Raises the OnStop event
186 186
 	 * @param object $params event parameters
187 187
 	 */
188
-	public function onStop ($params)
188
+	public function onStop($params)
189 189
 	{
190 190
 		$this->raiseEvent('OnStop', $this, $params);
191 191
 	}
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 	 * Raises the OnUnselected event
195 195
 	 * @param object $params event parameters
196 196
 	 */
197
-	public function onUnselected ($params)
197
+	public function onUnselected($params)
198 198
 	{
199 199
 		$this->raiseEvent('OnUnselected', $this, $params);
200 200
 	}
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 * Raises the OnUnselecting event
204 204
 	 * @param object $params event parameters
205 205
 	 */
206
-	public function onUnselecting ($params)
206
+	public function onUnselecting($params)
207 207
 	{
208 208
 		$this->raiseEvent('OnUnselecting', $this, $params);
209 209
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiDialog.php 1 patch
Spacing   +2 added lines, -2 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);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 	 * Raises the OnCreate event
145 145
 	 * @param object $params event parameters
146 146
 	 */
147
-	public function onOpen ($params)
147
+	public function onOpen($params)
148 148
 	{
149 149
 		$this->raiseEvent('OnOpen', $this, $params);
150 150
 	}
Please login to merge, or discard this patch.
framework/Web/UI/JuiControls/TJuiSortable.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 */
79 79
 	public function getOptions()
80 80
 	{
81
-		if (($options = $this->getViewState('JuiOptions')) === null)
81
+		if(($options = $this->getViewState('JuiOptions')) === null)
82 82
 		{
83 83
 		  $options = new TJuiControlOptions($this);
84 84
 		  $this->setViewState('JuiOptions', $options);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	 * Raises the OnActivate event
148 148
 	 * @param object $params event parameters
149 149
 	 */
150
-	public function onActivate ($params)
150
+	public function onActivate($params)
151 151
 	{
152 152
 		$this->raiseEvent('OnActivate', $this, $params);
153 153
 	}
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 	 * Raises the OnBeforeStop event
157 157
 	 * @param object $params event parameters
158 158
 	 */
159
-	public function onBeforeStop ($params)
159
+	public function onBeforeStop($params)
160 160
 	{
161 161
 		$this->raiseEvent('OnBeforeStop', $this, $params);
162 162
 	}
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 * Raises the OnChange event
166 166
 	 * @param object $params event parameters
167 167
 	 */
168
-	public function onChange ($params)
168
+	public function onChange($params)
169 169
 	{
170 170
 		$this->raiseEvent('OnChange', $this, $params);
171 171
 	}
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 	 * Raises the OnCreate event
175 175
 	 * @param object $params event parameters
176 176
 	 */
177
-	public function onCreate ($params)
177
+	public function onCreate($params)
178 178
 	{
179 179
 		$this->raiseEvent('OnCreate', $this, $params);
180 180
 	}
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 	 * Raises the OnDeactivate event
184 184
 	 * @param object $params event parameters
185 185
 	 */
186
-	public function onDeactivate ($params)
186
+	public function onDeactivate($params)
187 187
 	{
188 188
 		$this->raiseEvent('OnDeactivate', $this, $params);
189 189
 	}
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	 * Raises the OnOut event
193 193
 	 * @param object $params event parameters
194 194
 	 */
195
-	public function onOut ($params)
195
+	public function onOut($params)
196 196
 	{
197 197
 		$this->raiseEvent('OnOut', $this, $params);
198 198
 	}
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * Raises the OnOver event
202 202
 	 * @param object $params event parameters
203 203
 	 */
204
-	public function onOver ($params)
204
+	public function onOver($params)
205 205
 	{
206 206
 		$this->raiseEvent('OnOver', $this, $params);
207 207
 	}
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	 * Raises the OnReceive event
211 211
 	 * @param object $params event parameters
212 212
 	 */
213
-	public function onReceive ($params)
213
+	public function onReceive($params)
214 214
 	{
215 215
 		$this->raiseEvent('OnReceive', $this, $params);
216 216
 	}
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 	 * Raises the OnRemove event
220 220
 	 * @param object $params event parameters
221 221
 	 */
222
-	public function onRemove ($params)
222
+	public function onRemove($params)
223 223
 	{
224 224
 		$this->raiseEvent('OnRemove', $this, $params);
225 225
 	}
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
 	 * Raises the OnSort event
229 229
 	 * @param object $params event parameters
230 230
 	 */
231
-	public function onSort ($params)
231
+	public function onSort($params)
232 232
 	{
233 233
 		$this->raiseEvent('OnSort', $this, $params);
234 234
 	}
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 * Raises the OnStart event
238 238
 	 * @param object $params event parameters
239 239
 	 */
240
-	public function onStart ($params)
240
+	public function onStart($params)
241 241
 	{
242 242
 		$this->raiseEvent('OnStart', $this, $params);
243 243
 	}
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 * Raises the OnStop event
247 247
 	 * @param object $params event parameters
248 248
 	 */
249
-	public function OnStop ($params)
249
+	public function OnStop($params)
250 250
 	{
251 251
 		$this->raiseEvent('OnStop', $this, $params);
252 252
 	}
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 	 * Raises the OnUpdate event
256 256
 	 * @param object $params event parameters
257 257
 	 */
258
-	public function onUpdate ($params)
258
+	public function onUpdate($params)
259 259
 	{
260 260
 		$this->raiseEvent('OnUpdate', $this, $params);
261 261
 	}
Please login to merge, or discard this patch.