Code Duplication    Length = 6-6 lines in 2 locations

lib/classes/Swift/Encoder/QpEncoder.php 2 locations

@@ 112-117 (lines=6) @@
109
    public function __construct(Swift_CharacterStream $charStream, Swift_StreamFilter $filter = null)
110
    {
111
        $this->_charStream = $charStream;
112
        if (!isset(self::$_safeMapShare[$this->getSafeMapShareId()])) {
113
            $this->initSafeMap();
114
            self::$_safeMapShare[$this->getSafeMapShareId()] = $this->_safeMap;
115
        } else {
116
            $this->_safeMap = self::$_safeMapShare[$this->getSafeMapShareId()];
117
        }
118
        $this->_filter = $filter;
119
    }
120
@@ 128-133 (lines=6) @@
125
126
    public function __wakeup()
127
    {
128
        if (!isset(self::$_safeMapShare[$this->getSafeMapShareId()])) {
129
            $this->initSafeMap();
130
            self::$_safeMapShare[$this->getSafeMapShareId()] = $this->_safeMap;
131
        } else {
132
            $this->_safeMap = self::$_safeMapShare[$this->getSafeMapShareId()];
133
        }
134
    }
135
136
    protected function getSafeMapShareId()