Code Duplication    Length = 9-9 lines in 2 locations

src/Generics/Socket/SecureSocket.php 1 location

@@ 142-150 (lines=9) @@
139
     * {@inheritdoc}
140
     * @see \Generics\Resettable::reset()
141
     */
142
    public function reset()
143
    {
144
        try {
145
            $this->close();
146
            $this->open();
147
        } catch (Exception $ex) {
148
            throw new ResetException($ex->getMessage(), array(), $ex->getCode(), $ex);
149
        }
150
    }
151
152
    /**
153
     *

src/Generics/Socket/Socket.php 1 location

@@ 241-249 (lines=9) @@
238
     * {@inheritdoc}
239
     * @see \Generics\Resettable::reset()
240
     */
241
    public function reset()
242
    {
243
        try {
244
            $this->close();
245
            $this->open();
246
        } catch (Exception $ex) {
247
            throw new ResetException($ex->getMessage(), array(), $ex->getCode(), $ex);
248
        }
249
    }
250
}
251