Code Duplication    Length = 5-6 lines in 3 locations

DependencyInjection/Configuration.php 3 locations

@@ 97-101 (lines=5) @@
94
                })
95
            ->end()
96
            ->validate()
97
                ->ifTrue(function ($v) {
98
                    return isset($v['test'])
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;
@@ 112-116 (lines=5) @@
109
                })
110
            ->end()
111
            ->validate()
112
                ->ifTrue(function ($v) {
113
                    if (isset($v['test'])) {
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;
@@ 55-60 (lines=6) @@
52
53
        $rootNode
54
            ->validate()
55
                ->ifTrue(function ($v) {
56
                    return $v['cache_manager']['enabled']
57
                        && !isset($v['proxy_client'])
58
                        && !isset($v['cache_manager']['custom_proxy_client'])
59
                    ;
60
                })
61
                ->then(function ($v) {
62
                    if ('auto' === $v['cache_manager']['enabled']) {
63
                        $v['cache_manager']['enabled'] = false;