Code Duplication    Length = 4-4 lines in 2 locations

src/InterpretAsCommand.php 2 locations

@@ 76-79 (lines=4) @@
73
            $command = $socket->read(1);
74
            $option = $socket->read(1);
75
76
            if (in_array($command, [$this->DO, $this->DONT])) {
77
                $socket->write($this->IAC . $this->WONT . $option);
78
                return true;
79
            }
80
81
            if (in_array($command, [$this->WILL, $this->WONT])) {
82
                $socket->write($this->IAC . $this->DONT . $option);
@@ 81-84 (lines=4) @@
78
                return true;
79
            }
80
81
            if (in_array($command, [$this->WILL, $this->WONT])) {
82
                $socket->write($this->IAC . $this->DONT . $option);
83
                return true;
84
            }
85
        } catch (Exception $e) {
86
            throw new TelnetException('failed negotiating IAC', 0, $e);
87
        }