Code Duplication    Length = 10-11 lines in 2 locations

src/voku/helper/HtmlDomParser.php 1 location

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

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