Code Duplication    Length = 15-15 lines in 3 locations

src/RunOpenCode/Bundle/ExchangeRate/DependencyInjection/Configuration.php 3 locations

@@ 198-212 (lines=15) @@
195
     *
196
     * @return ArrayNodeDefinition
197
     */
198
    protected function getSourceTypeDefinition()
199
    {
200
        $node = new ArrayNodeDefinition('source_type');
201
202
        $node
203
            ->info('Modify default "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\SourceType" settings.')
204
            ->addDefaultsIfNotSet()
205
            ->children()
206
                ->scalarNode('choice_translation_domain')->defaultValue('roc_exchange_rate')->end()
207
                ->arrayNode('preferred_choices')->end()
208
            ->end()
209
        ->end();
210
211
        return $node;
212
    }
213
214
    /**
215
     * Build configuration tree for "RunOpenCode\Bundle\ExchangeRate\Form\Type\RateTypeType" default settings.
@@ 219-233 (lines=15) @@
216
     *
217
     * @return ArrayNodeDefinition
218
     */
219
    protected function getRateTypeTypeDefinition()
220
    {
221
        $node = new ArrayNodeDefinition('rate_type_type');
222
223
        $node
224
            ->info('Modify default "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\RateTypeType" settings.')
225
            ->addDefaultsIfNotSet()
226
            ->children()
227
                ->scalarNode('choice_translation_domain')->defaultValue('roc_exchange_rate')->end()
228
                ->arrayNode('preferred_choices')->end()
229
            ->end()
230
        ->end();
231
232
        return $node;
233
    }
234
235
    /**
236
     * Build configuration tree for "RunOpenCode\Bundle\ExchangeRate\Form\Type\CurrencyCodeType" default settings.
@@ 240-254 (lines=15) @@
237
     *
238
     * @return ArrayNodeDefinition
239
     */
240
    protected function getCurrencyCodeTypeDefinition()
241
    {
242
        $node = new ArrayNodeDefinition('currency_code_type');
243
244
        $node
245
            ->info('Modify default "RunOpenCode\\Bundle\\ExchangeRate\\Form\\Type\\CurrencyCodeType" settings.')
246
            ->addDefaultsIfNotSet()
247
            ->children()
248
                ->scalarNode('choice_translation_domain')->defaultValue('roc_exchange_rate')->end()
249
                ->arrayNode('preferred_choices')->end()
250
            ->end()
251
        ->end();
252
253
        return $node;
254
    }
255
256
    /**
257
     * Build configuration tree for "RunOpenCode\Bundle\ExchangeRate\Form\Type\RateType" default settings.