Code Duplication    Length = 9-9 lines in 4 locations

src/voku/helper/shim/Iconv.php 1 location

@@ 356-364 (lines=9) @@
353
   *
354
   * @return bool|mixed
355
   */
356
  protected static function getData($file)
357
  {
358
    $file = __DIR__ . '/charset/' . $file . '.ser';
359
    if (file_exists($file)) {
360
      return unserialize(file_get_contents($file));
361
    } else {
362
      return false;
363
    }
364
  }
365
366
  /**
367
   * map to utf8

src/voku/helper/shim/Mbstring.php 1 location

@@ 506-514 (lines=9) @@
503
   *
504
   * @return bool|mixed
505
   */
506
  protected static function getData($file)
507
  {
508
    $file = __DIR__ . '/unidata/' . $file . '.ser';
509
    if (file_exists($file)) {
510
      return unserialize(file_get_contents($file));
511
    } else {
512
      return false;
513
    }
514
  }
515
516
  /**
517
   * @param string $str

src/voku/helper/shim/Normalizer.php 1 location

@@ 146-154 (lines=9) @@
143
   *
144
   * @return bool|mixed
145
   */
146
  protected static function getData($file)
147
  {
148
    $file = __DIR__ . '/unidata/' . $file . '.ser';
149
    if (file_exists($file)) {
150
      return unserialize(file_get_contents($file));
151
    } else {
152
      return false;
153
    }
154
  }
155
156
  /**
157
   * recompose

src/voku/helper/UTF8.php 1 location

@@ 699-707 (lines=9) @@
696
   *
697
   * @return bool|string|array|int false on error
698
   */
699
  protected static function getData($file)
700
  {
701
    $file = __DIR__ . '/data/' . $file . '.ser';
702
    if (file_exists($file)) {
703
      return unserialize(file_get_contents($file));
704
    } else {
705
      return false;
706
    }
707
  }
708
709
  /**
710
   * US-ASCII transliterations of Unicode text