Code Duplication    Length = 7-7 lines in 2 locations

src/Dbal/EncryptedColumn.php 1 location

@@ 24-30 (lines=7) @@
21
     */
22
    private $encryptionService;
23
24
    public static function create(EncryptionService $encryptionService)
25
    {
26
        Type::addType(EncryptedColumn::ENCRYPTED, EncryptedColumn::class);
27
        /** @var EncryptedColumn $instance */
28
        $instance = Type::getType(EncryptedColumn::ENCRYPTED);
29
        $instance->encryptionService = $encryptionService;
30
    }
31
32
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
33
    {

src/Dbal/EncryptedColumnLegacySupport.php 1 location

@@ 29-35 (lines=7) @@
26
     */
27
    private $encryptionService;
28
29
    public static function create(EncryptionService $encryptionService)
30
    {
31
        Type::addType(EncryptedColumnLegacySupport::ENCRYPTED, EncryptedColumnLegacySupport::class);
32
        /** @var EncryptedColumnLegacySupport $instance */
33
        $instance = Type::getType(EncryptedColumnLegacySupport::ENCRYPTED);
34
        $instance->encryptionService = $encryptionService;
35
    }
36
37
    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
38
    {