Code Duplication    Length = 12-15 lines in 2 locations

Tests/DependencyInjection/MesCryptoExtensionTest.php 2 locations

@@ 154-165 (lines=12) @@
151
    /**
152
     * @return mixed
153
     */
154
    private function getConfigWithExternalKey()
155
    {
156
        $cryptoFile = dirname(__DIR__).'/key.crypto';
157
        $yaml = <<<EOF
158
key: $cryptoFile
159
external_secret: true
160
EOF;
161
162
        $parser = new Parser();
163
164
        return $parser->parse($yaml);
165
    }
166
167
    /**
168
     * @return mixed
@@ 170-184 (lines=15) @@
167
    /**
168
     * @return mixed
169
     */
170
    private function getFullConfigWithExternalKey()
171
    {
172
        $cryptoFile = dirname(__DIR__).'/key.crypto';
173
        $yaml = <<<EOF
174
key: $cryptoFile
175
external_secret: true
176
key_storage: custom_key_storage_service
177
key_generator: custom_key_generator_service
178
encryption: custom_encryption_service
179
EOF;
180
181
        $parser = new Parser();
182
183
        return $parser->parse($yaml);
184
    }
185
186
    /**
187
     * @param string $id