Test Failed
Branch develop (86e751)
by Laurent
34:11
created
htdocs/core/lib/json.lib.php 1 patch
Switch Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -358,20 +358,20 @@
 block discarded – undo
358 358
 	}
359 359
 
360 360
 	switch(strlen($utf8)) {
361
-	case 1:
362
-	        // this case should never be reached, because we are in ASCII range
363
-	// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
364
-	return $utf8;
365
-
366
-	case 2:
367
-	// return a UTF-16 character from a 2-byte UTF-8 char
368
-	// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
369
-	return chr(0x07 & (ord($utf8{0}) >> 2)) . chr((0xC0 & (ord($utf8{0}) << 6)) | (0x3F & ord($utf8{1})));
370
-
371
-	case 3:
372
-	// return a UTF-16 character from a 3-byte UTF-8 char
373
-	// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
374
-	return chr((0xF0 & (ord($utf8{0}) << 4)) | (0x0F & (ord($utf8{1}) >> 2))) . chr((0xC0 & (ord($utf8{1}) << 6)) | (0x7F & ord($utf8{2})));
361
+		case 1:
362
+	        	// this case should never be reached, because we are in ASCII range
363
+		// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
364
+		return $utf8;
365
+
366
+		case 2:
367
+		// return a UTF-16 character from a 2-byte UTF-8 char
368
+		// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
369
+		return chr(0x07 & (ord($utf8{0}) >> 2)) . chr((0xC0 & (ord($utf8{0}) << 6)) | (0x3F & ord($utf8{1})));
370
+
371
+		case 3:
372
+		// return a UTF-16 character from a 3-byte UTF-8 char
373
+		// see: http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8
374
+		return chr((0xF0 & (ord($utf8{0}) << 4)) | (0x0F & (ord($utf8{1}) >> 2))) . chr((0xC0 & (ord($utf8{1}) << 6)) | (0x7F & ord($utf8{2})));
375 375
 	}
376 376
 
377 377
 	// ignoring UTF-32 for now, sorry
Please login to merge, or discard this patch.
htdocs/product/class/product.class.php 1 patch
Switch Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3505,15 +3505,15 @@
 block discarded – undo
3505 3505
 	{
3506 3506
 		switch ($type)
3507 3507
 		{
3508
-		case 0:
3509
-			return $this->LibStatut($this->status,$mode,$type);
3510
-		case 1:
3511
-			return $this->LibStatut($this->status_buy,$mode,$type);
3512
-		case 2:
3513
-			return $this->LibStatut($this->status_batch,$mode,$type);
3514
-		default:
3515
-			//Simulate previous behavior but should return an error string
3516
-			return $this->LibStatut($this->status_buy,$mode,$type);
3508
+			case 0:
3509
+				return $this->LibStatut($this->status,$mode,$type);
3510
+			case 1:
3511
+				return $this->LibStatut($this->status_buy,$mode,$type);
3512
+			case 2:
3513
+				return $this->LibStatut($this->status_batch,$mode,$type);
3514
+			default:
3515
+				//Simulate previous behavior but should return an error string
3516
+				return $this->LibStatut($this->status_buy,$mode,$type);
3517 3517
 		}
3518 3518
 	}
3519 3519
 
Please login to merge, or discard this patch.