Code Duplication    Length = 7-8 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

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

src/voku/helper/HtmlDomParser.php 1 location

@@ 129-136 (lines=8) @@
126
   *
127
   * @return bool|mixed
128
   */
129
  public function __call($name, $arguments)
130
  {
131
    if (isset(self::$functionAliases[$name])) {
132
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
133
    }
134
135
    throw new BadMethodCallException('Method does not exist: ' . $name);
136
  }
137
138
  /**
139
   * @param $name