Code Duplication    Length = 3-3 lines in 2 locations

PHPDaemon/SockJS/Session.php 1 location

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

PHPDaemon/Servers/WebSocket/Connection.php 1 location

@@ 407-409 (lines=3) @@
404
			$this->finish();
405
			return false;
406
		}
407
		if (isset($this->server['HTTP_COOKIE'])) {
408
			Generic::parse_str(strtr($this->server['HTTP_COOKIE'], Generic::$hvaltr), $this->cookie);
409
		}
410
		if (isset($this->server['QUERY_STRING'])) {
411
			Generic::parse_str($this->server['QUERY_STRING'], $this->get);
412
		}