Code Duplication    Length = 3-3 lines in 2 locations

PHPDaemon/DNode/DNode.php 2 locations

@@ 72-74 (lines=3) @@
69
        }
70
        if (is_array($arg) && sizeof($arg) === 2) {
71
            if (isset($arg[0]) && is_object($arg[0]) && !$arg[0] instanceof \stdClass) {
72
                if (isset($arg[1]) && is_string($arg[1]) && strncmp($arg[1], 'remote_', 7) === 0) {
73
                    return true;
74
                }
75
            }
76
        }
77
        $arg = null;
@@ 103-105 (lines=3) @@
100
            $m = '__CALLBACK__';
101
        } elseif (is_array($m)) {
102
            if (sizeof($m) === 2 && isset($m[0]) && $m[0] instanceof \PHPDaemon\WebSocket\Route) {
103
                if (isset($m[1]) && is_string($m[1]) && strncmp($m[1], 'remote_', 7) === 0) {
104
                    $m = '__CALLBACK__';
105
                }
106
            } else {
107
                foreach ($m as &$v) {
108
                    static::toJsonDebugResursive($v);