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
    throw new BadMethodCallException('Method does not exist');
73
  }
74
75
  /**
76
   * @param $name

src/voku/helper/HtmlDomParser.php 1 location

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