Completed
Push — master ( 1baec0...2c90e6 )
by cam
01:27
created
ecrire/req/mysql.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,11 +51,9 @@  discard block
 block discarded – undo
51 51
 		and (!$host or $host == 'localhost')
52 52
 	) {
53 53
 		$link = @mysqli_connect($host, $login, $pass, '', null, $socket);
54
-	}
55
-	elseif ($port) {
54
+	} elseif ($port) {
56 55
 		$link = @mysqli_connect($host, $login, $pass, '', $port);
57
-	}
58
-	else {
56
+	} else {
59 57
 		$link = @mysqli_connect($host, $login, $pass);
60 58
 	}
61 59
 
@@ -1619,8 +1617,7 @@  discard block
 block discarded – undo
1619 1617
 	if (!$type) {
1620 1618
 		if (is_bool($v)) {
1621 1619
 			return strval(intval($v));
1622
-		}
1623
-		elseif (is_numeric($v)) {
1620
+		} elseif (is_numeric($v)) {
1624 1621
 			return strval($v);
1625 1622
 		}
1626 1623
 		return "'" . addslashes($v) . "'";
Please login to merge, or discard this patch.
ecrire/action/editer_logo.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
 		if (count($logo) < 6) {
43 43
 			spip_log("Supprimer ancien logo $logo", 'logo');
44 44
 			spip_unlink($logo[0]);
45
-		}
46
-		elseif (
45
+		} elseif (
47 46
 			$doc = $logo[5]
48 47
 			and isset($doc['id_document'])
49 48
 			and $id_document = $doc['id_document']
Please login to merge, or discard this patch.
ecrire/action/editer_liens.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -398,8 +398,7 @@  discard block
 block discarded – undo
398 398
 			if (lien_triables($table_lien)) {
399 399
 				if (isset($qualif['rang_lien'])) {
400 400
 					$rang = $qualif['rang_lien'];
401
-				}
402
-				else {
401
+				} else {
403 402
 					$where = lien_where($primary, $id, $objet, $id_objet);
404 403
 					// si il y a deja un lien pour ce couple (avec un autre role?) on reprend le meme rang si non nul
405 404
 					if (!$rang = intval(sql_getfetsel('rang_lien', $table_lien, $where))) {
@@ -545,8 +544,7 @@  discard block
 block discarded – undo
545 544
 		$desc = $trouver_table($table_lien);
546 545
 		if ($desc and isset($desc['field']['rang_lien'])) {
547 546
 			$triables[$table_lien] = true;
548
-		}
549
-		else {
547
+		} else {
550 548
 			$triables[$table_lien] = false;
551 549
 		}
552 550
 	}
Please login to merge, or discard this patch.