Code Duplication    Length = 3-3 lines in 2 locations

PHPDaemon/SockJS/Session.php 1 location

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

PHPDaemon/Servers/WebSocket/Connection.php 1 location

@@ 426-428 (lines=3) @@
423
            $this->finish();
424
            return false;
425
        }
426
        if (isset($this->server['HTTP_COOKIE'])) {
427
            Generic::parseStr(strtr($this->server['HTTP_COOKIE'], Generic::$hvaltr), $this->cookie);
428
        }
429
        if (isset($this->server['QUERY_STRING'])) {
430
            Generic::parseStr($this->server['QUERY_STRING'], $this->get);
431
        }