Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/Configuration.php 2 locations

@@ 155-161 (lines=7) @@
152
            $styles = array_keys($config['image_styles']);
153
        }
154
155
        foreach ($config['picture_sets'] as $pictureSet) {
156
            foreach ($pictureSet['sources'] as $breakpoint => $style) {
157
                if (!in_array($style, $styles)) {
158
                    return true;
159
                }
160
            }
161
        }
162
163
        foreach ($config['size_sets'] as $sizeSet) {
164
            foreach ($sizeSet['srcsets'] as $style) {
@@ 187-193 (lines=7) @@
184
        }
185
186
        // Validate that the picture sets are defined using valid breakpoints
187
        foreach ($config['picture_sets'] as $pictureSet) {
188
            foreach ($pictureSet['sources'] as $breakpoint => $style) {
189
                if (!in_array($breakpoint, $breakpoints)) {
190
                    return true;
191
                }
192
            }
193
        }
194
195
        // Validate that the picture sets are defined using valid breakpoints
196
        foreach ($config['size_sets'] as $sizeSet) {