Code Duplication    Length = 5-5 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/DependencyInjection/Configuration/Parser/Common.php 2 locations

@@ 209-213 (lines=5) @@
206
        if (isset($scopeSettings['default_page'])) {
207
            $contextualizer->setContextualParameter('default_page', $currentScope, '/' . ltrim($scopeSettings['default_page'], '/'));
208
        }
209
        if (isset($scopeSettings['pagelayout'])) {
210
            // note: "pagelayout" is deprecated, deprecation message is set via Semantic Config Node Builder
211
            $contextualizer->setContextualParameter('pagelayout', $currentScope, $scopeSettings['pagelayout']);
212
            $contextualizer->setContextualParameter('page_layout', $currentScope, $scopeSettings['pagelayout']);
213
        }
214
        if (isset($scopeSettings['page_layout'])) {
215
            // note: "page_layout" as the new setting always takes precedence
216
            $contextualizer->setContextualParameter('pagelayout', $currentScope, $scopeSettings['page_layout']);
@@ 214-218 (lines=5) @@
211
            $contextualizer->setContextualParameter('pagelayout', $currentScope, $scopeSettings['pagelayout']);
212
            $contextualizer->setContextualParameter('page_layout', $currentScope, $scopeSettings['pagelayout']);
213
        }
214
        if (isset($scopeSettings['page_layout'])) {
215
            // note: "page_layout" as the new setting always takes precedence
216
            $contextualizer->setContextualParameter('pagelayout', $currentScope, $scopeSettings['page_layout']);
217
            $contextualizer->setContextualParameter('page_layout', $currentScope, $scopeSettings['page_layout']);
218
        }
219
    }
220
221
    /**