Completed
Push — master ( c8fa57...9e3be1 )
by cam
04:24
created
ecrire/req/mysql.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,11 +50,9 @@  discard block
 block discarded – undo
50 50
 		$port and !is_numeric($socket = $port)
51 51
 		and (!$host or $host=='localhost')) {
52 52
 		$link = @mysqli_connect($host, $login, $pass, '', null, $socket);
53
-	}
54
-	elseif ($port) {
53
+	} elseif ($port) {
55 54
 		$link = @mysqli_connect($host, $login, $pass, '', $port);
56
-	}
57
-	else {
55
+	} else {
58 56
 		$link = @mysqli_connect($host, $login, $pass);
59 57
 	}
60 58
 
@@ -1612,8 +1610,7 @@  discard block
 block discarded – undo
1612 1610
 	if (!$type) {
1613 1611
 		if (is_bool($v)) {
1614 1612
 			return strval(intval($v));
1615
-		}
1616
-		elseif (is_numeric($v)) {
1613
+		} elseif (is_numeric($v)) {
1617 1614
 			return strval($v);
1618 1615
 		}
1619 1616
 		return "'" . addslashes($v) . "'";
Please login to merge, or discard this patch.
ecrire/req/sqlite_generique.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2000,8 +2000,7 @@
 block discarded – undo
2000 2000
 		// si on ne connait pas le type on le deduit de $v autant que possible
2001 2001
 		if (is_bool($v)) {
2002 2002
 			return strval(intval($v));
2003
-		}
2004
-		elseif (is_numeric($v)) {
2003
+		} elseif (is_numeric($v)) {
2005 2004
 			return strval($v);
2006 2005
 		}
2007 2006
 	}
Please login to merge, or discard this patch.