Code Duplication    Length = 8-8 lines in 2 locations

PHPDaemon/Servers/WebSocket/Connection.php 2 locations

@@ 131-138 (lines=8) @@
128
	 * @param  object $req
129
	 * @return void
130
	 */
131
	public function onInheritanceFromRequest($req) {
132
		$this->state  = self::STATE_HEADERS;
133
		$this->addr   = $req->attrs->server['REMOTE_ADDR'];
134
		$this->server = $req->attrs->server;
135
		$this->get = $req->attrs->get;
136
		$this->prependInput("\r\n");
137
		$this->onRead();
138
	}
139
140
	/**
141
	 * Sends a frame.
@@ 446-453 (lines=8) @@
443
		$conn->onInheritance($this);
444
	}
445
446
	public function onInheritance($conn) {
447
		$this->server = $conn->server;
448
		$this->cookie = $conn->cookie;
449
		$this->get = $conn->get;
450
		$this->state = self::STATE_PREHANDSHAKE;
451
		$this->addr = $conn->addr;
452
		$this->onRead();
453
	}
454
455
456
	/**