Code Duplication    Length = 4-5 lines in 2 locations

DependencyInjection/NotificationExtension.php 2 locations

@@ 29-33 (lines=5) @@
26
27
            // Set a configuration parameter for each channel also.
28
            switch ($channel) {
29
                case 'mail':
30
                    $configuration = empty($config[$channel]) ? [] : $config[$channel];
31
                    $container->setParameter('notification.channel.' . $channel . '.configuration', $configuration);
32
33
                    break;
34
35
                default:
36
                    $configuration = empty($config[$channel]) ? [] : $config[$channel];
@@ 35-38 (lines=4) @@
32
33
                    break;
34
35
                default:
36
                    $configuration = empty($config[$channel]) ? [] : $config[$channel];
37
                    $container->setParameter('notification.channel.' . $channel . '.configuration', $configuration);
38
                    break;
39
            }
40
41
            // Create a sevice for this channel.