Code Duplication    Length = 10-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 73-82 (lines=10) @@
70
     *
71
     * @return SimpleHtmlDom|string|null
72
     */
73
    public function __call($name, $arguments)
74
    {
75
        $name = \strtolower($name);
76
77
        if (isset(self::$functionAliases[$name])) {
78
            return \call_user_func_array([$this, self::$functionAliases[$name]], $arguments);
79
        }
80
81
        throw new BadMethodCallException('Method does not exist');
82
    }
83
84
    /**
85
     * @param string $name

src/voku/helper/HtmlDomParser.php 1 location

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