Code Duplication    Length = 10-10 lines in 2 locations

DependencyInjection/Factory/ChannelFactory.php 2 locations

@@ 141-150 (lines=10) @@
138
                    ->scalarNode('from')->defaultValue('')->end()
139
                    ->end();
140
                break;
141
            case 'slack':
142
                $node
143
                    ->children()
144
                    ->enumNode('channel_type')
145
                    ->values(['direct', 'event'])
146
                    ->defaultValue('direct')
147
                    ->end()
148
                    ->scalarNode('webhook')->defaultNull()->end()
149
                    ->end();
150
                break;
151
            case 'logger':
152
                $node
153
                    ->children()
@@ 151-160 (lines=10) @@
148
                    ->scalarNode('webhook')->defaultNull()->end()
149
                    ->end();
150
                break;
151
            case 'logger':
152
                $node
153
                    ->children()
154
                    ->enumNode('channel_type')
155
                    ->values(['direct', 'event'])
156
                    ->defaultValue('direct')
157
                    ->end()
158
                    ->scalarNode('severity')->defaultValue('info')->end()
159
                    ->end();
160
                break;
161
            default:
162
                // Should allow any config
163
                // @TODO: The type key to define the allowed configuration