Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/HtmlDomParser.php 1 location

@@ 160-169 (lines=10) @@
157
   *
158
   * @return bool|mixed
159
   */
160
  public function __call($name, $arguments)
161
  {
162
    $name = strtolower($name);
163
164
    if (isset(self::$functionAliases[$name])) {
165
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
166
    }
167
168
    throw new BadMethodCallException('Method does not exist: ' . $name);
169
  }
170
171
  /**
172
   * @param $name

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 74-83 (lines=10) @@
71
   * @return null|string|SimpleHtmlDom
72
   *
73
   */
74
  public function __call($name, $arguments)
75
  {
76
    $name = strtolower($name);
77
78
    if (isset(self::$functionAliases[$name])) {
79
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
80
    }
81
82
    throw new BadMethodCallException('Method does not exist');
83
  }
84
85
  /**
86
   * @param $name