Code Duplication    Length = 8-8 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 102-109 (lines=8) @@
99
                        && $v['test']['client']['varnish']['enabled']
100
                        && !isset($v['proxy_client']['varnish']);
101
                })
102
                ->then(function ($v) {
103
                    if ('auto' === $v['test']['client']['varnish']['enabled']) {
104
                        $v['test']['client']['varnish']['enabled'] = false;
105
106
                        return $v;
107
                    }
108
                    throw new InvalidConfigurationException('You need to configure the Varnish proxy_client to use the Varnish test client');
109
                })
110
            ->end()
111
            ->validate()
112
                ->ifTrue(function ($v) {
@@ 117-124 (lines=8) @@
114
                        return $v['test']['client']['nginx']['enabled'] && !isset($v['proxy_client']['nginx']);
115
                    }
116
                })
117
                ->then(function ($v) {
118
                    if ('auto' === $v['test']['client']['nginx']['enabled']) {
119
                        $v['test']['client']['nginx']['enabled'] = false;
120
121
                        return $v;
122
                    }
123
                    throw new InvalidConfigurationException('You need to configure the Nginx proxy_client to use the Nginx test client');
124
                })
125
            ->end()
126
            ->validate()
127
                ->ifTrue(