Code Duplication    Length = 11-11 lines in 2 locations

src/RunOpenCode/Bundle/ExchangeRate/DependencyInjection/Extension.php 2 locations

@@ 235-245 (lines=11) @@
232
     * @param array $config
233
     * @param ContainerBuilder $container
234
     */
235
    protected function configureDebugCommand(array $config, ContainerBuilder $container)
236
    {
237
        if ($container->has('run_open_code.exchange_rate.command.configuration_debug')) {
238
            $definition = $container->getDefinition('run_open_code.exchange_rate.command.configuration_debug');
239
240
            $arguments = $definition->getArguments();
241
            $arguments[3] = new Reference($config['repository']);
242
243
            $definition->setArguments($arguments);
244
        }
245
    }
246
247
    /**
248
     * Configure currency type.
@@ 253-263 (lines=11) @@
250
     * @param array $config
251
     * @param ContainerBuilder $container
252
     */
253
    protected function configureCurrencyType(array $config, ContainerBuilder $container)
254
    {
255
        if ($container->has('run_open_code.exchange_rate.type.currency_type')) {
256
            $definition = $container->getDefinition('run_open_code.exchange_rate.type.currency_type');
257
258
            $arguments = $definition->getArguments();
259
            $arguments[0] = $config['base_currency'];
260
261
            $definition->setArguments($arguments);
262
        }
263
    }
264
265
    /**
266
     * Extract name of only required sources from configuration.