Code Duplication    Length = 7-7 lines in 2 locations

ufpdf/ufpdf.php 2 locations

@@ 242-248 (lines=7) @@
239
  return sprintf('%.2f %.2f %.2f %.2f re f',$x*$this->k,($this->h-($y-$up/1000*$this->FontSize))*$this->k,$w*$this->k,-$ut/1000*$this->FontSizePt);
240
}
241
242
function _textstring($s)
243
{
244
  //Convert to UTF-16BE
245
  $s = $this->utf8_to_utf16be($s);
246
  //Escape necessary characters
247
  return '('. strtr($s, array(')' => '\\)', '(' => '\\(', '\\' => '\\\\')) .')';
248
}
249
250
function _escapetext($s)
251
{
@@ 250-256 (lines=7) @@
247
  return '('. strtr($s, array(')' => '\\)', '(' => '\\(', '\\' => '\\\\')) .')';
248
}
249
250
function _escapetext($s)
251
{
252
  //Convert to UTF-16BE
253
  $s = $this->utf8_to_utf16be($s, false);
254
  //Escape necessary characters
255
  return '('. strtr($s, array(')' => '\\)', '(' => '\\(', '\\' => '\\\\')) .')';
256
}
257
258
function _putinfo()
259
{