Code Duplication    Length = 9-9 lines in 3 locations

src/DependencyInjection/Configuration.php 3 locations

@@ 67-75 (lines=9) @@
64
                        && !isset($v['cache_manager']['custom_proxy_client'])
65
                    ;
66
                })
67
                ->then(function ($v) {
68
                    if ('auto' === $v['cache_manager']['enabled']) {
69
                        $v['cache_manager']['enabled'] = false;
70
71
                        return $v;
72
                    }
73
74
                    throw new InvalidConfigurationException('You need to configure a proxy_client or specify a custom_proxy_client to use the cache_manager.');
75
                })
76
            ->end()
77
            ->validate()
78
                ->ifTrue(function ($v) {
@@ 81-89 (lines=9) @@
78
                ->ifTrue(function ($v) {
79
                    return $v['tags']['enabled'] && !$v['cache_manager']['enabled'];
80
                })
81
                ->then(function ($v) {
82
                    if ('auto' === $v['tags']['enabled']) {
83
                        $v['tags']['enabled'] = false;
84
85
                        return $v;
86
                    }
87
88
                    throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for tag handling.');
89
                })
90
            ->end()
91
            ->validate()
92
                ->ifTrue(function ($v) {
@@ 95-103 (lines=9) @@
92
                ->ifTrue(function ($v) {
93
                    return $v['invalidation']['enabled'] && !$v['cache_manager']['enabled'];
94
                })
95
                ->then(function ($v) {
96
                    if ('auto' === $v['invalidation']['enabled']) {
97
                        $v['invalidation']['enabled'] = false;
98
99
                        return $v;
100
                    }
101
102
                    throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for invalidation handling.');
103
                })
104
            ->end()
105
            ->validate()
106
                ->ifTrue(