Code Duplication    Length = 4-4 lines in 2 locations

ecrire/inc/plugin.php 2 locations

@@ 1171-1174 (lines=4) @@
1168
					$prepend_code['header_prive_css'] = "";
1169
				}
1170
				foreach ($info['style'] as $style) {
1171
					if (isset($style['path']) and $style['path']) {
1172
						$code = "if (\$f=timestamp(direction_css(find_in_path('" . addslashes($style['path']) . "')))) ";
1173
					} else {
1174
						$code = "if (\$f='" . addslashes($style['url']) . "') ";
1175
					}
1176
					$code .= "\$val .= '<link rel=\"stylesheet\" href=\"'.\$f.'\" type=\"text/css\"";
1177
					if (isset($style['media']) and strlen($style['media'])) {
@@ 1197-1200 (lines=4) @@
1194
			}
1195
			if (isset($info['script']) and count($info['script'])) {
1196
				foreach ($info['script'] as $script) {
1197
					if (isset($script['path']) and $script['path']) {
1198
						$code = "if (\$f=timestamp(find_in_path('" . addslashes($script['path']) . "'))) ";
1199
					} else {
1200
						$code = "if (\$f='" . addslashes($script['url']) . "') ";
1201
					}
1202
					$code .= "\$val .= '<script src=\"'.\$f.'\" type=\"text/javascript\"></script>';\n";
1203
					if ($script['type'] != 'prive') {