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

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