Code Duplication    Length = 5-5 lines in 2 locations

src/Wrapper.php 1 location

@@ 164-168 (lines=5) @@
161
                Logger::instance()->errorLog('XML-RPC: ' . __METHOD__ . ': syntax for function to be wrapped is wrong');
162
                return false;
163
            }
164
            if (is_string($callable[0])) {
165
                $plainFuncName = implode('::', $callable);
166
            } elseif (is_object($callable[0])) {
167
                $plainFuncName = get_class($callable[0]) . '->' . $callable[1];
168
            }
169
            $exists = method_exists($callable[0], $callable[1]);
170
        } else if ($callable instanceof \Closure) {
171
            // we do not support creating code which wraps closures, as php does not allow to serialize them

src/Server.php 1 location

@@ 604-608 (lines=5) @@
601
        }
602
603
        if (is_array($func)) {
604
            if (is_object($func[0])) {
605
                $funcName = get_class($func[0]) . '->' . $func[1];
606
            } else {
607
                $funcName = implode('::', $func);
608
            }
609
        } else if ($func instanceof \Closure) {
610
            $funcName = 'Closure';
611
        } else {