Code Duplication    Length = 10-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 79-88 (lines=10) @@
76
   *
77
   * @throws \BadMethodCallException
78
   */
79
  public function __call($name, $arguments)
80
  {
81
    $name = \strtolower($name);
82
83
    if (isset(self::$functionAliases[$name])) {
84
      return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments);
85
    }
86
87
    throw new BadMethodCallException('Method does not exist');
88
  }
89
90
  /**
91
   * @param string $name

src/voku/helper/HtmlDomParser.php 1 location

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