Code Duplication    Length = 10-10 lines in 2 locations

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

src/voku/helper/HtmlDomParser.php 1 location

@@ 134-143 (lines=10) @@
131
   *
132
   * @return bool|mixed
133
   */
134
  public function __call($name, $arguments)
135
  {
136
    $name = strtolower($name);
137
138
    if (isset(self::$functionAliases[$name])) {
139
      return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
140
    }
141
142
    throw new BadMethodCallException('Method does not exist: ' . $name);
143
  }
144
145
  /**
146
   * @param $name