Code Duplication    Length = 8-8 lines in 2 locations

pdf/fonts/old/makefont/makefont.php 1 location

@@ 230-237 (lines=8) @@
227
	return rtrim($s);
228
}
229
230
function SaveToFile($file,$s,$mode='t')
231
{
232
	$f=fopen($file,'w'.$mode);
233
	if(!$f)
234
		die('Can\'t write to file '.$file);
235
	fwrite($f,$s,strlen($s));
236
	fclose($f);
237
}
238
239
function ReadShort($f)
240
{

pdf/fonts/ttf2ufm/makefontuni.php 1 location

@@ 146-153 (lines=8) @@
143
  return $s;
144
}
145
146
function SaveToFile($file,$s,$mode='t')
147
{
148
  $f=fopen($file,'w'.$mode);
149
  if(!$f)
150
    die('Can\'t write to file '.$file);
151
  fwrite($f,$s,strlen($s));
152
  fclose($f);
153
}
154
155
function ReadShort($f)
156
{