Code Duplication    Length = 9-9 lines in 2 locations

src/Controller/Component/JsDataComponent.php 1 location

@@ 35-43 (lines=9) @@
32
    /**
33
     * {@inheritDoc}
34
     */
35
    public function __call($method, $params)
36
    {
37
        $proxy = [$this->_JsData, $method];
38
        if (is_callable($proxy)) {
39
            return call_user_func_array($proxy, $params);
40
        }
41
42
        throw new \RuntimeException("Method JsData::$method does not exist.");
43
    }
44
}
45

src/View/Helper/JsDataHelper.php 1 location

@@ 136-144 (lines=9) @@
133
     *
134
     * {@inheritDoc}
135
     */
136
    public function __call($method, $params)
137
    {
138
        $proxy = [$this->_JsData, $method];
139
        if (is_callable($proxy)) {
140
            return call_user_func_array($proxy, $params);
141
        }
142
143
        parent::__call($method, $params);
144
    }
145
}
146