Code Duplication    Length = 7-7 lines in 2 locations

PHPDaemon/Clients/MySQL/Connection.php 2 locations

@@ 314-320 (lines=7) @@
311
			return;
312
		}
313
		$this->phase = self::PHASE_AUTH_SENT;
314
		$this->onResponse->push(function ($conn, $result) {
315
			if ($conn->onConnected) {
316
				$conn->connected = true;
317
				$conn->onConnected->executeAll($conn, $result);
318
				$conn->onConnected = null;
319
			}
320
		});
321
		$this->clientFlags =
322
				Pool::CLIENT_LONG_PASSWORD |
323
				Pool::CLIENT_LONG_FLAG |
@@ 460-466 (lines=7) @@
457
			if ($this->protover === 0xFF) { // error
458
				$fieldCount     = $this->protover;
459
				$this->protover = 0;
460
				$this->onResponse->push(function ($conn, $result) {
461
					if ($conn->onConnected) {
462
						$conn->connected = true;
463
						$conn->onConnected->executeAll($conn, $result);
464
						$conn->onConnected = null;
465
					}
466
				});
467
				goto field;
468
			}
469
			if (($p = $this->search("\x00")) === false) {