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

@@ 401-403 (lines=3) @@
398
			$this->finish();
399
			return false;
400
		}
401
		if (isset($this->server['HTTP_COOKIE'])) {
402
			Generic::parse_str(strtr($this->server['HTTP_COOKIE'], Generic::$hvaltr), $this->cookie);
403
		}
404
		if (isset($this->server['QUERY_STRING'])) {
405
			Generic::parse_str($this->server['QUERY_STRING'], $this->get);
406
		}