Code Duplication    Length = 9-9 lines in 2 locations

src/Generics/Socket/SecureSocket.php 1 location

@@ 132-140 (lines=9) @@
129
     * {@inheritdoc}
130
     * @see \Generics\Resettable::reset()
131
     */
132
    public function reset()
133
    {
134
        try {
135
            $this->close();
136
            $this->open();
137
        } catch (Exception $ex) {
138
            throw new ResetException($ex->getMessage(), array(), $ex->getCode(), $ex);
139
        }
140
    }
141
142
    /**
143
     *

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