Code Duplication    Length = 7-8 lines in 2 locations

src/voku/helper/HtmlDomParser.php 1 location

@@ 99-106 (lines=8) @@
96
   *
97
   * @return bool|mixed
98
   */
99
  public function __call($name, $arguments)
100
  {
101
    if (isset(self::$functionAliases[$name])) {
102
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
103
    }
104
105
    throw new BadMethodCallException('Method does not exist: ' . $name);
106
  }
107
108
  /**
109
   * @param $name

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 66-72 (lines=7) @@
63
   * @return null|string|SimpleHtmlDom
64
   *
65
   */
66
  public function __call($name, $arguments)
67
  {
68
    if (isset(self::$functionAliases[$name])) {
69
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
70
    }
71
    throw new BadMethodCallException('Method does not exist');
72
  }
73
74
  /**
75
   * @param $name