Code Duplication    Length = 3-3 lines in 2 locations

PHPDaemon/Servers/WebSocket/Connection.php 1 location

@@ 419-421 (lines=3) @@
416
            $this->finish();
417
            return false;
418
        }
419
        if (isset($this->server['HTTP_COOKIE'])) {
420
            Generic::parse_str(strtr($this->server['HTTP_COOKIE'], Generic::$hvaltr), $this->cookie);
421
        }
422
        if (isset($this->server['QUERY_STRING'])) {
423
            Generic::parse_str($this->server['QUERY_STRING'], $this->get);
424
        }

PHPDaemon/SockJS/Session.php 1 location

@@ 96-98 (lines=3) @@
93
        $this->appInstance = $appInstance;
94
        $this->server = $server;
95
        
96
        if (isset($this->server['HTTP_COOKIE'])) {
97
            Generic::parse_str(strtr($this->server['HTTP_COOKIE'], Generic::$hvaltr), $this->cookie);
98
        }
99
        if (isset($this->server['QUERY_STRING'])) {
100
            Generic::parse_str($this->server['QUERY_STRING'], $this->get);
101
        }