Code Duplication    Length = 8-8 lines in 2 locations

src/SymmetricCrypt.php 2 locations

@@ 241-248 (lines=8) @@
238
     *
239
     * @return $this
240
     */
241
    protected function setOption($option)
242
    {
243
        assert(is_int($option) === true);
244
245
        $this->setOptions($this->getOptions() | $option);
246
247
        return $this;
248
    }
249
250
    /**
251
     * @param int $option
@@ 255-262 (lines=8) @@
252
     *
253
     * @return $this
254
     */
255
    protected function clearOption($option)
256
    {
257
        assert(is_int($option) === true);
258
259
        $this->setOptions($this->getOptions() & ~$option);
260
261
        return $this;
262
    }
263
264
    /**
265
     * We need this wrapper for testing purposes so we can mock system call to Open SSL.