Code Duplication    Length = 8-8 lines in 2 locations

PHPDaemon/Servers/WebSocket/Connection.php 2 locations

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