Code Duplication    Length = 7-9 lines in 2 locations

src/BaseAsymmetricCrypt.php 2 locations

@@ 99-107 (lines=9) @@
96
    /**
97
     * @return int|null
98
     */
99
    protected function getEncryptChunkSize()
100
    {
101
        $keyBytes = $this->getKeyBytes();
102
103
        // 11 is a kind of magic number related to padding.
104
        $result = $keyBytes === null ? null : $keyBytes - 11;
105
106
        return $result;
107
    }
108
109
    /**
110
     * @return int|null
@@ 112-118 (lines=7) @@
109
    /**
110
     * @return int|null
111
     */
112
    protected function getDecryptChunkSize()
113
    {
114
        $keyBytes = $this->getKeyBytes();
115
        $result   = $keyBytes === null ? null : $keyBytes;
116
117
        return $result;
118
    }
119
120
    /**
121
     * @param string $value