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

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