Code Duplication    Length = 10-10 lines in 2 locations

src/voku/helper/HtmlDomParser.php 1 location

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

src/voku/helper/SimpleHtmlDom.php 1 location

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