Code Duplication    Length = 10-11 lines in 2 locations

src/voku/helper/SimpleHtmlDom.php 1 location

@@ 74-83 (lines=10) @@
71
     *
72
     * @return SimpleHtmlDom|string|null
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([$this, self::$functionAliases[$name]], $arguments);
80
        }
81
82
        throw new BadMethodCallException('Method does not exist');
83
    }
84
85
    /**
86
     * @param string $name

src/voku/helper/HtmlDomParser.php 1 location

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