Completed
Push — master ( 8ce9c8...350a8b )
by cam
01:02
created
ecrire/src/Afficher/Minipage/Admin.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -114,11 +114,9 @@  discard block
 block discarded – undo
114 114
 
115 115
 			if ($statut && test_espace_prive()) {
116 116
 				$footer = bouton_action(_T('public:accueil_site'), generer_url_ecrire('accueil'));
117
-			}
118
-			elseif (!empty($_COOKIE['spip_admin'])) {
117
+			} elseif (!empty($_COOKIE['spip_admin'])) {
119 118
 				$footer = bouton_action(_T('public:lien_connecter'), generer_url_public('login'));
120
-			}
121
-			else {
119
+			} else {
122 120
 				$footer = bouton_action(_T('public:accueil_site'), $GLOBALS['meta']['adresse_site'] ?? '');
123 121
 			}
124 122
 
@@ -130,12 +128,10 @@  discard block
 block discarded – undo
130 128
 					. $titre
131 129
 					. '</div>';
132 130
 				$options['titre'] = '';
133
-			}
134
-			else {
131
+			} else {
135 132
 				$options['titre'] = $titre;
136 133
 			}
137
-		}
138
-		else {
134
+		} else {
139 135
 			$options['titre'] = $titre;
140 136
 		}
141 137
 		$options['page_title'] = $titre;
Please login to merge, or discard this patch.
ecrire/inc/utils.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -368,8 +368,7 @@  discard block
 block discarded – undo
368 368
 	}
369 369
 	if (!isset($regs[2])) {
370 370
 		$niveau = _LOG_INFO;
371
-	}
372
-	else {
371
+	} else {
373 372
 		$niveau = intval($regs[2]);
374 373
 	}
375 374
 
@@ -1485,8 +1484,7 @@  discard block
 block discarded – undo
1485 1484
 	) {
1486 1485
 		if ($fsize = substr($f, 0, -6) . $m[1] . '.svg' and file_exists($fsize)) {
1487 1486
 			return $themefiles["$subdir$file"] = $fsize;
1488
-		}
1489
-		else {
1487
+		} else {
1490 1488
 			return $themefiles["$subdir$file"] = "$f?" . $m[1] . 'px';
1491 1489
 		}
1492 1490
 	}
Please login to merge, or discard this patch.