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.
@@ 451-458 (lines=8) @@
448
		$conn->onInheritance($this);
449
	}
450
451
	public function onInheritance($conn) {
452
		$this->server = $conn->server;
453
		$this->cookie = $conn->cookie;
454
		$this->get = $conn->get;
455
		$this->state = self::STATE_PREHANDSHAKE;
456
		$this->addr = $conn->addr;
457
		$this->onRead();
458
	}
459
460
461
	/**