Completed
Push — master ( 4fa0dc...b74578 )
by cam
01:19
created
ecrire/plugins/afficher_repertoires.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,10 +58,10 @@  discard block
 block discarded – undo
58 58
 				$id = substr(md5($plug), 0, 16);
59 59
 				$res .= $ligne_plug(
60 60
 					$url_page,
61
-					str_replace(_DIR_PLUGINS, '', _DIR_RACINE . $plug),
61
+					str_replace(_DIR_PLUGINS, '', _DIR_RACINE.$plug),
62 62
 					$actif,
63 63
 					'menu-entree'
64
-				) . "\n";
64
+				)."\n";
65 65
 				unset($liste_plugins[$key]);
66 66
 			}
67 67
 		}
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
 	}
102 102
 	$chemin = '';
103 103
 	if ($tcom !== []) {
104
-		$chemin .= implode('/', $tcom) . '/';
104
+		$chemin .= implode('/', $tcom).'/';
105 105
 	}
106 106
 	// ouvrir les repertoires jusqu'a la cible
107 107
 	while ($open = array_shift($ttarg)) {
108
-		$visible = @isset($deplie[$chemin . $open]);
109
-		$chemin .= $open . '/';
108
+		$visible = @isset($deplie[$chemin.$open]);
109
+		$chemin .= $open.'/';
110 110
 		$output .= '<li>';
111 111
 		$output .= bouton_block_depliable($chemin, $visible);
112 112
 		$output .= debut_block_depliable($visible);
Please login to merge, or discard this patch.
ecrire/plugins/get_infos.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	static $filecache = '';
39 39
 
40 40
 	if ($cache === '') {
41
-		$filecache = _DIR_TMP . 'plugin_xml_cache.gz';
41
+		$filecache = _DIR_TMP.'plugin_xml_cache.gz';
42 42
 		if (is_file($filecache)) {
43 43
 			lire_fichier($filecache, $contenu);
44 44
 			$cache = unserialize($contenu);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	if (isset($ret['prefix']) && $ret['prefix'] == 'spip') {
128 128
 		$ret['procure']['php'] = ['nom' => 'php', 'version' => phpversion()];
129 129
 		foreach (get_loaded_extensions() as $ext) {
130
-			$ret['procure']['php:' . $ext] = ['nom' => 'php:' . $ext, 'version' => phpversion($ext)];
130
+			$ret['procure']['php:'.$ext] = ['nom' => 'php:'.$ext, 'version' => phpversion($ext)];
131 131
 		}
132 132
 	}
133 133
 	$diff = ($ret != $pcache);
Please login to merge, or discard this patch.
ecrire/plugins/installer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	}
68 68
 	$dir = constant($dir);
69 69
 	foreach ($infos['install'] as $file) {
70
-		$file = $dir . $plug . '/' . trim($file);
70
+		$file = $dir.$plug.'/'.trim($file);
71 71
 		if (file_exists($file)) {
72 72
 			include_once($file);
73 73
 		}
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
 		// S'assurer que les metas de la table spécifique sont bien accessibles dans la globale
81 81
 		lire_metas($table);
82 82
 	}
83
-	$nom_meta = $infos['prefix'] . '_base_version';
83
+	$nom_meta = $infos['prefix'].'_base_version';
84 84
 
85 85
 	// Détermination de la fonction à appeler et de ses arguments
86
-	$f = $infos['prefix'] . '_install';
86
+	$f = $infos['prefix'].'_install';
87 87
 	if (!function_exists($f)) {
88 88
 		$f = isset($infos['schema']) ? 'spip_plugin_install' : '';
89 89
 		$arg = $infos;
@@ -162,12 +162,12 @@  discard block
 block discarded – undo
162 162
 				&& isset($GLOBALS[$table][$nom_meta])
163 163
 				&& spip_version_compare($GLOBALS[$table][$nom_meta], $version_cible, '>='));
164 164
 		case 'install':
165
-			if (function_exists($upgrade = $infos['prefix'] . '_upgrade')) {
165
+			if (function_exists($upgrade = $infos['prefix'].'_upgrade')) {
166 166
 				$upgrade($nom_meta, $version_cible, $table);
167 167
 			}
168 168
 			break;
169 169
 		case 'uninstall':
170
-			if (function_exists($vider_tables = $infos['prefix'] . '_vider_tables')) {
170
+			if (function_exists($vider_tables = $infos['prefix'].'_vider_tables')) {
171 171
 				$vider_tables($nom_meta, $table);
172 172
 			}
173 173
 			break;
Please login to merge, or discard this patch.
ecrire/plugins/afficher_liste.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	asort($liste_plugins);
64 64
 	$exposed = urldecode(_request('plugin') ?? '');
65 65
 
66
-	$block_par_lettre = false;//count($liste_plugins)>10;
66
+	$block_par_lettre = false; //count($liste_plugins)>10;
67 67
 	$fast_liste_plugins_actifs = [];
68 68
 	$fast_liste_plugins_checked = [];
69 69
 	if (is_array($liste_plugins_actifs)) {
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 		$actif = isset($fast_liste_plugins_actifs[$plug]);
89 89
 		$checked = isset($fast_liste_plugins_checked[$plug]);
90 90
 		$block_actif |= $actif;
91
-		$expose = ($exposed && ($exposed == $plug || $exposed === $dir_plugins . $plug || $exposed === substr(
91
+		$expose = ($exposed && ($exposed == $plug || $exposed === $dir_plugins.$plug || $exposed === substr(
92 92
 			$dir_plugins,
93 93
 			strlen(_DIR_RACINE)
94
-		) . $plug));
95
-		$block .= $ligne_plug($url_page, $plug, $checked, $actif, $expose, 'item', $dir_plugins) . "\n";
94
+		).$plug));
95
+		$block .= $ligne_plug($url_page, $plug, $checked, $actif, $expose, 'item', $dir_plugins)."\n";
96 96
 	}
97 97
 	$res .= $block_par_lettre ? affiche_block_initiale($initiale, $block, $block_actif) : $block;
98 98
 	$class = basename($dir_plugins);
Please login to merge, or discard this patch.
ecrire/plugins/verifie_conformite.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 		}
50 50
 	}
51 51
 	if (is_null($p)) {
52
-		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent') . " : $plug"]];
52
+		$arbre = ['erreur' => [_T('erreur_plugin_tag_plugin_absent')." : $plug"]];
53 53
 		$silence = true;
54 54
 	} else {
55 55
 		$arbre = $p;
@@ -84,22 +84,22 @@  discard block
 block discarded – undo
84 84
 		if (isset($arbre['etat'])) {
85 85
 			$etat = trim(end($arbre['etat']));
86 86
 			if (!in_array($etat, $etats)) {
87
-				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu') . " : '$etat'";
87
+				$arbre['erreur'][] = _T('erreur_plugin_etat_inconnu')." : '$etat'";
88 88
 			}
89 89
 		}
90 90
 		if (isset($arbre['options'])) {
91 91
 			foreach ($arbre['options'] as $optfile) {
92 92
 				$optfile = trim($optfile);
93
-				if (!@is_readable($dir_plugins . "$plug/$optfile") && !$silence) {
94
-					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
93
+				if (!@is_readable($dir_plugins."$plug/$optfile") && !$silence) {
94
+					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
95 95
 				}
96 96
 			}
97 97
 		}
98 98
 		if (isset($arbre['fonctions'])) {
99 99
 			foreach ($arbre['fonctions'] as $optfile) {
100 100
 				$optfile = trim($optfile);
101
-				if (!@is_readable($dir_plugins . "$plug/$optfile") && !$silence) {
102
-					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $optfile";
101
+				if (!@is_readable($dir_plugins."$plug/$optfile") && !$silence) {
102
+					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $optfile";
103 103
 				}
104 104
 			}
105 105
 		}
@@ -125,12 +125,12 @@  discard block
 block discarded – undo
125 125
 			$action = $pipe['action'] ?? $pipe['nom'];
126 126
 			// verif que la methode a un nom autorise
127 127
 			if (in_array(strtolower($action), $liste_methodes_reservees) && !$silence) {
128
-				$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit') . " : $action";
128
+				$arbre['erreur'][] = _T('erreur_plugin_nom_fonction_interdit')." : $action";
129 129
 			}
130 130
 			if (isset($pipe['inclure'])) {
131
-				$inclure = $dir_plugins . "$plug/" . $pipe['inclure'];
131
+				$inclure = $dir_plugins."$plug/".$pipe['inclure'];
132 132
 				if (!@is_readable($inclure) && !$silence) {
133
-					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $inclure";
133
+					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $inclure";
134 134
 				}
135 135
 			}
136 136
 		}
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
 			foreach ($arbre['noisette'] as $k => $nut) {
200 200
 				$nut = preg_replace(',[.]html$,uims', '', trim($nut));
201 201
 				$arbre['noisette'][$k] = $nut;
202
-				if (!@is_readable($dir_plugins . "$plug/$nut.html") && !$silence) {
203
-					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent') . " : $nut";
202
+				if (!@is_readable($dir_plugins."$plug/$nut.html") && !$silence) {
203
+					$arbre['erreur'][] = _T('erreur_plugin_fichier_absent')." : $nut";
204 204
 				}
205 205
 			}
206 206
 		}
Please login to merge, or discard this patch.
ecrire/plugins/afficher_nom_plugin.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 	// numerotons les occurences d'un meme prefix
38 38
 	$versions[$info['prefix']] = isset($versions[$info['prefix']]) ? $versions[$info['prefix']] + 1 : '';
39
-	$id = $info['prefix'] . $versions[$info['prefix']];
39
+	$id = $info['prefix'].$versions[$info['prefix']];
40 40
 
41 41
 	$class = $class_li;
42 42
 	$class .= $actif ? ' actif' : '';
@@ -53,16 +53,16 @@  discard block
 block discarded – undo
53 53
 	$prefix = $info['prefix'];
54 54
 	$dir = "$dir_plugins$plug_file/lang/$prefix";
55 55
 	$desc = plugin_propre($info['description'], $dir);
56
-	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins . $plug_file);
56
+	$url_stat = parametre_url($url_page, 'plugin', $dir_plugins.$plug_file);
57 57
 
58
-	$s .= "<strong class='nom'>" . typo($info['nom']) . '</strong>';
59
-	$s .= " <span class='version'>" . $info['version'] . '</span>';
60
-	$s .= " <span class='etat'> - " . plugin_etat_en_clair($info['etat']) . '</span>';
58
+	$s .= "<strong class='nom'>".typo($info['nom']).'</strong>';
59
+	$s .= " <span class='version'>".$info['version'].'</span>';
60
+	$s .= " <span class='etat'> - ".plugin_etat_en_clair($info['etat']).'</span>';
61 61
 	$s .= '</div>';
62 62
 
63 63
 	if ($erreur) {
64
-		$s .= "<div class='erreur'>" . implode('<br >', $info['erreur']) . '</div>';
64
+		$s .= "<div class='erreur'>".implode('<br >', $info['erreur']).'</div>';
65 65
 	}
66 66
 
67
-	return $s . '</li>';
67
+	return $s.'</li>';
68 68
 }
Please login to merge, or discard this patch.