Passed
Push — php8 ( 7ef3e2...94505a )
by Fabio
07:04 queued 01:51
created
framework/Data/ActiveRecord/TActiveRecordManager.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 	 * @var TActiveRecordInvalidFinderResult
57 57
 	 * @since 3.1.5
58 58
 	 */
59
-	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null;
59
+	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null;
60 60
 
61 61
 	/**
62 62
 	 * @return ICache application cache.
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TReCaptcha.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
 	{
329 329
 		$req = $this->recaptcha_qsencode($data);
330 330
 
331
-		$http_request = "POST $path HTTP/1.0\r\n";
331
+		$http_request = "post $path HTTP/1.0\r\n";
332 332
 		$http_request .= "Host: $host\r\n";
333 333
 		$http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
334 334
 		$http_request .= "Content-Length: " . strlen($req) . "\r\n";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -180,8 +180,7 @@
 block discarded – undo
180 180
 
181 181
 	public function validate()
182 182
 	{
183
-		if (!
184
-			  (
183
+		if (!(
185 184
 			  	($challenge = @$_POST[$this->getChallengeFieldName()])
186 185
 			and
187 186
 			($response = @$_POST[$this->getResponseFieldName()])
Please login to merge, or discard this patch.
framework/Data/Common/TDbCommandBuilder.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
 	{
319 319
 		$table = $this->getTableInfo()->getTableFullName();
320 320
 		$fields = implode(', ', $this -> getSelectFieldList($select));
321
-		$sql = "SELECT {$fields} FROM {$table}";
321
+		$sql = "select {$fields} FROM {$table}";
322 322
 		if (!empty($where)) {
323 323
 			$sql .= " WHERE {$where}";
324 324
 		}
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 		if (!empty($where)) {
406 406
 			$where = ' WHERE ' . $where;
407 407
 		}
408
-		$command = $this->createCommand("UPDATE {$table} SET {$fields}" . $where);
408
+		$command = $this->createCommand("update {$table} SET {$fields}" . $where);
409 409
 		$this->bindArrayValues($command, array_merge($data, $parameters));
410 410
 		return $command;
411 411
 	}
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Relations/TActiveRecordHasManyAssociation.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
 		if (($where = $criteria->getCondition()) === null) {
234 234
 			$where = '1=1';
235 235
 		}
236
-		$sql = "SELECT {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}";
236
+		$sql = "select {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}";
237 237
 
238 238
 		$parameters = $criteria->getParameters()->toArray();
239 239
 		$ordering = $criteria->getOrdersBy();
Please login to merge, or discard this patch.
framework/I18N/core/MessageSource.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
 		}
141 141
 
142 142
 		if (is_file($filename) == false) {
143
-			throw new Exception("File $filename not found");
143
+			throw new Exception("file $filename not found");
144 144
 		}
145 145
 
146 146
 		include_once $filename;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TFileUpload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
 	 */
296 296
 	public function getValidationPropertyValue()
297 297
 	{
298
-		return implode(',', array_map(function ($file) {
298
+		return implode(',', array_map(function($file) {
299 299
 			return $file->getFileName();
300 300
 		}, $this->_files));
301 301
 	}
Please login to merge, or discard this patch.
framework/I18N/core/Gettext/TGettext.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 	public static function poFile2moFile($pofile, $mofile)
128 128
 	{
129 129
 		if (!is_file($pofile)) {
130
-			throw new Exception("File $pofile doesn't exist.");
130
+			throw new Exception("file $pofile doesn't exist.");
131 131
 		}
132 132
 
133 133
 		include_once __DIR__ . '/PO.php';
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/assets/captcha.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	$hexLength = strlen($hex);
63 63
 	$base = strlen($alphabet);
64 64
 	$result = '';
65
-	for ($i = 0;$i < $hexLength;$i += 6) {
65
+	for ($i = 0; $i < $hexLength; $i += 6) {
66 66
 		$number = hexdec(substr($hex, $i, 6));
67 67
 		while ($number) {
68 68
 			$result .= $alphabet[$number % $base];
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 	}
107 107
 
108 108
 	$hasShadow = ($theme & THEME_SHADOWED_TEXT);
109
-	for ($i = 0;$i < $length;$i++) {
109
+	for ($i = 0; $i < $length; $i++) {
110 110
 		$color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220));
111 111
 		$size = rand($fontWidth - 10, $fontWidth);
112 112
 		$angle = rand(-30, 30);
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
 
160 160
 function addNoise($image, $width, $height)
161 161
 {
162
-	for ($x = 0;$x < $width;++$x) {
163
-		for ($y = 0;$y < $height;++$y) {
162
+	for ($x = 0; $x < $width; ++$x) {
163
+		for ($y = 0; $y < $height; ++$y) {
164 164
 			if (rand(0, 100) < 25) {
165 165
 				$color = imagecolorallocate($image, rand(150, 220), rand(150, 220), rand(150, 220));
166 166
 				imagesetpixel($image, $x, $y, $color);
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
 
173 173
 function addGrid($image, $width, $height)
174 174
 {
175
-	for ($i = 0;$i < $width;$i += rand(15, 25)) {
175
+	for ($i = 0; $i < $width; $i += rand(15, 25)) {
176 176
 		imagesetthickness($image, rand(2, 6));
177 177
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
178 178
 		imageline($image, $i + rand(-10, 20), 0, $i + rand(-10, 20), $height, $color);
179 179
 		imagecolordeallocate($image, $color);
180 180
 	}
181
-	for ($i = 0;$i < $height;$i += rand(15, 25)) {
181
+	for ($i = 0; $i < $height; $i += rand(15, 25)) {
182 182
 		imagesetthickness($image, rand(2, 6));
183 183
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
184 184
 		imageline($image, 0, $i + rand(-10, 20), $width, $i + rand(-10, 20), $color);
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
 
189 189
 function addScribble($image, $width, $height)
190 190
 {
191
-	for ($i = 0;$i < 8;$i++) {
191
+	for ($i = 0; $i < 8; $i++) {
192 192
 		$color = imagecolorallocate($image, rand(100, 180), rand(100, 180), rand(100, 180));
193 193
 		$points = [];
194
-		for ($j = 1;$j < rand(5, 10);$j++) {
194
+		for ($j = 1; $j < rand(5, 10); $j++) {
195 195
 			$points[] = rand(2 * (20 * ($i + 1)), 2 * (50 * ($i + 1)));
196 196
 			$points[] = rand(30, $height + 30);
197 197
 		}
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 {
206 206
 	$tempImage = imagecreatetruecolor($width, $height);
207 207
 	$chunk = rand(1, 5);
208
-	for ($x = $y = 0;$x < $width;$x += $chunk) {
208
+	for ($x = $y = 0; $x < $width; $x += $chunk) {
209 209
 		$chunk = rand(1, 5);
210 210
 		$y += rand(-1, 1);
211 211
 		if ($y >= $height) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 		}
217 217
 		imagecopy($tempImage, $image, $x, 0, $x, $y, $chunk, $height);
218 218
 	}
219
-	for ($x = $y = 0;$y < $height;$y += $chunk) {
219
+	for ($x = $y = 0; $y < $height; $y += $chunk) {
220 220
 		$chunk = rand(1, 5);
221 221
 		$x += rand(-1, 1);
222 222
 		if ($x >= $width) {
Please login to merge, or discard this patch.
framework/Data/SqlMap/Statements/TMappedStatement.php 1 patch
Spacing   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -193,8 +193,7 @@  discard block
 block discarded – undo
193 193
 	public function runQueryForList($connection, $parameter, $sql, $result, $delegate = null)
194 194
 	{
195 195
 		$registry = $this->getManager()->getTypeHandlers();
196
-		$list = $result instanceof \ArrayAccess ? $result :
197
-							$this->_statement->createInstanceOfListClass($registry);
196
+		$list = $result instanceof \ArrayAccess ? $result : $this->_statement->createInstanceOfListClass($registry);
198 197
 		$connection->setActive(true);
199 198
 		$reader = $sql->query();
200 199
 		if ($delegate !== null) {
@@ -267,8 +266,7 @@  discard block
 block discarded – undo
267 266
 			foreach ($reader as $row) {
268 267
 				$obj = $this->applyResultMap($row);
269 268
 				$key = TPropertyAccess::get($obj, $keyProperty);
270
-				$value = ($valueProperty === null) ? $obj :
271
-							TPropertyAccess::get($obj, $valueProperty);
269
+				$value = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty);
272 270
 				$param = new TResultSetMapItemParameter($key, $value, $parameter, $map);
273 271
 				$this->raiseRowDelegate($delegate, $param);
274 272
 			}
@@ -276,8 +274,7 @@  discard block
 block discarded – undo
276 274
 			foreach ($reader as $row) {
277 275
 				$obj = $this->applyResultMap($row);
278 276
 				$key = TPropertyAccess::get($obj, $keyProperty);
279
-				$map[$key] = ($valueProperty === null) ? $obj :
280
-								TPropertyAccess::get($obj, $valueProperty);
277
+				$map[$key] = ($valueProperty === null) ? $obj : TPropertyAccess::get($obj, $valueProperty);
281 278
 			}
282 279
 		}
283 280
 		$this->onExecuteQuery($command);
Please login to merge, or discard this patch.