Code Duplication    Length = 6-7 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/DependencyInjection/Configuration/ConfigResolver.php 2 locations

@@ 144-150 (lines=7) @@
141
        // Relative scope, siteaccess group wise
142
        $groupScopeHasParam = false;
143
        if (isset($this->groupsBySiteAccess[$scope])) {
144
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
145
                $groupScopeParamName = "$namespace.$groupName.$paramName";
146
                if ($this->container->hasParameter($groupScopeParamName)) {
147
                    $groupScopeHasParam = true;
148
                    break;
149
                }
150
            }
151
        }
152
153
        return
@@ 198-203 (lines=6) @@
195
196
        // Relative scope, siteaccess group wise
197
        if (isset($this->groupsBySiteAccess[$scope])) {
198
            foreach ($this->groupsBySiteAccess[$scope] as $groupName) {
199
                $relativeScopeParamName = "$namespace.$groupName.$paramName";
200
                if ($this->container->hasParameter($relativeScopeParamName)) {
201
                    return $this->container->getParameter($relativeScopeParamName);
202
                }
203
            }
204
        }
205
206
        // Default scope