Code Duplication    Length = 11-11 lines in 2 locations

src/Configuration.php 1 location

@@ 24-34 (lines=11) @@
21
        );
22
    }
23
24
    private static function buildEncryptionService(string $keypath): EncryptionService
25
    {
26
        $encryptors = self::buildEncryptorsContainer($keypath);
27
        $serializers = self::buildSerilaizerContainer();
28
        return new EncryptionService(
29
            $encryptors->get(HaliteEncryptor::IDENTITY),
30
            $serializers->get(PhpSerializer::IDENTITY),
31
            $encryptors,
32
            $serializers
33
        );
34
    }
35
36
    private static function buildEncryptorsContainer(string $keypath): VersionedContainer
37
    {

src/Setup.php 1 location

@@ 43-53 (lines=11) @@
40
        return $this;
41
    }
42
43
    private function buildEncryptionService(): EncryptionService
44
    {
45
        $encryptors = self::buildEncryptorsContainer();
46
        $serializers = self::buildSerilaizerContainer();
47
        return new EncryptionService(
48
            $encryptors->get(HaliteEncryptor::IDENTITY),
49
            $serializers->get(PhpSerializer::IDENTITY),
50
            $encryptors,
51
            $serializers
52
        );
53
    }
54
55
    private function buildEncryptorsContainer(): VersionedContainer
56
    {