GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — develop (#1814)
by
unknown
13:24 queued 02:11
created
classes/cache/CacheWincache.class.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 	 */
21 21
 	function getInstance($opt = null)
22 22
 	{
23
-		if(!$GLOBALS['__CacheWincache__'])
23
+		if (!$GLOBALS['__CacheWincache__'])
24 24
 		{
25 25
 			$GLOBALS['__CacheWincache__'] = new CacheWincache();
26 26
 		}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 */
60 60
 	function put($key, $buff, $valid_time = 0)
61 61
 	{
62
-		if($valid_time == 0)
62
+		if ($valid_time == 0)
63 63
 		{
64 64
 			$valid_time = $this->valid_time;
65 65
 		}
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
 	{
79 79
 		$_key = md5(_XE_PATH_ . $key);
80 80
 		$obj = wincache_ucache_get($_key, $success);
81
-		if(!$success || !is_array($obj))
81
+		if (!$success || !is_array($obj))
82 82
 		{
83 83
 			return false;
84 84
 		}
85 85
 		unset($obj[1]);
86 86
 
87
-		if($modified_time > 0 && $modified_time > $obj[0])
87
+		if ($modified_time > 0 && $modified_time > $obj[0])
88 88
 		{
89 89
 			$this->_delete($_key);
90 90
 			return false;
@@ -105,12 +105,12 @@  discard block
 block discarded – undo
105 105
 	{
106 106
 		$_key = md5(_XE_PATH_ . $key);
107 107
 		$obj = wincache_ucache_get($_key, $success);
108
-		if(!$success || !is_array($obj))
108
+		if (!$success || !is_array($obj))
109 109
 		{
110 110
 			return false;
111 111
 		}
112 112
 
113
-		if($modified_time > 0 && $modified_time > $obj[0])
113
+		if ($modified_time > 0 && $modified_time > $obj[0])
114 114
 		{
115 115
 			$this->_delete($_key);
116 116
 			return false;
Please login to merge, or discard this patch.
classes/db/DBMysqli.class.php 3 patches
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	function __connect($connection)
45 45
 	{
46 46
 		// Attempt to connect
47
-		if($connection["db_port"])
47
+		if ($connection["db_port"])
48 48
 		{
49 49
 			$result = @mysqli_connect($connection["db_hostname"]
50 50
 							, $connection["db_userid"]
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 							, $connection["db_database"]);
61 61
 		}
62 62
 		$error = mysqli_connect_errno();
63
-		if($error)
63
+		if ($error)
64 64
 		{
65 65
 			$this->setError($error, mysqli_connect_error());
66 66
 			return;
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
 	 */
88 88
 	function addQuotes($string)
89 89
 	{
90
-		if(version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
90
+		if (version_compare(PHP_VERSION, "5.4.0", "<") && get_magic_quotes_gpc())
91 91
 		{
92 92
 			$string = stripslashes(str_replace("\\", "\\\\", $string));
93 93
 		}
94
-		if(!is_numeric($string))
94
+		if (!is_numeric($string))
95 95
 		{
96 96
 			$connection = $this->_getConnection('master');
97 97
 			$string = mysqli_escape_string($connection, $string);
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 	 */
109 109
 	function __query($query, $connection)
110 110
 	{
111
-		if($this->use_prepared_statements == 'Y')
111
+		if ($this->use_prepared_statements == 'Y')
112 112
 		{
113 113
 			// 1. Prepare query
114 114
 			$stmt = mysqli_prepare($connection, $query);
115
-			if($stmt)
115
+			if ($stmt)
116 116
 			{
117 117
 				$types = '';
118 118
 				$params = array();
119 119
 				$this->_prepareQueryParameters($types, $params);
120 120
 
121
-				if(!empty($params))
121
+				if (!empty($params))
122 122
 				{
123 123
 					$args[0] = $stmt;
124 124
 					$args[1] = $types;
125 125
 
126 126
 					$i = 2;
127
-					foreach($params as $key => $param)
127
+					foreach ($params as $key => $param)
128 128
 					{
129 129
 						$copy[$key] = $param;
130 130
 						$args[$i++] = &$copy[$key];
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 					// 2. Bind parameters
134 134
 					$status = call_user_func_array('mysqli_stmt_bind_param', $args);
135
-					if(!$status)
135
+					if (!$status)
136 136
 					{
137 137
 						$this->setError(-1, "Invalid arguments: $query" . mysqli_error($connection) . PHP_EOL . print_r($args, true));
138 138
 					}
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 				// 3. Execute query
142 142
 				$status = mysqli_stmt_execute($stmt);
143 143
 
144
-				if(!$status)
144
+				if (!$status)
145 145
 				{
146 146
 					$this->setError(-1, "Prepared statement failed: $query" . mysqli_error($connection) . PHP_EOL . print_r($args, true));
147 147
 				}
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 		$result = mysqli_query($connection, $query);
156 156
 		// Error Check
157 157
 		$error = mysqli_error($connection);
158
-		if($error)
158
+		if ($error)
159 159
 		{
160 160
 			$this->setError(mysqli_errno($connection), $error);
161 161
 		}
@@ -174,23 +174,23 @@  discard block
 block discarded – undo
174 174
 	{
175 175
 		$types = '';
176 176
 		$params = array();
177
-		if(!$this->param)
177
+		if (!$this->param)
178 178
 		{
179 179
 			return;
180 180
 		}
181 181
 
182
-		foreach($this->param as $k => $o)
182
+		foreach ($this->param as $k => $o)
183 183
 		{
184 184
 			$value = $o->getUnescapedValue();
185 185
 			$type = $o->getType();
186 186
 
187 187
 			// Skip column names -> this should be concatenated to query string
188
-			if($o->isColumnName())
188
+			if ($o->isColumnName())
189 189
 			{
190 190
 				continue;
191 191
 			}
192 192
 
193
-			switch($type)
193
+			switch ($type)
194 194
 			{
195 195
 				case 'number' :
196 196
 					$type = 'i';
@@ -202,9 +202,9 @@  discard block
 block discarded – undo
202 202
 					$type = 's';
203 203
 			}
204 204
 
205
-			if(is_array($value))
205
+			if (is_array($value))
206 206
 			{
207
-				foreach($value as $v)
207
+				foreach ($value as $v)
208 208
 				{
209 209
 					$params[] = $v;
210 210
 					$types .= $type;
@@ -226,12 +226,12 @@  discard block
 block discarded – undo
226 226
 	 */
227 227
 	function _fetch($result, $arrayIndexEndValue = NULL)
228 228
 	{
229
-		if($this->use_prepared_statements != 'Y')
229
+		if ($this->use_prepared_statements != 'Y')
230 230
 		{
231 231
 			return parent::_fetch($result, $arrayIndexEndValue);
232 232
 		}
233 233
 		$output = array();
234
-		if(!$this->isConnected() || $this->isError() || !$result)
234
+		if (!$this->isConnected() || $this->isError() || !$result)
235 235
 		{
236 236
 			return $output;
237 237
 		}
@@ -247,9 +247,9 @@  discard block
 block discarded – undo
247 247
 		 * MYSQLI_TYPE for longtext is 252
248 248
 		 */
249 249
 		$longtext_exists = false;
250
-		foreach($fields as $field)
250
+		foreach ($fields as $field)
251 251
 		{
252
-			if(isset($resultArray[$field->name])) // When joined tables are used and the same column name appears twice, we should add it separately, otherwise bind_result fails
252
+			if (isset($resultArray[$field->name])) // When joined tables are used and the same column name appears twice, we should add it separately, otherwise bind_result fails
253 253
 			{
254 254
 				$field->name = 'repeat_' . $field->name;
255 255
 			}
@@ -258,14 +258,14 @@  discard block
 block discarded – undo
258 258
 			$row[$field->name] = "";
259 259
 			$resultArray[$field->name] = &$row[$field->name];
260 260
 
261
-			if($field->type == 252)
261
+			if ($field->type == 252)
262 262
 			{
263 263
 				$longtext_exists = true;
264 264
 			}
265 265
 		}
266 266
 		$resultArray = array_merge(array($stmt), $resultArray);
267 267
 
268
-		if($longtext_exists)
268
+		if ($longtext_exists)
269 269
 		{
270 270
 			mysqli_stmt_store_result($stmt);
271 271
 		}
@@ -273,17 +273,17 @@  discard block
 block discarded – undo
273 273
 		call_user_func_array('mysqli_stmt_bind_result', $resultArray);
274 274
 
275 275
 		$rows = array();
276
-		while(mysqli_stmt_fetch($stmt))
276
+		while (mysqli_stmt_fetch($stmt))
277 277
 		{
278 278
 			$resultObject = new stdClass();
279 279
 
280
-			foreach($resultArray as $key => $value)
280
+			foreach ($resultArray as $key => $value)
281 281
 			{
282
-				if($key === 0)
282
+				if ($key === 0)
283 283
 				{
284 284
 					continue; // Skip stmt object
285 285
 				}
286
-				if(strpos($key, 'repeat_'))
286
+				if (strpos($key, 'repeat_'))
287 287
 				{
288 288
 					$key = substr($key, 6);
289 289
 				}
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
 
296 296
 		mysqli_stmt_close($stmt);
297 297
 
298
-		if($arrayIndexEndValue)
298
+		if ($arrayIndexEndValue)
299 299
 		{
300
-			foreach($rows as $row)
300
+			foreach ($rows as $row)
301 301
 			{
302 302
 				$output[$arrayIndexEndValue--] = $row;
303 303
 			}
@@ -307,9 +307,9 @@  discard block
 block discarded – undo
307 307
 			$output = $rows;
308 308
 		}
309 309
 
310
-		if(count($output) == 1)
310
+		if (count($output) == 1)
311 311
 		{
312
-			if(isset($arrayIndexEndValue))
312
+			if (isset($arrayIndexEndValue))
313 313
 			{
314 314
 				return $output;
315 315
 			}
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 	 */
331 331
 	function _executeInsertAct($queryObject, $with_values = false)
332 332
 	{
333
-		if($this->use_prepared_statements != 'Y')
333
+		if ($this->use_prepared_statements != 'Y')
334 334
 		{
335 335
 			return parent::_executeInsertAct($queryObject);
336 336
 		}
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 	 */
349 349
 	function _executeUpdateAct($queryObject, $with_values = false)
350 350
 	{
351
-		if($this->use_prepared_statements != 'Y')
351
+		if ($this->use_prepared_statements != 'Y')
352 352
 		{
353 353
 			return parent::_executeUpdateAct($queryObject);
354 354
 		}
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 	 */
367 367
 	function _executeDeleteAct($queryObject, $with_values = false)
368 368
 	{
369
-		if($this->use_prepared_statements != 'Y')
369
+		if ($this->use_prepared_statements != 'Y')
370 370
 		{
371 371
 			return parent::_executeDeleteAct($queryObject);
372 372
 		}
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
 	 */
388 388
 	function _executeSelectAct($queryObject, $connection = null, $with_values = false)
389 389
 	{
390
-		if($this->use_prepared_statements != 'Y')
390
+		if ($this->use_prepared_statements != 'Y')
391 391
 		{
392 392
 			return parent::_executeSelectAct($queryObject, $connection);
393 393
 		}
Please login to merge, or discard this patch.
Braces   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
 							, $connection["db_password"]
52 52
 							, $connection["db_database"]
53 53
 							, $connection["db_port"]);
54
-		}
55
-		else
54
+		} else
56 55
 		{
57 56
 			$result = @mysqli_connect($connection["db_hostname"]
58 57
 							, $connection["db_userid"]
@@ -209,8 +208,7 @@  discard block
 block discarded – undo
209 208
 					$params[] = $v;
210 209
 					$types .= $type;
211 210
 				}
212
-			}
213
-			else
211
+			} else
214 212
 			{
215 213
 				$params[] = $value;
216 214
 				$types .= $type;
@@ -249,10 +247,12 @@  discard block
 block discarded – undo
249 247
 		$longtext_exists = false;
250 248
 		foreach($fields as $field)
251 249
 		{
252
-			if(isset($resultArray[$field->name])) // When joined tables are used and the same column name appears twice, we should add it separately, otherwise bind_result fails
250
+			if(isset($resultArray[$field->name])) {
251
+				// When joined tables are used and the same column name appears twice, we should add it separately, otherwise bind_result fails
253 252
 			{
254 253
 				$field->name = 'repeat_' . $field->name;
255 254
 			}
255
+			}
256 256
 
257 257
 			// Array passed needs to contain references, not values
258 258
 			$row[$field->name] = "";
@@ -301,8 +301,7 @@  discard block
 block discarded – undo
301 301
 			{
302 302
 				$output[$arrayIndexEndValue--] = $row;
303 303
 			}
304
-		}
305
-		else
304
+		} else
306 305
 		{
307 306
 			$output = $rows;
308 307
 		}
@@ -312,8 +311,7 @@  discard block
 block discarded – undo
312 311
 			if(isset($arrayIndexEndValue))
313 312
 			{
314 313
 				return $output;
315
-			}
316
-			else
314
+			} else
317 315
 			{
318 316
 				return $output[0];
319 317
 			}
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	/**
31 31
 	 * Search Result
32 32
 	 *
33
-	 * @return Object
33
+	 * @return Object|null
34 34
 	 */
35 35
 	function IS()
36 36
 	{
Please login to merge, or discard this patch.
classes/db/queryparts/Subquery.class.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 
57 57
 	function isJoinTable()
58 58
 	{
59
-		if($this->join_type)
59
+		if ($this->join_type)
60 60
 		{
61 61
 			return true;
62 62
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/condition/ConditionGroup.class.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,14 +32,14 @@  discard block
 block discarded – undo
32 32
 	function ConditionGroup($conditions, $pipe = "")
33 33
 	{
34 34
 		$this->conditions = array();
35
-		foreach($conditions as $condition)
35
+		foreach ($conditions as $condition)
36 36
 		{
37
-			if($condition->show())
37
+			if ($condition->show())
38 38
 			{
39 39
 				$this->conditions[] = $condition;
40 40
 			}
41 41
 		}
42
-		if(count($this->conditions) === 0)
42
+		if (count($this->conditions) === 0)
43 43
 		{
44 44
 			$this->_show = false;
45 45
 		}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 	function setPipe($pipe)
60 60
 	{
61
-		if($this->pipe !== $pipe)
61
+		if ($this->pipe !== $pipe)
62 62
 		{
63 63
 			$this->_group = null;
64 64
 		}
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
 	 */
73 73
 	function toString($with_value = true)
74 74
 	{
75
-		if(!isset($this->_group))
75
+		if (!isset($this->_group))
76 76
 		{
77 77
 			$cond_indx = 0;
78 78
 			$group = '';
79 79
 
80
-			foreach($this->conditions as $condition)
80
+			foreach ($this->conditions as $condition)
81 81
 			{
82
-				if($cond_indx === 0)
82
+				if ($cond_indx === 0)
83 83
 				{
84 84
 					$condition->setPipe("");
85 85
 				}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 				$cond_indx++;
88 88
 			}
89 89
 
90
-			if($this->pipe !== "" && trim($group) !== '')
90
+			if ($this->pipe !== "" && trim($group) !== '')
91 91
 			{
92 92
 				$group = $this->pipe . ' (' . $group . ')';
93 93
 			}
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
 	function getArguments()
105 105
 	{
106 106
 		$args = array();
107
-		foreach($this->conditions as $condition)
107
+		foreach ($this->conditions as $condition)
108 108
 		{
109 109
 			$arg = $condition->getArgument();
110
-			if($arg)
110
+			if ($arg)
111 111
 			{
112 112
 				$args[] = $arg;
113 113
 			}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
 		if($this->limit)
112 112
 		{
113 113
 			return $this->limit->toString();
114
-		}
115
-		else
114
+		} else
116 115
 		{
117 116
 			return "";
118 117
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/condition/ConditionWithArgument.class.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	 */
20 20
 	function ConditionWithArgument($column_name, $argument, $operation, $pipe = "")
21 21
 	{
22
-		if($argument === null)
22
+		if ($argument === null)
23 23
 		{
24 24
 			$this->_show = false;
25 25
 			return;
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 	function getArgument()
32 32
 	{
33
-		if(!$this->show())
33
+		if (!$this->show())
34 34
 			return;
35 35
 		return $this->argument;
36 36
 	}
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 	{
44 44
 		$value = $this->argument->getUnescapedValue();
45 45
 
46
-		if(is_array($value))
46
+		if (is_array($value))
47 47
 		{
48 48
 			$q = '';
49
-			foreach($value as $v)
49
+			foreach ($value as $v)
50 50
 			{
51 51
 				$q .= '?,';
52 52
 			}
53
-			if($q !== '')
53
+			if ($q !== '')
54 54
 			{
55 55
 				$q = substr($q, 0, -1);
56 56
 			}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 		else
60 60
 		{
61 61
 			// Prepared statements: column names should not be sent as query arguments, but instead concatenated to query string
62
-			if($this->argument->isColumnName())
62
+			if ($this->argument->isColumnName())
63 63
 			{
64 64
 				$q = $value;
65 65
 			}
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
 	 */
77 77
 	function show()
78 78
 	{
79
-		if(!isset($this->_show))
79
+		if (!isset($this->_show))
80 80
 		{
81
-			if(!$this->argument->isValid())
81
+			if (!$this->argument->isValid())
82 82
 			{
83 83
 				$this->_show = false;
84 84
 			}
85
-			if($this->_value === '\'\'')
85
+			if ($this->_value === '\'\'')
86 86
 			{
87 87
 				$this->_show = false;
88 88
 			}
89
-			if(!isset($this->_show))
89
+			if (!isset($this->_show))
90 90
 			{
91 91
 				return parent::show();
92 92
 			}
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,8 +30,9 @@  discard block
 block discarded – undo
30 30
 
31 31
 	function getArgument()
32 32
 	{
33
-		if(!$this->show())
34
-			return;
33
+		if(!$this->show()) {
34
+					return;
35
+		}
35 36
 		return $this->argument;
36 37
 	}
37 38
 
@@ -55,15 +56,13 @@  discard block
 block discarded – undo
55 56
 				$q = substr($q, 0, -1);
56 57
 			}
57 58
 			$q = '(' . $q . ')';
58
-		}
59
-		else
59
+		} else
60 60
 		{
61 61
 			// Prepared statements: column names should not be sent as query arguments, but instead concatenated to query string
62 62
 			if($this->argument->isColumnName())
63 63
 			{
64 64
 				$q = $value;
65
-			}
66
-			else
65
+			} else
67 66
 			{
68 67
 				$q = '?';
69 68
 			}
Please login to merge, or discard this patch.
classes/db/queryparts/expression/ClickCountExpression.class.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	{
28 28
 		parent::SelectExpression($column_name, $alias);
29 29
 
30
-		if(!is_bool($click_count))
30
+		if (!is_bool($click_count))
31 31
 		{
32 32
 			// error_log("Click_count value for $column_name was not boolean", 0);
33 33
 			$this->click_count = false;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	function getExpression()
48 48
 	{
49 49
 		$db_type = Context::getDBType();
50
-		if($db_type == 'cubrid')
50
+		if ($db_type == 'cubrid')
51 51
 		{
52 52
 			return "INCR($this->column_name)";
53 53
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
 		if($this->limit)
112 112
 		{
113 113
 			return $this->limit->toString();
114
-		}
115
-		else
114
+		} else
116 115
 		{
117 116
 			return "";
118 117
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/expression/DeleteExpression.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	function getValue()
43 43
 	{
44 44
 		// TODO Escape value according to column type instead of variable type
45
-		if(!is_numeric($this->value))
45
+		if (!is_numeric($this->value))
46 46
 		{
47 47
 			return "'" . $this->value . "'";
48 48
 		}
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 	function show()
53 53
 	{
54
-		if(!$this->value)
54
+		if (!$this->value)
55 55
 		{
56 56
 			return false;
57 57
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/expression/InsertExpression.class.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	function getValue($with_values = true)
33 33
 	{
34
-		if($with_values)
34
+		if ($with_values)
35 35
 		{
36 36
 			return $this->argument->getValue();
37 37
 		}
@@ -40,12 +40,12 @@  discard block
 block discarded – undo
40 40
 
41 41
 	function show()
42 42
 	{
43
-		if(!$this->argument)
43
+		if (!$this->argument)
44 44
 		{
45 45
 			return false;
46 46
 		}
47 47
 		$value = $this->argument->getValue();
48
-		if(!isset($value))
48
+		if (!isset($value))
49 49
 		{
50 50
 			return false;
51 51
 		}
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
 	function getArguments()
61 61
 	{
62
-		if($this->argument)
62
+		if ($this->argument)
63 63
 		{
64 64
 			return array($this->argument);
65 65
 		}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,8 +111,7 @@
 block discarded – undo
111 111
 		if($this->limit)
112 112
 		{
113 113
 			return $this->limit->toString();
114
-		}
115
-		else
114
+		} else
116 115
 		{
117 116
 			return "";
118 117
 		}
Please login to merge, or discard this patch.
classes/db/queryparts/expression/UpdateExpressionWithoutArgument.class.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	{
39 39
 		// TODO Escape value according to column type instead of variable type
40 40
 		$value = $this->argument;
41
-		if(!is_numeric($value))
41
+		if (!is_numeric($value))
42 42
 		{
43 43
 			return "'" . $value . "'";
44 44
 		}
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 
48 48
 	function show()
49 49
 	{
50
-		if(!$this->argument)
50
+		if (!$this->argument)
51 51
 		{
52 52
 			return false;
53 53
 		}
54 54
 		$value = $this->argument;
55
-		if(!isset($value))
55
+		if (!isset($value))
56 56
 		{
57 57
 			return false;
58 58
 		}
Please login to merge, or discard this patch.