Code Duplication    Length = 2-2 lines in 2 locations

ecrire/inc/plugin.php 2 locations

@@ 961-962 (lines=2) @@
958
							if (strlen($dir)) {
959
								$dir = rtrim($dir, '/') . '/';
960
							}
961
							if (!isset($chemin['type']) or $chemin['type'] == 'public') {
962
								$chemins['public'][] = "_DIR_PLUGIN_$prefix" . (strlen($dir) ? ".'$dir'" : "");
963
							}
964
							if (!isset($chemin['type']) or $chemin['type'] == 'prive') {
965
								$chemins['prive'][] = "_DIR_PLUGIN_$prefix" . (strlen($dir) ? ".'$dir'" : "");
@@ 964-965 (lines=2) @@
961
							if (!isset($chemin['type']) or $chemin['type'] == 'public') {
962
								$chemins['public'][] = "_DIR_PLUGIN_$prefix" . (strlen($dir) ? ".'$dir'" : "");
963
							}
964
							if (!isset($chemin['type']) or $chemin['type'] == 'prive') {
965
								$chemins['prive'][] = "_DIR_PLUGIN_$prefix" . (strlen($dir) ? ".'$dir'" : "");
966
							}
967
						}
968
					}